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.
Generated from protobuf field optional bool charges_use_fee = 372412622;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getCreationTimestamp
[Output Only] Creation timestamp in RFC3339 text format.
Generated from protobuf field optional string creation_timestamp = 30525366;
Returns | |
---|---|
Type | Description |
string |
hasCreationTimestamp
clearCreationTimestamp
setCreationTimestamp
[Output Only] Creation timestamp in RFC3339 text format.
Generated from protobuf field optional string creation_timestamp = 30525366;
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.
Generated from protobuf field optional string description = 422937596;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |
getKind
[Output Only] Type of resource. Always compute#license for licenses.
Generated from protobuf field optional string kind = 3292052;
Returns | |
---|---|
Type | Description |
string |
hasKind
clearKind
setKind
[Output Only] Type of resource. Always compute#license for licenses.
Generated from protobuf field optional string kind = 3292052;
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.
Generated from protobuf field optional uint64 license_code = 1467179;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
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.
Generated from protobuf field optional string name = 3373707;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
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.
Generated from protobuf field optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
string |
hasSelfLink
clearSelfLink
setSelfLink
[Output Only] Server-defined URL for the resource.
Generated from protobuf field optional string self_link = 456214797;
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.
Generated from protobuf field optional bool transferable = 4349893;
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.
Generated from protobuf field optional bool transferable = 4349893;
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |