Show / Hide Table of Contents

Class LicenseCode

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.

Inheritance
object
LicenseCode
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Compute.alpha.Data
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class LicenseCode : IDirectResponseSchema

Properties

AllowedReplacementLicenses

Specifies licenseCodes of licenses that can replace this license. Note: such replacements are allowed even if removable_from_disk is false.

Declaration
[JsonProperty("allowedReplacementLicenses")]
public virtual IList<string> AllowedReplacementLicenses { get; set; }
Property Value
Type Description
IList<string>

AppendableToDisk

If true, this license can be appended to an existing disk's set of licenses.

Declaration
[JsonProperty("appendableToDisk")]
public virtual bool? AppendableToDisk { get; set; }
Property Value
Type Description
bool?

CreationTimestamp

[Output Only] Creation timestamp in RFC3339 text format.

Declaration
[JsonProperty("creationTimestamp")]
public virtual string CreationTimestamp { get; set; }
Property Value
Type Description
string

Description

[Output Only] Description of this License Code.

Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type Description
string

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

Id

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

Declaration
[JsonProperty("id")]
public virtual ulong? Id { get; set; }
Property Value
Type Description
ulong?

IncompatibleLicenses

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.

Declaration
[JsonProperty("incompatibleLicenses")]
public virtual IList<string> IncompatibleLicenses { get; set; }
Property Value
Type Description
IList<string>

Kind

[Output Only] Type of resource. Always compute#licenseCode for licenses.

Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type Description
string

LicenseAlias

[Output Only] URL and description aliases of Licenses with the same License Code.

Declaration
[JsonProperty("licenseAlias")]
public virtual IList<LicenseCodeLicenseAlias> LicenseAlias { get; set; }
Property Value
Type Description
IList<LicenseCodeLicenseAlias>

MinimumRetention

If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed.

Declaration
[JsonProperty("minimumRetention")]
public virtual Duration MinimumRetention { get; set; }
Property Value
Type Description
Duration

MultiTenantOnly

If true, this license can only be used on VMs on multi tenant nodes.

Declaration
[JsonProperty("multiTenantOnly")]
public virtual bool? MultiTenantOnly { get; set; }
Property Value
Type Description
bool?

Name

[Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.

Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type Description
string

OsLicense

If true, indicates this is an OS license. Only one OS license can be attached to a disk or image at a time.

Declaration
[JsonProperty("osLicense")]
public virtual bool? OsLicense { get; set; }
Property Value
Type Description
bool?

RemovableFromDisk

If true, this license can be removed from a disk's set of licenses, with no replacement license needed.

Declaration
[JsonProperty("removableFromDisk")]
public virtual bool? RemovableFromDisk { get; set; }
Property Value
Type Description
bool?

RequiredCoattachedLicenses

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.

Declaration
[JsonProperty("requiredCoattachedLicenses")]
public virtual IList<string> RequiredCoattachedLicenses { get; set; }
Property Value
Type Description
IList<string>

SelfLink

[Output Only] Server-defined URL for the resource.

Declaration
[JsonProperty("selfLink")]
public virtual string SelfLink { get; set; }
Property Value
Type Description
string

SoleTenantOnly

If true, this license can only be used on VMs on sole tenant nodes.

Declaration
[JsonProperty("soleTenantOnly")]
public virtual bool? SoleTenantOnly { get; set; }
Property Value
Type Description
bool?

State

[Output Only] Current state of this License Code.

Declaration
[JsonProperty("state")]
public virtual string State { get; set; }
Property Value
Type Description
string

Transferable

[Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.

Declaration
[JsonProperty("transferable")]
public virtual bool? Transferable { get; set; }
Property Value
Type Description
bool?

UpdateTimestamp

[Output Only] Last update timestamp in RFC3339 text format.

Declaration
[JsonProperty("updateTimestamp")]
public virtual string UpdateTimestamp { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX