Class: Google::Apis::ComputeAlpha::License
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::License
- 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.
Instance Attribute Summary collapse
-
#allowed_replacement_licenses ⇒ Array<String>
Specifies licenseCodes of licenses that can replace this license.
-
#appendable_to_disk ⇒ Boolean
(also: #appendable_to_disk?)
If true, this license can be appended to an existing disk's set of licenses.
-
#charges_use_fee ⇒ Boolean
(also: #charges_use_fee?)
[Output Only] Deprecated.
-
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
-
#description ⇒ String
An optional textual description of the resource; provided by the client when the resource is created.
-
#id ⇒ Fixnum
[Output Only] The unique identifier for the resource.
-
#incompatible_licenses ⇒ Array<String>
Specifies licenseCodes of licenses that are incompatible with this license.
-
#kind ⇒ String
[Output Only] Type of resource.
-
#license_code ⇒ Fixnum
[Output Only] The unique code used to attach this license to images, snapshots, and disks.
-
#minimum_retention ⇒ Google::Apis::ComputeAlpha::Duration
A Duration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution.
-
#multi_tenant_only ⇒ Boolean
(also: #multi_tenant_only?)
If true, this license can only be used on VMs on multi tenant nodes.
-
#name ⇒ String
Name of the resource.
-
#os_license ⇒ Boolean
(also: #os_license?)
If true, indicates this is an OS license.
-
#removable_from_disk ⇒ Boolean
(also: #removable_from_disk?)
If true, this license can be removed from a disk's set of licenses, with no replacement license needed.
-
#required_coattached_licenses ⇒ Array<String>
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license.
-
#resource_requirements ⇒ Google::Apis::ComputeAlpha::LicenseResourceRequirements
Corresponds to the JSON property
resourceRequirements. -
#self_link ⇒ String
[Output Only] Server-defined URL for the resource.
-
#self_link_with_id ⇒ String
[Output Only] Server-defined URL for this resource with the resource id.
-
#sole_tenant_only ⇒ Boolean
(also: #sole_tenant_only?)
If true, this license can only be used on VMs on sole tenant nodes.
-
#transferable ⇒ Boolean
(also: #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.
-
#update_timestamp ⇒ String
[Output Only] Last update timestamp in RFC3339 text format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ License
constructor
A new instance of License.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ License
Returns a new instance of License.
27378 27379 27380 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27378 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_replacement_licenses ⇒ Array<String>
Specifies licenseCodes of licenses that can replace this license. Note: such
replacements are allowed even if removable_from_disk is false.
Corresponds to the JSON property allowedReplacementLicenses
27254 27255 27256 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27254 def allowed_replacement_licenses @allowed_replacement_licenses end |
#appendable_to_disk ⇒ Boolean Also known as: appendable_to_disk?
If true, this license can be appended to an existing disk's set of licenses.
Corresponds to the JSON property appendableToDisk
27259 27260 27261 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27259 def appendable_to_disk @appendable_to_disk end |
#charges_use_fee ⇒ Boolean 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
27266 27267 27268 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27266 def charges_use_fee @charges_use_fee end |
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
Corresponds to the JSON property creationTimestamp
27272 27273 27274 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27272 def @creation_timestamp end |
#description ⇒ String
An optional textual description of the resource; provided by the client when
the resource is created.
Corresponds to the JSON property description
27278 27279 27280 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27278 def description @description end |
#id ⇒ Fixnum
[Output Only] The unique identifier for the resource. This identifier is
defined by the server.
Corresponds to the JSON property id
27284 27285 27286 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27284 def id @id end |
#incompatible_licenses ⇒ Array<String>
Specifies licenseCodes of licenses that are incompatible with this license. If
a license is incompatible with this license, it cannot be attached to the same
disk or image.
Corresponds to the JSON property incompatibleLicenses
27291 27292 27293 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27291 def incompatible_licenses @incompatible_licenses end |
#kind ⇒ String
[Output Only] Type of resource. Always compute#license for licenses.
Corresponds to the JSON property kind
27296 27297 27298 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27296 def kind @kind end |
#license_code ⇒ Fixnum
[Output Only] The unique code used to attach this license to images, snapshots,
and disks.
Corresponds to the JSON property licenseCode
27302 27303 27304 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27302 def license_code @license_code end |
#minimum_retention ⇒ Google::Apis::ComputeAlpha::Duration
A Duration represents a fixed-length span of time represented as a count of
seconds and fractions of seconds at nanosecond resolution. It is independent
of any calendar and concepts like "day" or "month". Range is approximately 10,
000 years.
Corresponds to the JSON property minimumRetention
27310 27311 27312 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27310 def minimum_retention @minimum_retention end |
#multi_tenant_only ⇒ Boolean Also known as: multi_tenant_only?
If true, this license can only be used on VMs on multi tenant nodes.
Corresponds to the JSON property multiTenantOnly
27315 27316 27317 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27315 def multi_tenant_only @multi_tenant_only end |
#name ⇒ String
Name of the resource. The name must be 1-63 characters long and comply with
RFC1035.
Corresponds to the JSON property name
27322 27323 27324 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27322 def name @name end |
#os_license ⇒ Boolean Also known as: os_license?
If true, indicates this is an OS license. Only one OS license can be attached
to a disk or image at a time.
Corresponds to the JSON property osLicense
27328 27329 27330 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27328 def os_license @os_license end |
#removable_from_disk ⇒ Boolean Also known as: removable_from_disk?
If true, this license can be removed from a disk's set of licenses, with no
replacement license needed.
Corresponds to the JSON property removableFromDisk
27335 27336 27337 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27335 def removable_from_disk @removable_from_disk end |
#required_coattached_licenses ⇒ Array<String>
Specifies the set of permissible coattached licenseCodes of licenses that
satisfy the coattachment requirement of this license. At least one license
from the set must be attached to the same disk or image as this license.
Corresponds to the JSON property requiredCoattachedLicenses
27343 27344 27345 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27343 def required_coattached_licenses @required_coattached_licenses end |
#resource_requirements ⇒ Google::Apis::ComputeAlpha::LicenseResourceRequirements
Corresponds to the JSON property resourceRequirements
27348 27349 27350 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27348 def resource_requirements @resource_requirements end |
#self_link ⇒ String
[Output Only] Server-defined URL for the resource.
Corresponds to the JSON property selfLink
27353 27354 27355 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27353 def self_link @self_link end |
#self_link_with_id ⇒ String
[Output Only] Server-defined URL for this resource with the resource id.
Corresponds to the JSON property selfLinkWithId
27358 27359 27360 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27358 def self_link_with_id @self_link_with_id end |
#sole_tenant_only ⇒ Boolean Also known as: sole_tenant_only?
If true, this license can only be used on VMs on sole tenant nodes.
Corresponds to the JSON property soleTenantOnly
27363 27364 27365 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27363 def sole_tenant_only @sole_tenant_only end |
#transferable ⇒ Boolean 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
27370 27371 27372 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27370 def transferable @transferable end |
#update_timestamp ⇒ String
[Output Only] Last update timestamp in RFC3339 text format.
Corresponds to the JSON property updateTimestamp
27376 27377 27378 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27376 def @update_timestamp end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
27383 27384 27385 27386 27387 27388 27389 27390 27391 27392 27393 27394 27395 27396 27397 27398 27399 27400 27401 27402 27403 27404 27405 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27383 def update!(**args) @allowed_replacement_licenses = args[:allowed_replacement_licenses] if args.key?(:allowed_replacement_licenses) @appendable_to_disk = args[:appendable_to_disk] if args.key?(:appendable_to_disk) @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) @incompatible_licenses = args[:incompatible_licenses] if args.key?(:incompatible_licenses) @kind = args[:kind] if args.key?(:kind) @license_code = args[:license_code] if args.key?(:license_code) @minimum_retention = args[:minimum_retention] if args.key?(:minimum_retention) @multi_tenant_only = args[:multi_tenant_only] if args.key?(:multi_tenant_only) @name = args[:name] if args.key?(:name) @os_license = args[:os_license] if args.key?(:os_license) @removable_from_disk = args[:removable_from_disk] if args.key?(:removable_from_disk) @required_coattached_licenses = args[:required_coattached_licenses] if args.key?(:required_coattached_licenses) @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) @sole_tenant_only = args[:sole_tenant_only] if args.key?(:sole_tenant_only) @transferable = args[:transferable] if args.key?(:transferable) @update_timestamp = args[:update_timestamp] if args.key?(:update_timestamp) end |