Class: Google::Apis::ComputeAlpha::LicenseCode

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb

Overview

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. (== resource_for $api_version. licenseCodes ==)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LicenseCode

Returns a new instance of LicenseCode.



20170
20171
20172
# File 'lib/google/apis/compute_alpha/classes.rb', line 20170

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#creation_timestampString

[Output Only] Creation timestamp in RFC3339 text format. Corresponds to the JSON property creationTimestamp

Returns:

  • (String)


20123
20124
20125
# File 'lib/google/apis/compute_alpha/classes.rb', line 20123

def creation_timestamp
  @creation_timestamp
end

#descriptionString

[Output Only] Description of this License Code. Corresponds to the JSON property description

Returns:

  • (String)


20128
20129
20130
# File 'lib/google/apis/compute_alpha/classes.rb', line 20128

def description
  @description
end

#idFixnum

[Output Only] The unique identifier for the resource. This identifier is defined by the server. Corresponds to the JSON property id

Returns:

  • (Fixnum)


20134
20135
20136
# File 'lib/google/apis/compute_alpha/classes.rb', line 20134

def id
  @id
end

#kindString

[Output Only] Type of resource. Always compute#licenseCode for licenses. Corresponds to the JSON property kind

Returns:

  • (String)


20139
20140
20141
# File 'lib/google/apis/compute_alpha/classes.rb', line 20139

def kind
  @kind
end

#license_aliasArray<Google::Apis::ComputeAlpha::LicenseCodeLicenseAlias>

[Output Only] URL and description aliases of Licenses with the same License Code. Corresponds to the JSON property licenseAlias



20145
20146
20147
# File 'lib/google/apis/compute_alpha/classes.rb', line 20145

def license_alias
  @license_alias
end

#nameString

[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

Returns:

  • (String)


20151
20152
20153
# File 'lib/google/apis/compute_alpha/classes.rb', line 20151

def name
  @name
end

[Output Only] Server-defined URL for the resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


20156
20157
20158
# File 'lib/google/apis/compute_alpha/classes.rb', line 20156

def self_link
  @self_link
end

#stateString

[Output Only] Current state of this License Code. Corresponds to the JSON property state

Returns:

  • (String)


20161
20162
20163
# File 'lib/google/apis/compute_alpha/classes.rb', line 20161

def state
  @state
end

#transferableBoolean Also known as: transferable?

[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

Returns:

  • (Boolean)


20167
20168
20169
# File 'lib/google/apis/compute_alpha/classes.rb', line 20167

def transferable
  @transferable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
# File 'lib/google/apis/compute_alpha/classes.rb', line 20175

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