MetadataResponse

data class MetadataResponse(val fingerprint: String, val items: List<MetadataItemsItemResponse>, val kind: String)

A metadata key/value entry.

Constructors

Link copied to clipboard
fun MetadataResponse(fingerprint: String, items: List<MetadataItemsItemResponse>, kind: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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.

Link copied to clipboard

Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

Link copied to clipboard

Type of the resource. Always compute#metadata for metadata.