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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
bool |
hasChargesUseFee
clearChargesUseFee
setChargesUseFee
[Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getCreationTimestamp
[Output Only] Creation timestamp in RFC3339 text format.
Returns | |
---|---|
Type | Description |
string |
hasCreationTimestamp
clearCreationTimestamp
setCreationTimestamp
[Output Only] Creation timestamp in RFC3339 text format.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDescription
An optional textual description of the resource; provided by the client when the resource is created.
Returns | |
---|---|
Type | Description |
string |
hasDescription
clearDescription
setDescription
An optional textual description of the resource; provided by the client when the resource is created.
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.
Returns | |
---|---|
Type | Description |
int|string |
hasId
clearId
setId
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |
getKind
[Output Only] Type of resource. Always compute#license for licenses.
Returns | |
---|---|
Type | Description |
string |
hasKind
clearKind
setKind
[Output Only] Type of resource. Always compute#license for licenses.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getLicenseCode
[Output Only] The unique code used to attach this license to images, snapshots, and disks.
Returns | |
---|---|
Type | Description |
int|string |
hasLicenseCode
clearLicenseCode
setLicenseCode
[Output Only] The unique code used to attach this license to images, snapshots, and disks.
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |
getName
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
Returns | |
---|---|
Type | Description |
string |
hasName
clearName
setName
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getResourceRequirements
Generated from protobuf field optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
Returns | |
---|---|
Type | Description |
Google\Cloud\Compute\V1\LicenseResourceRequirements|null |
hasResourceRequirements
clearResourceRequirements
setResourceRequirements
Generated from protobuf field optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Compute\V1\LicenseResourceRequirements
|
Returns | |
---|---|
Type | Description |
$this |
getSelfLink
[Output Only] Server-defined URL for the resource.
Returns | |
---|---|
Type | Description |
string |
hasSelfLink
clearSelfLink
setSelfLink
[Output Only] Server-defined URL for the resource.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |