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

target.apidocs.com.google.api.services.spanner.v1.Spanner.Projects.Instances.Databases.BackupSchedules.html Maven / Gradle / Ivy

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






Spanner.Projects.Instances.Databases.BackupSchedules (Cloud Spanner API v1-rev20240711-2.0.0)












com.google.api.services.spanner.v1

Class Spanner.Projects.Instances.Databases.BackupSchedules

  • java.lang.Object
    • com.google.api.services.spanner.v1.Spanner.Projects.Instances.Databases.BackupSchedules
    • Constructor Detail

      • BackupSchedules

        public BackupSchedules()
    • Method Detail

      • getIamPolicy

        public Spanner.Projects.Instances.Databases.BackupSchedules.GetIamPolicy getIamPolicy(String resource,
                                                                                              GetIamPolicyRequest content)
                                                                                       throws IOException
        Gets the access control policy for a database or backup resource. Returns an empty policy if a database or backup exists but does not have a policy set. Authorization requires `spanner.databases.getIamPolicy` permission on resource. For backups, authorization requires `spanner.backups.getIamPolicy` permission on resource. Create a request for the method "backupSchedules.getIamPolicy". This request holds the parameters needed by the spanner server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        resource - REQUIRED: The Cloud Spanner resource for which the policy is being retrieved. The format is `projects//instances/` for instance resources and `projects//instances//databases/` for database resources.
        content - the GetIamPolicyRequest
        Returns:
        the request
        Throws:
        IOException
      • setIamPolicy

        public Spanner.Projects.Instances.Databases.BackupSchedules.SetIamPolicy setIamPolicy(String resource,
                                                                                              SetIamPolicyRequest content)
                                                                                       throws IOException
        Sets the access control policy on a database or backup resource. Replaces any existing policy. Authorization requires `spanner.databases.setIamPolicy` permission on resource. For backups, authorization requires `spanner.backups.setIamPolicy` permission on resource. Create a request for the method "backupSchedules.setIamPolicy". This request holds the parameters needed by the spanner server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        resource - REQUIRED: The Cloud Spanner resource for which the policy is being set. The format is `projects//instances/` for instance resources and `projects//instances//databases/` for databases resources.
        content - the SetIamPolicyRequest
        Returns:
        the request
        Throws:
        IOException
      • testIamPermissions

        public Spanner.Projects.Instances.Databases.BackupSchedules.TestIamPermissions testIamPermissions(String resource,
                                                                                                          TestIamPermissionsRequest content)
                                                                                                   throws IOException
        Returns permissions that the caller has on the specified database or backup resource. Attempting this RPC on a non-existent Cloud Spanner database will result in a NOT_FOUND error if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise returns an empty set of permissions. Calling this method on a backup that does not exist will result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the containing instance. Create a request for the method "backupSchedules.testIamPermissions". This request holds the parameters needed by the spanner server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        resource - REQUIRED: The Cloud Spanner resource for which permissions are being tested. The format is `projects//instances/` for instance resources and `projects//instances//databases/` for database resources.
        content - the TestIamPermissionsRequest
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy