Class: Google::Apis::ComputeAlpha::License

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 resource. A License represents billing and aggregate usage data for public and marketplace images. Caution This resource is intended for use only by third- party partners who are creating Cloud Marketplace images. (== resource_for $ api_version.licenses ==)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ License

Returns a new instance of License.



20090
20091
20092
# File 'lib/google/apis/compute_alpha/classes.rb', line 20090

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

Instance Attribute Details

#charges_use_feeBoolean Also known as: charges_use_fee?

[Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee. Corresponds to the JSON property chargesUseFee

Returns:

  • (Boolean)


20031
20032
20033
# File 'lib/google/apis/compute_alpha/classes.rb', line 20031

def charges_use_fee
  @charges_use_fee
end

#creation_timestampString

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

Returns:

  • (String)


20037
20038
20039
# File 'lib/google/apis/compute_alpha/classes.rb', line 20037

def creation_timestamp
  @creation_timestamp
end

#descriptionString

An optional textual description of the resource; provided by the client when the resource is created. Corresponds to the JSON property description

Returns:

  • (String)


20043
20044
20045
# File 'lib/google/apis/compute_alpha/classes.rb', line 20043

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)


20049
20050
20051
# File 'lib/google/apis/compute_alpha/classes.rb', line 20049

def id
  @id
end

#kindString

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

Returns:

  • (String)


20054
20055
20056
# File 'lib/google/apis/compute_alpha/classes.rb', line 20054

def kind
  @kind
end

#license_codeFixnum

[Output Only] The unique code used to attach this license to images, snapshots, and disks. Corresponds to the JSON property licenseCode

Returns:

  • (Fixnum)


20060
20061
20062
# File 'lib/google/apis/compute_alpha/classes.rb', line 20060

def license_code
  @license_code
end

#nameString

Name of the resource. The name must be 1-63 characters long and comply with RFC1035. Corresponds to the JSON property name

Returns:

  • (String)


20066
20067
20068
# File 'lib/google/apis/compute_alpha/classes.rb', line 20066

def name
  @name
end

#resource_requirementsGoogle::Apis::ComputeAlpha::LicenseResourceRequirements

Corresponds to the JSON property resourceRequirements



20071
20072
20073
# File 'lib/google/apis/compute_alpha/classes.rb', line 20071

def resource_requirements
  @resource_requirements
end

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

Returns:

  • (String)


20076
20077
20078
# File 'lib/google/apis/compute_alpha/classes.rb', line 20076

def self_link
  @self_link
end

[Output Only] Server-defined URL for this resource with the resource id. Corresponds to the JSON property selfLinkWithId

Returns:

  • (String)


20081
20082
20083
# File 'lib/google/apis/compute_alpha/classes.rb', line 20081

def self_link_with_id
  @self_link_with_id
end

#transferableBoolean Also known as: transferable?

If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk. Corresponds to the JSON property transferable

Returns:

  • (Boolean)


20087
20088
20089
# File 'lib/google/apis/compute_alpha/classes.rb', line 20087

def transferable
  @transferable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
# File 'lib/google/apis/compute_alpha/classes.rb', line 20095

def update!(**args)
  @charges_use_fee = args[:charges_use_fee] if args.key?(:charges_use_fee)
  @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_code = args[:license_code] if args.key?(:license_code)
  @name = args[:name] if args.key?(:name)
  @resource_requirements = args[:resource_requirements] if args.key?(:resource_requirements)
  @self_link = args[:self_link] if args.key?(:self_link)
  @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
  @transferable = args[:transferable] if args.key?(:transferable)
end