Google Cloud License Manager V1 Client - Class Instance (0.2.0)

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

Message describing Instance object

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

Namespace

Google \ Cloud \ LicenseManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Identifier. name of resource

↳ create_time Google\Protobuf\Timestamp

Output only. [Output only] Create time stamp

↳ update_time Google\Protobuf\Timestamp

Output only. [Output only] Update time stamp

↳ labels array|Google\Protobuf\Internal\MapField

Optional. Labels as key value pairs

↳ state int

Output only. The state of the VM.

↳ region string

Output only. The location of the VM.

↳ product_activation array|Google\Protobuf\Internal\MapField

Output only. Map with Product_Name and Activation State of the VM.

↳ license_version_id string

Output only. license version id.

↳ compute_instance string

Required. Compute Instance resource name, i.e. projects/{project}/zones/{zone}/instances/{instance}

getName

Identifier. name of resource

Returns
Type Description
string

setName

Identifier. name of resource

Parameter
Name Description
var string
Returns
Type Description
$this

getCreateTime

Output only. [Output only] Create time stamp

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. [Output only] Create time stamp

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

getUpdateTime

Output only. [Output only] Update time stamp

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. [Output only] Update time stamp

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

getLabels

Optional. Labels as key value pairs

Returns
Type Description
Google\Protobuf\Internal\MapField

setLabels

Optional. Labels as key value pairs

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

getState

Output only. The state of the VM.

Returns
Type Description
int Enum of type State.

setState

Output only. The state of the VM.

Parameter
Name Description
var int

Enum of type State.

Returns
Type Description
$this

getRegion

Output only. The location of the VM.

Returns
Type Description
string

setRegion

Output only. The location of the VM.

Parameter
Name Description
var string
Returns
Type Description
$this

getProductActivation

Output only. Map with Product_Name and Activation State of the VM.

Returns
Type Description
Google\Protobuf\Internal\MapField

setProductActivation

Output only. Map with Product_Name and Activation State of the VM.

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

getLicenseVersionId

Output only. license version id.

Returns
Type Description
string

setLicenseVersionId

Output only. license version id.

Parameter
Name Description
var string
Returns
Type Description
$this

getComputeInstance

Required. Compute Instance resource name, i.e.

projects/{project}/zones/{zone}/instances/{instance}

Returns
Type Description
string

setComputeInstance

Required. Compute Instance resource name, i.e.

projects/{project}/zones/{zone}/instances/{instance}

Parameter
Name Description
var string
Returns
Type Description
$this