1.57.0 (latest) 1.56.0 1.55.0 1.54.0 1.53.0 1.52.0 1.51.0 1.50.0 1.49.0 1.48.0 1.41.0 1.40.0 1.39.0 1.38.0 1.37.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 1.24.0 1.23.0 1.22.0 1.21.0 1.20.1 1.19.2 1.18.0 1.17.0 1.16.1 1.15.0 1.14.1 1.13.0 1.12.1 1.11.0 1.10.1 1.9.0 1.8.0 1.7.0 1.6.1 1.5.2 1.4.0 1.3.2 1.2.0 1.1.0 1.0.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.2 0.3.0 0.2.1 0.1.0

```python
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_v1.types.LicenseCodeLicenseAlias]` \[Output Only\] URL and description aliases of Licenses with the same License Code. |
| `minimum_retention` | `google.cloud.compute_v1.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

```python
State(value)
```
Output only. \[Output Only\] Current state of this License Code.