Class: Google::Apis::ComputeBeta::License

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

Overview

A license resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ License

Returns a new instance of License



6816
6817
6818
# File 'generated/google/apis/compute_beta/classes.rb', line 6816

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

Instance Attribute Details

#charges_use_feeBoolean Also known as: charges_use_fee?

[Output Only] If true, the customer will be charged license fee for running software that contains this license on an instance. Corresponds to the JSON property chargesUseFee

Returns:

  • (Boolean)


6797
6798
6799
# File 'generated/google/apis/compute_beta/classes.rb', line 6797

def charges_use_fee
  @charges_use_fee
end

#kindString

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

Returns:

  • (String)


6803
6804
6805
# File 'generated/google/apis/compute_beta/classes.rb', line 6803

def kind
  @kind
end

#nameString

[Output Only] Name of the resource. The name is 1-63 characters long and complies with RFC1035. Corresponds to the JSON property name

Returns:

  • (String)


6809
6810
6811
# File 'generated/google/apis/compute_beta/classes.rb', line 6809

def name
  @name
end

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

Returns:

  • (String)


6814
6815
6816
# File 'generated/google/apis/compute_beta/classes.rb', line 6814

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6821
6822
6823
6824
6825
6826
# File 'generated/google/apis/compute_beta/classes.rb', line 6821

def update!(**args)
  @charges_use_fee = args[:charges_use_fee] if args.key?(:charges_use_fee)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @self_link = args[:self_link] if args.key?(:self_link)
end