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.DatabaseRoles.html Maven / Gradle / Ivy

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






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












com.google.api.services.spanner.v1

Class Spanner.Projects.Instances.Databases.DatabaseRoles

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

      • DatabaseRoles

        public DatabaseRoles()
    • Method Detail

      • list

        public Spanner.Projects.Instances.Databases.DatabaseRoles.List list(String parent)
                                                                     throws IOException
        Lists Cloud Spanner database roles. Create a request for the method "databaseRoles.list". 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:
        parent - Required. The database whose roles should be listed. Values are of the form `projects//instances//databases/`.
        Returns:
        the request
        Throws:
        IOException
      • testIamPermissions

        public Spanner.Projects.Instances.Databases.DatabaseRoles.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 "databaseRoles.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