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

target.apidocs.com.google.api.services.secretmanager.v1.SecretManager.Projects.Locations.Secrets.Versions.html Maven / Gradle / Ivy

The newest version!






SecretManager.Projects.Locations.Secrets.Versions (Secret Manager API v1-rev20240924-2.0.0)












com.google.api.services.secretmanager.v1

Class SecretManager.Projects.Locations.Secrets.Versions

  • java.lang.Object
    • com.google.api.services.secretmanager.v1.SecretManager.Projects.Locations.Secrets.Versions
    • Constructor Detail

      • Versions

        public Versions()
    • Method Detail

      • access

        public SecretManager.Projects.Locations.Secrets.Versions.Access access(String name)
                                                                        throws IOException
        Accesses a SecretVersion. This call returns the secret data. `projects/secrets/versions/latest` is an alias to the most recently created SecretVersion. Create a request for the method "versions.access". This request holds the parameters needed by the secretmanager server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - Required. The resource name of the SecretVersion in the format `projects/secrets/versions` or `projects/locations/secrets/versions`. `projects/secrets/versions/latest` or `projects/locations/secrets/versions/latest` is an alias to the most recently created SecretVersion.
        Returns:
        the request
        Throws:
        IOException
      • destroy

        public SecretManager.Projects.Locations.Secrets.Versions.Destroy destroy(String name,
                                                                                 DestroySecretVersionRequest content)
                                                                          throws IOException
        Destroys a SecretVersion. Sets the state of the SecretVersion to DESTROYED and irrevocably destroys the secret data. Create a request for the method "versions.destroy". This request holds the parameters needed by the secretmanager server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - Required. The resource name of the SecretVersion to destroy in the format `projects/secrets/versions` or `projects/locations/secrets/versions`.
        content - the DestroySecretVersionRequest
        Returns:
        the request
        Throws:
        IOException
      • disable

        public SecretManager.Projects.Locations.Secrets.Versions.Disable disable(String name,
                                                                                 DisableSecretVersionRequest content)
                                                                          throws IOException
        Disables a SecretVersion. Sets the state of the SecretVersion to DISABLED. Create a request for the method "versions.disable". This request holds the parameters needed by the secretmanager server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - Required. The resource name of the SecretVersion to disable in the format `projects/secrets/versions` or `projects/locations/secrets/versions`.
        content - the DisableSecretVersionRequest
        Returns:
        the request
        Throws:
        IOException
      • enable

        public SecretManager.Projects.Locations.Secrets.Versions.Enable enable(String name,
                                                                               EnableSecretVersionRequest content)
                                                                        throws IOException
        Enables a SecretVersion. Sets the state of the SecretVersion to ENABLED. Create a request for the method "versions.enable". This request holds the parameters needed by the secretmanager server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - Required. The resource name of the SecretVersion to enable in the format `projects/secrets/versions` or `projects/locations/secrets/versions`.
        content - the EnableSecretVersionRequest
        Returns:
        the request
        Throws:
        IOException
      • get

        public SecretManager.Projects.Locations.Secrets.Versions.Get get(String name)
                                                                  throws IOException
        Gets metadata for a SecretVersion. `projects/secrets/versions/latest` is an alias to the most recently created SecretVersion. Create a request for the method "versions.get". This request holds the parameters needed by the secretmanager server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - Required. The resource name of the SecretVersion in the format `projects/secrets/versions` or `projects/locations/secrets/versions`. `projects/secrets/versions/latest` or `projects/locations/secrets/versions/latest` is an alias to the most recently created SecretVersion.
        Returns:
        the request
        Throws:
        IOException
      • list

        public SecretManager.Projects.Locations.Secrets.Versions.List list(String parent)
                                                                    throws IOException
        Lists SecretVersions. This call does not return secret data. Create a request for the method "versions.list". This request holds the parameters needed by the secretmanager server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        parent - Required. The resource name of the Secret associated with the SecretVersions to list, in the format `projects/secrets` or `projects/locations/secrets`.
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy