class Google::Apis::ComputeV1::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.

Attributes

creation_timestamp[RW]
Output Only

Creation timestamp in RFC3339 text format.

Corresponds to the JSON property `creationTimestamp` @return [String]

description[RW]
Output Only

Description of this License Code.

Corresponds to the JSON property `description` @return [String]

id[RW]
Output Only

The unique identifier for the resource. This identifier is

defined by the server. Corresponds to the JSON property `id` @return [Fixnum]

kind[RW]
Output Only

Type of resource. Always compute#licenseCode for licenses.

Corresponds to the JSON property `kind` @return [String]

license_alias[RW]
Output Only

URL and description aliases of Licenses with the same License

Code. Corresponds to the JSON property `licenseAlias` @return [Array<Google::Apis::ComputeV1::LicenseCodeLicenseAlias>]

name[RW]
Output Only

Name of the resource. The name is 1-20 characters long and must

be a valid 64 bit integer. Corresponds to the JSON property `name` @return [String]

state[RW]
Output Only

Current state of this License Code.

Corresponds to the JSON property `state` @return [String]

transferable[RW]
Output Only

If true, the license will remain attached when creating images

or snapshots from disks. Otherwise, the license is not transferred. Corresponds to the JSON property `transferable` @return [Boolean]

transferable?[RW]
Output Only

If true, the license will remain attached when creating images

or snapshots from disks. Otherwise, the license is not transferred. Corresponds to the JSON property `transferable` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 18017
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_v1/classes.rb, line 18022
def update!(**args)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @license_alias = args[:license_alias] if args.key?(:license_alias)
  @name = args[:name] if args.key?(:name)
  @self_link = args[:self_link] if args.key?(:self_link)
  @state = args[:state] if args.key?(:state)
  @transferable = args[:transferable] if args.key?(:transferable)
end