Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::License (v2.6.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::License.

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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#charges_use_fee

def charges_use_fee() -> ::Boolean
Returns
  • (::Boolean) — [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.

#charges_use_fee=

def charges_use_fee=(value) -> ::Boolean
Parameter
  • value (::Boolean) — [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.
Returns
  • (::Boolean) — [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.

#creation_timestamp

def creation_timestamp() -> ::String
Returns
  • (::String) — [Output Only] Creation timestamp in RFC3339 text format.

#creation_timestamp=

def creation_timestamp=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Creation timestamp in RFC3339 text format.
Returns
  • (::String) — [Output Only] Creation timestamp in RFC3339 text format.

#description

def description() -> ::String
Returns
  • (::String) — An optional textual description of the resource; provided by the client when the resource is created.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — An optional textual description of the resource; provided by the client when the resource is created.
Returns
  • (::String) — An optional textual description of the resource; provided by the client when the resource is created.

#id

def id() -> ::Integer
Returns
  • (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.

#id=

def id=(value) -> ::Integer
Parameter
  • value (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Returns
  • (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.

#kind

def kind() -> ::String
Returns
  • (::String) — [Output Only] Type of resource. Always compute#license for licenses.

#kind=

def kind=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Type of resource. Always compute#license for licenses.
Returns
  • (::String) — [Output Only] Type of resource. Always compute#license for licenses.

#license_code

def license_code() -> ::Integer
Returns
  • (::Integer) — [Output Only] The unique code used to attach this license to images, snapshots, and disks.

#license_code=

def license_code=(value) -> ::Integer
Parameter
  • value (::Integer) — [Output Only] The unique code used to attach this license to images, snapshots, and disks.
Returns
  • (::Integer) — [Output Only] The unique code used to attach this license to images, snapshots, and disks.

#name

def name() -> ::String
Returns
  • (::String) — Name of the resource. The name must be 1-63 characters long and comply with RFC1035.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
Returns
  • (::String) — Name of the resource. The name must be 1-63 characters long and comply with RFC1035.

#resource_requirements

def resource_requirements() -> ::Google::Cloud::Compute::V1::LicenseResourceRequirements

#resource_requirements=

def resource_requirements=(value) -> ::Google::Cloud::Compute::V1::LicenseResourceRequirements
def self_link() -> ::String
Returns
  • (::String) — [Output Only] Server-defined URL for the resource.
def self_link=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Server-defined URL for the resource.
Returns
  • (::String) — [Output Only] Server-defined URL for the resource.

#transferable

def transferable() -> ::Boolean
Returns
  • (::Boolean) — 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.

#transferable=

def transferable=(value) -> ::Boolean
Parameter
  • value (::Boolean) — 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.
Returns
  • (::Boolean) — 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.