All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.compute.model.Metadata.html Maven / Gradle / Ivy

There is a newer version: v1-rev20240903-2.0.0
Show newest version






Metadata (Compute Engine API v1-rev20240919-2.0.0)












com.google.api.services.compute.model

Class Metadata

    • Constructor Detail

      • Metadata

        public Metadata()
    • Method Detail

      • getFingerprint

        public String getFingerprint()
        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:
        value or null for none
        See Also:
        decodeFingerprint()
      • decodeFingerprint

        public byte[] decodeFingerprint()
        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:
        Base64 decoded value or null for none
        Since:
        1.14
        See Also:
        getFingerprint()
      • setFingerprint

        public Metadata setFingerprint(String fingerprint)
        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.
        Parameters:
        fingerprint - fingerprint or null for none
        See Also:
        #encodeFingerprint()
      • encodeFingerprint

        public Metadata encodeFingerprint(byte[] fingerprint)
        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.
        Since:
        1.14
        See Also:

        The value is encoded Base64 or {@code null} for none.

      • getItems

        public List<Metadata.Items> getItems()
        Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
        Returns:
        value or null for none
      • setItems

        public Metadata setItems(List<Metadata.Items> items)
        Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
        Parameters:
        items - items or null for none
      • getKind

        public String getKind()
        [Output Only] Type of the resource. Always compute#metadata for metadata.
        Returns:
        value or null for none
      • setKind

        public Metadata setKind(String kind)
        [Output Only] Type of the resource. Always compute#metadata for metadata.
        Parameters:
        kind - kind or null for none
      • set

        public Metadata set(String fieldName,
                            Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public Metadata clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy