Compute V1 Client - Class License (1.8.3)

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.

Parameters
NameDescription
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 Google\Cloud\Compute\V1\LicenseResourceRequirements
↳ 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.

Returns
TypeDescription
bool

hasChargesUseFee

clearChargesUseFee

setChargesUseFee

[Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getCreationTimestamp

[Output Only] Creation timestamp in RFC3339 text format.

Returns
TypeDescription
string

hasCreationTimestamp

clearCreationTimestamp

setCreationTimestamp

[Output Only] Creation timestamp in RFC3339 text format.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

An optional textual description of the resource; provided by the client when the resource is created.

Returns
TypeDescription
string

hasDescription

clearDescription

setDescription

An optional textual description of the resource; provided by the client when the resource is created.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getId

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

Returns
TypeDescription
int|string

hasId

clearId

setId

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

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getKind

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

Returns
TypeDescription
string

hasKind

clearKind

setKind

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLicenseCode

[Output Only] The unique code used to attach this license to images, snapshots, and disks.

Returns
TypeDescription
int|string

hasLicenseCode

clearLicenseCode

setLicenseCode

[Output Only] The unique code used to attach this license to images, snapshots, and disks.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getName

Name of the resource. The name must be 1-63 characters long and comply with RFC1035.

Returns
TypeDescription
string

hasName

clearName

setName

Name of the resource. The name must be 1-63 characters long and comply with RFC1035.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getResourceRequirements

Generated from protobuf field optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;

Returns
TypeDescription
Google\Cloud\Compute\V1\LicenseResourceRequirements|null

hasResourceRequirements

clearResourceRequirements

setResourceRequirements

Generated from protobuf field optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;

Parameter
NameDescription
var Google\Cloud\Compute\V1\LicenseResourceRequirements
Returns
TypeDescription
$this

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

Returns
TypeDescription
string

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

Parameter
NameDescription
var string
Returns
TypeDescription
$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.

Returns
TypeDescription
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.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this