Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::LicenseCode (v2.8.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#creation_timestamp

def creation_timestamp() -> ::String
Returns
  • (::String) — [Output Only] Creation timestamp in RFC3339 text format.

#creation_timestamp=

def creation_timestamp=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Creation timestamp in RFC3339 text format.
Returns
  • (::String) — [Output Only] Creation timestamp in RFC3339 text format.

#description

def description() -> ::String
Returns
  • (::String) — [Output Only] Description of this License Code.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Description of this License Code.
Returns
  • (::String) — [Output Only] Description of this License Code.

#id

def id() -> ::Integer
Returns
  • (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.

#id=

def id=(value) -> ::Integer
Parameter
  • value (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Returns
  • (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.

#kind

def kind() -> ::String
Returns
  • (::String) — [Output Only] Type of resource. Always compute#licenseCode for licenses.

#kind=

def kind=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Type of resource. Always compute#licenseCode for licenses.
Returns
  • (::String) — [Output Only] Type of resource. Always compute#licenseCode for licenses.

#license_alias

def license_alias() -> ::Array<::Google::Cloud::Compute::V1::LicenseCodeLicenseAlias>
Returns

#license_alias=

def license_alias=(value) -> ::Array<::Google::Cloud::Compute::V1::LicenseCodeLicenseAlias>
Parameter
Returns

#name

def name() -> ::String
Returns
  • (::String) — [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
Returns
  • (::String) — [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
def self_link() -> ::String
Returns
  • (::String) — [Output Only] Server-defined URL for the resource.
def self_link=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Server-defined URL for the resource.
Returns
  • (::String) — [Output Only] Server-defined URL for the resource.

#state

def state() -> ::String
Returns
  • (::String) — [Output Only] Current state of this License Code. Check the State enum for the list of possible values.

#state=

def state=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Current state of this License Code. Check the State enum for the list of possible values.
Returns
  • (::String) — [Output Only] Current state of this License Code. Check the State enum for the list of possible values.

#transferable

def transferable() -> ::Boolean
Returns
  • (::Boolean) — [Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.

#transferable=

def transferable=(value) -> ::Boolean
Parameter
  • value (::Boolean) — [Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.
Returns
  • (::Boolean) — [Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.