Class LicenseCode (1.12.0)

LicenseCode(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a License Code resource. A License Code is a unique identifier used to represent a license resource. 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

NameDescription
creation_timestamp str
[Output Only] Creation timestamp in RFC3339 text format. This field is a member of oneof_ _creation_timestamp.
description str
[Output Only] Description of this License Code. 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.
kind str
[Output Only] Type of resource. Always compute#licenseCode for licenses. This field is a member of oneof_ _kind.
license_alias MutableSequence[google.cloud.compute_v1.types.LicenseCodeLicenseAlias]
[Output Only] URL and description aliases of Licenses with the same License Code.
name str
[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.
self_link str
[Output Only] Server-defined URL for the resource. This field is a member of oneof_ _self_link.
state str
[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] 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.

Classes

State

State(value)

[Output Only] Current state of this License Code.

Values: UNDEFINED_STATE (0): A value indicating that the enum field is not set. DISABLED (516696700): Machines are not allowed to attach boot disks with this License Code. Requests to create new resources with this license will be rejected. ENABLED (182130465): Use is allowed for anyone with USE_READ_ONLY access to this License Code. RESTRICTED (261551195): Use of this license is limited to a project whitelist. STATE_UNSPECIFIED (470755401): No description available. TERMINATED (250018339): Reserved state.