Google Cloud Network Services V1 Client - Class ServiceBinding (0.2.1)

Reference documentation and code samples for the Google Cloud Network Services V1 Client class ServiceBinding.

ServiceBinding is the resource that defines a Service Directory Service to be used in a BackendService resource.

Generated from protobuf message google.cloud.networkservices.v1.ServiceBinding

Namespace

Google \ Cloud \ NetworkServices \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Required. Name of the ServiceBinding resource. It matches pattern projects/*/locations/global/serviceBindings/service_binding_name.

↳ description string

Optional. A free-text description of the resource. Max length 1024 characters.

↳ create_time Google\Protobuf\Timestamp

Output only. The timestamp when the resource was created.

↳ update_time Google\Protobuf\Timestamp

Output only. The timestamp when the resource was updated.

↳ service string

Required. The full service directory service name of the format /projects//locations//namespaces//services/

↳ labels array|Google\Protobuf\Internal\MapField

Optional. Set of label tags associated with the ServiceBinding resource.

getName

Required. Name of the ServiceBinding resource. It matches pattern projects/*/locations/global/serviceBindings/service_binding_name.

Returns
Type Description
string

setName

Required. Name of the ServiceBinding resource. It matches pattern projects/*/locations/global/serviceBindings/service_binding_name.

Parameter
Name Description
var string
Returns
Type Description
$this

getDescription

Optional. A free-text description of the resource. Max length 1024 characters.

Returns
Type Description
string

setDescription

Optional. A free-text description of the resource. Max length 1024 characters.

Parameter
Name Description
var string
Returns
Type Description
$this

getCreateTime

Output only. The timestamp when the resource was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The timestamp when the resource was created.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getUpdateTime

Output only. The timestamp when the resource was updated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The timestamp when the resource was updated.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getService

Required. The full service directory service name of the format /projects//locations//namespaces//services/

Returns
Type Description
string

setService

Required. The full service directory service name of the format /projects//locations//namespaces//services/

Parameter
Name Description
var string
Returns
Type Description
$this

getLabels

Optional. Set of label tags associated with the ServiceBinding resource.

Returns
Type Description
Google\Protobuf\Internal\MapField

setLabels

Optional. Set of label tags associated with the ServiceBinding resource.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this