Reference documentation and code samples for the Google Cloud Network Services V1 Client class ServiceBinding.
ServiceBinding can be used to:
- Bind a Service Directory Service to be used in a BackendService resource.
This feature will be deprecated soon.
- Bind a Private Service Connect producer service to be used in consumer Cloud Service Mesh or Application Load Balancers.
- Bind a Cloud Run service to be used in consumer Cloud Service Mesh or Application Load Balancers.
Generated from protobuf message google.cloud.networkservices.v1.ServiceBinding
Namespace
Google \ Cloud \ NetworkServices \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. Name of the ServiceBinding resource. It matches pattern projects/*/locations/*/serviceBindings/<service_binding_name>
.
↳ description
string
Optional. A free-text description of the resource. Max length 1024 characters.
↳ create_time
↳ update_time
↳ service
string
Optional. The full Service Directory Service name of the format projects/*/locations/*/namespaces/*/services/*
. This field is for Service Directory integration which will be deprecated soon.
↳ service_id
string
Output only. The unique identifier of the Service Directory Service against which the ServiceBinding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format. This field is for Service Directory integration which will be deprecated soon.
↳ labels
array| Google\Protobuf\Internal\MapField
Optional. Set of label tags associated with the ServiceBinding resource.
getName
Identifier. Name of the ServiceBinding resource. It matches pattern projects/*/locations/*/serviceBindings/<service_binding_name>
.
string
setName
Identifier. Name of the ServiceBinding resource. It matches pattern projects/*/locations/*/serviceBindings/<service_binding_name>
.
var
string
$this
getDescription
Optional. A free-text description of the resource. Max length 1024 characters.
string
setDescription
Optional. A free-text description of the resource. Max length 1024 characters.
var
string
$this
getCreateTime
Output only. The timestamp when the resource was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The timestamp when the resource was created.
$this
getUpdateTime
Output only. The timestamp when the resource was updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The timestamp when the resource was updated.
$this
getService
Optional. The full Service Directory Service name of the format projects/*/locations/*/namespaces/*/services/*
.
This field is for Service Directory integration which will be deprecated soon.
string
setService
Optional. The full Service Directory Service name of the format projects/*/locations/*/namespaces/*/services/*
.
This field is for Service Directory integration which will be deprecated soon.
var
string
$this
getServiceId
Output only. The unique identifier of the Service Directory Service against which the ServiceBinding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format. This field is for Service Directory integration which will be deprecated soon.
string
setServiceId
Output only. The unique identifier of the Service Directory Service against which the ServiceBinding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format. This field is for Service Directory integration which will be deprecated soon.
var
string
$this
getLabels
Optional. Set of label tags associated with the ServiceBinding resource.
setLabels
Optional. Set of label tags associated with the ServiceBinding resource.
$this