Reference documentation and code samples for the Compute V1 Client class License.
Represents a License resource. A License represents billing and aggregate usage data for public and marketplace images. 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.License
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ charges_use_fee
bool
[Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.
↳ creation_timestamp
string
[Output Only] Creation timestamp in RFC3339 text format.
↳ description
string
An optional textual description of the resource; provided by the client when the resource is created.
↳ 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#license for licenses.
↳ license_code
int|string
[Output Only] The unique code used to attach this license to images, snapshots, and disks.
↳ name
string
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
↳ resource_requirements
↳ self_link
string
[Output Only] Server-defined URL for the resource.
↳ transferable
bool
If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
getChargesUseFee
[Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.
bool
hasChargesUseFee
clearChargesUseFee
setChargesUseFee
[Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.
var
bool
$this
getCreationTimestamp
[Output Only] Creation timestamp in RFC3339 text format.
string
hasCreationTimestamp
clearCreationTimestamp
setCreationTimestamp
[Output Only] Creation timestamp in RFC3339 text format.
var
string
$this
getDescription
An optional textual description of the resource; provided by the client when the resource is created.
string
hasDescription
clearDescription
setDescription
An optional textual description of the resource; provided by the client when the resource is created.
var
string
$this
getId
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
int|string
hasId
clearId
setId
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
var
int|string
$this
getKind
[Output Only] Type of resource. Always compute#license for licenses.
string
hasKind
clearKind
setKind
[Output Only] Type of resource. Always compute#license for licenses.
var
string
$this
getLicenseCode
[Output Only] The unique code used to attach this license to images, snapshots, and disks.
int|string
hasLicenseCode
clearLicenseCode
setLicenseCode
[Output Only] The unique code used to attach this license to images, snapshots, and disks.
var
int|string
$this
getName
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
string
hasName
clearName
setName
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
var
string
$this
getResourceRequirements
Generated from protobuf field optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
hasResourceRequirements
clearResourceRequirements
setResourceRequirements
Generated from protobuf field optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
$this
getSelfLink
[Output Only] Server-defined URL for the resource.
string
hasSelfLink
clearSelfLink
setSelfLink
[Output Only] Server-defined URL for the resource.
var
string
$this
getTransferable
If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
bool
hasTransferable
clearTransferable
setTransferable
If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
var
bool
$this