License(mapping=None, *, ignore_unknown_fields=False, **kwargs)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.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes |
|
|---|---|
| Name | Description |
allowed_replacement_licenses |
MutableSequence[str]
Specifies licenseCodes of licenses that can replace this license. Note: such replacements are allowed even if removable_from_disk is false. |
appendable_to_disk |
bool
If true, this license can be appended to an existing disk's set of licenses. This field is a member of oneof_ _appendable_to_disk.
|
charges_use_fee |
bool
[Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee. This field is a member of oneof_ _charges_use_fee.
|
creation_timestamp |
str
[Output Only] Creation timestamp in RFC3339 text format. This field is a member of oneof_ _creation_timestamp.
|
description |
str
An optional textual description of the resource; provided by the client when the resource is created. This field is a member of oneof_ _description.
|
id |
int
[Output Only] The unique identifier for the resource. This identifier is defined by the server. This field is a member of oneof_ _id.
|
incompatible_licenses |
MutableSequence[str]
Specifies licenseCodes of licenses that are incompatible with this license. If a license is incompatible with this license, it cannot be attached to the same disk or image. |
kind |
str
[Output Only] Type of resource. Always compute#license for licenses. This field is a member of oneof_ _kind.
|
license_code |
int
[Output Only] The unique code used to attach this license to images, snapshots, and disks. This field is a member of oneof_ _license_code.
|
minimum_retention |
google.cloud.compute_v1beta.types.Duration
If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed. This field is a member of oneof_ _minimum_retention.
|
multi_tenant_only |
bool
If true, this license can only be used on VMs on multi tenant nodes. This field is a member of oneof_ _multi_tenant_only.
|
name |
str
Name of the resource. The name must be 1-63 characters long and comply with RFC1035. This field is a member of oneof_ _name.
|
os_license |
bool
If true, indicates this is an OS license. Only one OS license can be attached to a disk or image at a time. This field is a member of oneof_ _os_license.
|
removable_from_disk |
bool
If true, this license can be removed from a disk's set of licenses, with no replacement license needed. This field is a member of oneof_ _removable_from_disk.
|
required_coattached_licenses |
MutableSequence[str]
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license. At least one license from the set must be attached to the same disk or image as this license. |
resource_requirements |
google.cloud.compute_v1beta.types.LicenseResourceRequirements
[Input Only] Deprecated. This field is a member of oneof_ _resource_requirements.
|
self_link |
str
[Output Only] Server-defined URL for the resource. This field is a member of oneof_ _self_link.
|
self_link_with_id |
str
[Output Only] Server-defined URL for this resource with the resource id. This field is a member of oneof_ _self_link_with_id.
|
sole_tenant_only |
bool
If true, this license can only be used on VMs on sole tenant nodes. This field is a member of oneof_ _sole_tenant_only.
|
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. This field is a member of oneof_ _transferable.
|
update_timestamp |
str
[Output Only] Last update timestamp in RFC3339 text format. This field is a member of oneof_ _update_timestamp.
|