Google Cloud Service Directory V1beta1 Client - Class PBNamespace (1.3.5)

Reference documentation and code samples for the Google Cloud Service Directory V1beta1 Client class PBNamespace.

A container for services.

Namespaces allow administrators to group services together and define permissions for a collection of services.

Generated from protobuf message google.cloud.servicedirectory.v1beta1.Namespace

Namespace

Google \ Cloud \ ServiceDirectory \ V1beta1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Immutable. The resource name for the namespace in the format projects/*/locations/*/namespaces/*.

↳ labels array|Google\Protobuf\Internal\MapField

Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.

↳ create_time Google\Protobuf\Timestamp

Output only. The timestamp when the namespace was created.

↳ update_time Google\Protobuf\Timestamp

Output only. The timestamp when the namespace was last updated.

↳ uid string

Output only. A globally unique identifier (in UUID4 format) for this namespace.

getName

Immutable. The resource name for the namespace in the format projects/*/locations/*/namespaces/*.

Returns
Type Description
string

setName

Immutable. The resource name for the namespace in the format projects/*/locations/*/namespaces/*.

Parameter
Name Description
var string
Returns
Type Description
$this

getLabels

Optional. Resource labels associated with this namespace.

No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.

Returns
Type Description
Google\Protobuf\Internal\MapField

setLabels

Optional. Resource labels associated with this namespace.

No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.

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

getCreateTime

Output only. The timestamp when the namespace was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The timestamp when the namespace was created.

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

getUpdateTime

Output only. The timestamp when the namespace was last updated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The timestamp when the namespace was last updated.

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

getUid

Output only. A globally unique identifier (in UUID4 format) for this namespace.

Returns
Type Description
string

setUid

Output only. A globally unique identifier (in UUID4 format) for this namespace.

Parameter
Name Description
var string
Returns
Type Description
$this