Google Cloud Secure Source Manager V1 Client - Class Instance (0.1.0)

Reference documentation and code samples for the Google Cloud Secure Source Manager V1 Client class Instance.

A resource that represents a Secure Source Manager instance.

Generated from protobuf message google.cloud.securesourcemanager.v1.Instance

Namespace

Google \ Cloud \ SecureSourceManager \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Optional. A unique identifier for an instance. The name should be of the format: projects/{project_number}/locations/{location_id}/instances/{instance_id} project_number: Maps to a unique int64 id assigned to each project. location_id: Refers to the region where the instance will be deployed. Since Secure Source Manager is a regional service, it must be one of the valid GCP regions. instance_id: User provided name for the instance, must be unique for a project_number and location_id combination.

↳ create_time Google\Protobuf\Timestamp

Output only. Create timestamp.

↳ update_time Google\Protobuf\Timestamp

Output only. Update timestamp.

↳ labels array|Google\Protobuf\Internal\MapField

Optional. Labels as key value pairs.

↳ state int

Output only. Current state of the instance.

↳ state_note int

Output only. An optional field providing information about the current instance state.

↳ kms_key string

Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.

↳ host_config Google\Cloud\SecureSourceManager\V1\Instance\HostConfig

Output only. A list of hostnames for this instance.

getName

Optional. A unique identifier for an instance. The name should be of the format: projects/{project_number}/locations/{location_id}/instances/{instance_id} project_number: Maps to a unique int64 id assigned to each project.

location_id: Refers to the region where the instance will be deployed. Since Secure Source Manager is a regional service, it must be one of the valid GCP regions. instance_id: User provided name for the instance, must be unique for a project_number and location_id combination.

Returns
TypeDescription
string

setName

Optional. A unique identifier for an instance. The name should be of the format: projects/{project_number}/locations/{location_id}/instances/{instance_id} project_number: Maps to a unique int64 id assigned to each project.

location_id: Refers to the region where the instance will be deployed. Since Secure Source Manager is a regional service, it must be one of the valid GCP regions. instance_id: User provided name for the instance, must be unique for a project_number and location_id combination.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. Create timestamp.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Create timestamp.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. Update timestamp.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Update timestamp.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getLabels

Optional. Labels as key value pairs.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Optional. Labels as key value pairs.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getState

Output only. Current state of the instance.

Returns
TypeDescription
int

setState

Output only. Current state of the instance.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStateNote

Output only. An optional field providing information about the current instance state.

Returns
TypeDescription
int

setStateNote

Output only. An optional field providing information about the current instance state.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getKmsKey

Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.

Returns
TypeDescription
string

setKmsKey

Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getHostConfig

Output only. A list of hostnames for this instance.

Returns
TypeDescription
Google\Cloud\SecureSourceManager\V1\Instance\HostConfig|null

hasHostConfig

clearHostConfig

setHostConfig

Output only. A list of hostnames for this instance.

Parameter
NameDescription
var Google\Cloud\SecureSourceManager\V1\Instance\HostConfig
Returns
TypeDescription
$this