Compute V1 Client - Class License (1.5.0)

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.

Generated from protobuf field optional bool charges_use_fee = 372412622;

Returns
TypeDescription
bool

hasChargesUseFee

clearChargesUseFee

setChargesUseFee

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

Generated from protobuf field optional bool charges_use_fee = 372412622;

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getCreationTimestamp

[Output Only] Creation timestamp in RFC3339 text format.

Generated from protobuf field optional string creation_timestamp = 30525366;

Returns
TypeDescription
string

hasCreationTimestamp

clearCreationTimestamp

setCreationTimestamp

[Output Only] Creation timestamp in RFC3339 text format.

Generated from protobuf field optional string creation_timestamp = 30525366;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

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

Generated from protobuf field optional string description = 422937596;

Returns
TypeDescription
string

hasDescription

clearDescription

setDescription

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

Generated from protobuf field optional string description = 422937596;

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

getKind

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

Generated from protobuf field optional string kind = 3292052;

Returns
TypeDescription
string

hasKind

clearKind

setKind

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

Generated from protobuf field optional string kind = 3292052;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLicenseCode

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

Generated from protobuf field optional uint64 license_code = 1467179;

Returns
TypeDescription
int|string

hasLicenseCode

clearLicenseCode

setLicenseCode

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

Generated from protobuf field optional uint64 license_code = 1467179;

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.

Generated from protobuf field optional string name = 3373707;

Returns
TypeDescription
string

hasName

clearName

setName

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

Generated from protobuf field optional string name = 3373707;

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.

Generated from protobuf field optional string self_link = 456214797;

Returns
TypeDescription
string

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

Generated from protobuf field optional string self_link = 456214797;

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.

Generated from protobuf field optional bool transferable = 4349893;

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.

Generated from protobuf field optional bool transferable = 4349893;

Parameter
NameDescription
var bool
Returns
TypeDescription
$this