Compute V1 Client - Class LicenseCode (2.4.0)

Reference documentation and code samples for the Compute V1 Client class LicenseCode.

Represents a License Code resource.

A License Code is a unique identifier used to represent alicense resource. Caution This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.

Generated from protobuf message google.cloud.compute.v1.LicenseCode

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ creation_timestamp string

Output only. [Output Only] Creation timestamp inRFC3339 text format.

↳ description string

Output only. [Output Only] Description of this License Code.

↳ id int|string

Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.

↳ kind string

Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses.

↳ license_alias array<LicenseCodeLicenseAlias>

[Output Only] URL and description aliases of Licenses with the same License Code.

↳ name string

Output only. [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.

↳ self_link string

Output only. [Output Only] Server-defined URL for the resource.

↳ state string

Output only. [Output Only] Current state of this License Code. Check the State enum for the list of possible values.

↳ transferable bool

Output only. [Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.

getCreationTimestamp

Output only. [Output Only] Creation timestamp inRFC3339 text format.

Returns
Type Description
string

hasCreationTimestamp

clearCreationTimestamp

setCreationTimestamp

Output only. [Output Only] Creation timestamp inRFC3339 text format.

Parameter
Name Description
var string
Returns
Type Description
$this

getDescription

Output only. [Output Only] Description of this License Code.

Returns
Type Description
string

hasDescription

clearDescription

setDescription

Output only. [Output Only] Description of this License Code.

Parameter
Name Description
var string
Returns
Type Description
$this

getId

Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.

Returns
Type Description
int|string

hasId

clearId

setId

Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getKind

Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses.

Returns
Type Description
string

hasKind

clearKind

setKind

Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses.

Parameter
Name Description
var string
Returns
Type Description
$this

getLicenseAlias

[Output Only] URL and description aliases of Licenses with the same License Code.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setLicenseAlias

[Output Only] URL and description aliases of Licenses with the same License Code.

Parameter
Name Description
var array<LicenseCodeLicenseAlias>
Returns
Type Description
$this

getName

Output only. [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.

Returns
Type Description
string

hasName

clearName

setName

Output only. [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.

Parameter
Name Description
var string
Returns
Type Description
$this

Output only. [Output Only] Server-defined URL for the resource.

Returns
Type Description
string

Output only. [Output Only] Server-defined URL for the resource.

Parameter
Name Description
var string
Returns
Type Description
$this

getState

Output only. [Output Only] Current state of this License Code.

Check the State enum for the list of possible values.

Returns
Type Description
string

hasState

clearState

setState

Output only. [Output Only] Current state of this License Code.

Check the State enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this

getTransferable

Output only. [Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.

Returns
Type Description
bool

hasTransferable

clearTransferable

setTransferable

Output only. [Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.

Parameter
Name Description
var bool
Returns
Type Description
$this