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 a license resource. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Generated from protobuf message google.cloud.compute.v1.LicenseCode
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ creation_timestamp |
string
[Output Only] Creation timestamp in RFC3339 text format. |
↳ description |
string
[Output Only] Description of this License Code. |
↳ id |
int|string
[Output Only] The unique identifier for the resource. This identifier is defined by the server. |
↳ kind |
string
[Output Only] Type of resource. Always compute#licenseCode for licenses. |
↳ license_alias |
array<Google\Cloud\Compute\V1\LicenseCodeLicenseAlias>
[Output Only] URL and description aliases of Licenses with the same License Code. |
↳ name |
string
[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] Server-defined URL for the resource. |
↳ state |
string
[Output Only] Current state of this License Code. Check the State enum for the list of possible values. |
↳ transferable |
bool
[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] Creation timestamp in RFC3339 text format.
Generated from protobuf field optional string creation_timestamp = 30525366;
Returns | |
---|---|
Type | Description |
string |
hasCreationTimestamp
clearCreationTimestamp
setCreationTimestamp
[Output Only] Creation timestamp in RFC3339 text format.
Generated from protobuf field optional string creation_timestamp = 30525366;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDescription
[Output Only] Description of this License Code.
Generated from protobuf field optional string description = 422937596;
Returns | |
---|---|
Type | Description |
string |
hasDescription
clearDescription
setDescription
[Output Only] Description of this License Code.
Generated from protobuf field optional string description = 422937596;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getId
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
Generated from protobuf field optional uint64 id = 3355;
Returns | |
---|---|
Type | Description |
int|string |
hasId
clearId
setId
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
Generated from protobuf field optional uint64 id = 3355;
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |
getKind
[Output Only] Type of resource. Always compute#licenseCode for licenses.
Generated from protobuf field optional string kind = 3292052;
Returns | |
---|---|
Type | Description |
string |
hasKind
clearKind
setKind
[Output Only] Type of resource. Always compute#licenseCode for licenses.
Generated from protobuf field optional string kind = 3292052;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getLicenseAlias
[Output Only] URL and description aliases of Licenses with the same License Code.
Generated from protobuf field repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setLicenseAlias
[Output Only] URL and description aliases of Licenses with the same License Code.
Generated from protobuf field repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\Compute\V1\LicenseCodeLicenseAlias>
|
Returns | |
---|---|
Type | Description |
$this |
getName
[Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
Generated from protobuf field optional string name = 3373707;
Returns | |
---|---|
Type | Description |
string |
hasName
clearName
setName
[Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
Generated from protobuf field optional string name = 3373707;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSelfLink
[Output Only] Server-defined URL for the resource.
Generated from protobuf field optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
string |
hasSelfLink
clearSelfLink
setSelfLink
[Output Only] Server-defined URL for the resource.
Generated from protobuf field optional string self_link = 456214797;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getState
[Output Only] Current state of this License Code.
Check the State enum for the list of possible values.
Generated from protobuf field optional string state = 109757585;
Returns | |
---|---|
Type | Description |
string |
hasState
clearState
setState
[Output Only] Current state of this License Code.
Check the State enum for the list of possible values.
Generated from protobuf field optional string state = 109757585;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getTransferable
[Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.
Generated from protobuf field optional bool transferable = 4349893;
Returns | |
---|---|
Type | Description |
bool |
hasTransferable
clearTransferable
setTransferable
[Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.
Generated from protobuf field optional bool transferable = 4349893;
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |