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 \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ allowed_replacement_licenses
string[]
Specifies licenseCodes of licenses that can replace this license. Note: such replacements are allowed even if removable_from_disk is false.
↳ appendable_to_disk
bool
If true, this license can be appended to an existing disk's set of licenses.
↳ 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.
↳ incompatible_licenses
string[]
Specifies licenseCodes of licenses that are incompatible with this license. If a license is incompatible with this license, it cannot be attached to the same disk or image.
↳ 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.
↳ minimum_retention
Duration
If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.
↳ multi_tenant_only
bool
If true, this license can only be used on VMs on multi tenant nodes.
↳ 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.
↳ os_license
bool
If true, indicates this is an OS license. Only one OS license can be attached to a disk or image at a time.
↳ removable_from_disk
bool
If true, this license can be removed from a disk's set of licenses, with no replacement license needed.
↳ required_coattached_licenses
string[]
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license. At least one license from the set must be attached to the same disk or image as this license.
↳ self_link
string
Output only. [Output Only] Server-defined URL for the resource.
↳ sole_tenant_only
bool
If true, this license can only be used on VMs on sole tenant nodes.
↳ 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.
↳ update_timestamp
string
Output only. [Output Only] Last update timestamp inRFC3339 text format.
getAllowedReplacementLicenses
Specifies licenseCodes of licenses that can replace this license. Note: such replacements are allowed even if removable_from_disk is false.
setAllowedReplacementLicenses
Specifies licenseCodes of licenses that can replace this license. Note: such replacements are allowed even if removable_from_disk is false.
var
string[]
$this
getAppendableToDisk
If true, this license can be appended to an existing disk's set of licenses.
bool
hasAppendableToDisk
clearAppendableToDisk
setAppendableToDisk
If true, this license can be appended to an existing disk's set of licenses.
var
bool
$this
getCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
string
hasCreationTimestamp
clearCreationTimestamp
setCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
var
string
$this
getDescription
Output only. [Output Only] Description of this License Code.
string
hasDescription
clearDescription
setDescription
Output only. [Output Only] Description of this License Code.
var
string
$this
getId
Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
int|string
hasId
clearId
setId
Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
var
int|string
$this
getIncompatibleLicenses
Specifies licenseCodes of licenses that are incompatible with this license.
If a license is incompatible with this license, it cannot be attached to the same disk or image.
setIncompatibleLicenses
Specifies licenseCodes of licenses that are incompatible with this license.
If a license is incompatible with this license, it cannot be attached to the same disk or image.
var
string[]
$this
getKind
Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses.
string
hasKind
clearKind
setKind
Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses.
var
string
$this
getLicenseAlias
[Output Only] URL and description aliases of Licenses with the same License Code.
setLicenseAlias
[Output Only] URL and description aliases of Licenses with the same License Code.
$this
getMinimumRetention
If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.
hasMinimumRetention
clearMinimumRetention
setMinimumRetention
If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.
$this
getMultiTenantOnly
If true, this license can only be used on VMs on multi tenant nodes.
bool
hasMultiTenantOnly
clearMultiTenantOnly
setMultiTenantOnly
If true, this license can only be used on VMs on multi tenant nodes.
var
bool
$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.
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.
var
string
$this
getOsLicense
If true, indicates this is an OS license. Only one OS license can be attached to a disk or image at a time.
bool
hasOsLicense
clearOsLicense
setOsLicense
If true, indicates this is an OS license. Only one OS license can be attached to a disk or image at a time.
var
bool
$this
getRemovableFromDisk
If true, this license can be removed from a disk's set of licenses, with no replacement license needed.
bool
hasRemovableFromDisk
clearRemovableFromDisk
setRemovableFromDisk
If true, this license can be removed from a disk's set of licenses, with no replacement license needed.
var
bool
$this
getRequiredCoattachedLicenses
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license. At least one license from the set must be attached to the same disk or image as this license.
setRequiredCoattachedLicenses
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license. At least one license from the set must be attached to the same disk or image as this license.
var
string[]
$this
getSelfLink
Output only. [Output Only] Server-defined URL for the resource.
string
hasSelfLink
clearSelfLink
setSelfLink
Output only. [Output Only] Server-defined URL for the resource.
var
string
$this
getSoleTenantOnly
If true, this license can only be used on VMs on sole tenant nodes.
bool
hasSoleTenantOnly
clearSoleTenantOnly
setSoleTenantOnly
If true, this license can only be used on VMs on sole tenant nodes.
var
bool
$this
getState
Output only. [Output Only] Current state of this License Code.
Check the State enum for the list of possible values.
string
hasState
clearState
setState
Output only. [Output Only] Current state of this License Code.
Check the State enum for the list of possible values.
var
string
$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.
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.
var
bool
$this
getUpdateTimestamp
Output only. [Output Only] Last update timestamp inRFC3339 text format.
string
hasUpdateTimestamp
clearUpdateTimestamp
setUpdateTimestamp
Output only. [Output Only] Last update timestamp inRFC3339 text format.
var
string
$this

