Google Cloud Apigee Registry V1 Client - Class Instance (0.2.7)

Reference documentation and code samples for the Google Cloud Apigee Registry V1 Client class Instance.

An Instance represents the instance resources of the Registry.

Currently, only one instance is allowed for each project.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Format: projects/*/locations/*/instance. Currently only locations/global is supported.

↳ create_time Google\Protobuf\Timestamp

Output only. Creation timestamp.

↳ update_time Google\Protobuf\Timestamp

Output only. Last update timestamp.

↳ state int

Output only. The current state of the Instance.

↳ state_message string

Output only. Extra information of Instance.State if the state is FAILED.

↳ config Google\Cloud\ApigeeRegistry\V1\Instance\Config

Required. Config of the Instance.

getName

Format: projects/*/locations/*/instance.

Currently only locations/global is supported.

Returns
TypeDescription
string

setName

Format: projects/*/locations/*/instance.

Currently only locations/global is supported.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. Creation timestamp.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Creation timestamp.

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

getUpdateTime

Output only. Last update timestamp.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Last update timestamp.

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

getState

Output only. The current state of the Instance.

Returns
TypeDescription
int

setState

Output only. The current state of the Instance.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStateMessage

Output only. Extra information of Instance.State if the state is FAILED.

Returns
TypeDescription
string

setStateMessage

Output only. Extra information of Instance.State if the state is FAILED.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getConfig

Required. Config of the Instance.

Returns
TypeDescription
Google\Cloud\ApigeeRegistry\V1\Instance\Config|null

hasConfig

clearConfig

setConfig

Required. Config of the Instance.

Parameter
NameDescription
var Google\Cloud\ApigeeRegistry\V1\Instance\Config
Returns
TypeDescription
$this