public sealed class LicenseCode : IMessage<LicenseCode>, IEquatable<LicenseCode>, IDeepCloneable<LicenseCode>, IBufferMessage, IMessageReference documentation and code samples for the Compute Engine v1 API class LicenseCode.
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.
Implements
IMessageLicenseCode, IEquatableLicenseCode, IDeepCloneableLicenseCode, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
LicenseCode()
public LicenseCode()LicenseCode(LicenseCode)
public LicenseCode(LicenseCode other)| Parameter | |
|---|---|
| Name | Description |
other |
LicenseCode |
Properties
AllowedReplacementLicenses
public RepeatedField<string> AllowedReplacementLicenses { get; }Specifies licenseCodes of licenses that can replace this license. Note: such replacements are allowed even if removable_from_disk is false.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldstring |
|
AppendableToDisk
public bool AppendableToDisk { get; set; }If true, this license can be appended to an existing disk's set of licenses.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
CreationTimestamp
public string CreationTimestamp { get; set; }Output only. [Output Only] Creation timestamp inRFC3339 text format.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Description
public string Description { get; set; }Output only. [Output Only] Description of this License Code.
| Property Value | |
|---|---|
| Type | Description |
string |
|
HasAppendableToDisk
public bool HasAppendableToDisk { get; }Gets whether the "appendable_to_disk" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasCreationTimestamp
public bool HasCreationTimestamp { get; }Gets whether the "creation_timestamp" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasDescription
public bool HasDescription { get; }Gets whether the "description" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasId
public bool HasId { get; }Gets whether the "id" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasKind
public bool HasKind { get; }Gets whether the "kind" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasMultiTenantOnly
public bool HasMultiTenantOnly { get; }Gets whether the "multi_tenant_only" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasName
public bool HasName { get; }Gets whether the "name" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasOsLicense
public bool HasOsLicense { get; }Gets whether the "os_license" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasRemovableFromDisk
public bool HasRemovableFromDisk { get; }Gets whether the "removable_from_disk" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasSelfLink
public bool HasSelfLink { get; }Gets whether the "self_link" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasSoleTenantOnly
public bool HasSoleTenantOnly { get; }Gets whether the "sole_tenant_only" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasState
public bool HasState { get; }Gets whether the "state" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasTransferable
public bool HasTransferable { get; }Gets whether the "transferable" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasUpdateTimestamp
public bool HasUpdateTimestamp { get; }Gets whether the "update_timestamp" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
Id
public ulong Id { get; set; }Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
| Property Value | |
|---|---|
| Type | Description |
ulong |
|
IncompatibleLicenses
public RepeatedField<string> IncompatibleLicenses { get; }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.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldstring |
|
Kind
public string Kind { get; set; }Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses.
| Property Value | |
|---|---|
| Type | Description |
string |
|
LicenseAlias
public RepeatedField<LicenseCodeLicenseAlias> LicenseAlias { get; }[Output Only] URL and description aliases of Licenses with the same License Code.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldLicenseCodeLicenseAlias |
|
MinimumRetention
public Duration MinimumRetention { get; set; }If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.
| Property Value | |
|---|---|
| Type | Description |
Duration |
|
MultiTenantOnly
public bool MultiTenantOnly { get; set; }If true, this license can only be used on VMs on multi tenant nodes.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
Name
public string Name { get; set; }Output only. [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
| Property Value | |
|---|---|
| Type | Description |
string |
|
OsLicense
public bool OsLicense { get; set; }If true, indicates this is an OS license. Only one OS license can be attached to a disk or image at a time.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
RemovableFromDisk
public bool RemovableFromDisk { get; set; }If true, this license can be removed from a disk's set of licenses, with no replacement license needed.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
RequiredCoattachedLicenses
public RepeatedField<string> RequiredCoattachedLicenses { get; }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.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldstring |
|
SelfLink
public string SelfLink { get; set; }Output only. [Output Only] Server-defined URL for the resource.
| Property Value | |
|---|---|
| Type | Description |
string |
|
SoleTenantOnly
public bool SoleTenantOnly { get; set; }If true, this license can only be used on VMs on sole tenant nodes.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
State
public string State { get; set; }Output only. [Output Only] Current state of this License Code. Check the State enum for the list of possible values.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Transferable
public bool Transferable { get; set; }Output only. [Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
UpdateTimestamp
public string UpdateTimestamp { get; set; }Output only. [Output Only] Last update timestamp inRFC3339 text format.
| Property Value | |
|---|---|
| Type | Description |
string |
|