LicenseCode(mapping=None, *, ignore_unknown_fields=False, **kwargs)Represents a License Code resource.
A License Code is a unique identifier used to represent alicense resource. Caution This resource is intended for use only by third-party partners who are creatingCloud 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.
|
creation_timestamp |
str
Output only. [Output Only] Creation timestamp inRFC3339 text format. This field is a member of oneof_ _creation_timestamp.
|
description |
str
Output only. [Output Only] Description of this License Code. This field is a member of oneof_ _description.
|
id |
int
Output only. [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. [Output Only] Type of resource. Always compute#licenseCode for licenses. This field is a member of oneof_ _kind.
|
license_alias |
MutableSequence[google.cloud.compute_v1beta.types.LicenseCodeLicenseAlias]
[Output Only] URL and description aliases of Licenses with the same 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
Output only. [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer. 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. |
self_link |
str
Output only. [Output Only] Server-defined URL for the resource. This field is a member of oneof_ _self_link.
|
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.
|
state |
str
Output only. [Output Only] Current state of this License Code. Check the State enum for the list of possible values. This field is a member of oneof_ _state.
|
transferable |
bool
Output only. [Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred. This field is a member of oneof_ _transferable.
|
update_timestamp |
str
Output only. [Output Only] Last update timestamp inRFC3339 text format. This field is a member of oneof_ _update_timestamp.
|
Classes
State
State(value)Output only. [Output Only] Current state of this License Code.