Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::Metadata (v1.7.1)

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

A metadata key/value entry.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#fingerprint

def fingerprint() -> ::String
Returns
  • (::String) — Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.

#fingerprint=

def fingerprint=(value) -> ::String
Parameter
  • value (::String) — Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
Returns
  • (::String) — Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.

#items

def items() -> ::Array<::Google::Cloud::Compute::V1::Items>
Returns

#items=

def items=(value) -> ::Array<::Google::Cloud::Compute::V1::Items>
Parameter
Returns

#kind

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

#kind=

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