target.apidocs.com.google.api.services.spanner.v1.Spanner.Projects.Instances.Databases.DatabaseRoles.html Maven / Gradle / Ivy
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
-
- Enclosing class:
- Spanner.Projects.Instances.Databases
public class Spanner.Projects.Instances.Databases.DatabaseRoles
extends Object
The "databaseRoles" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Spanner.Projects.Instances.Databases.DatabaseRoles.List
class
Spanner.Projects.Instances.Databases.DatabaseRoles.TestIamPermissions
-
Constructor Summary
Constructors
Constructor and Description
DatabaseRoles()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Spanner.Projects.Instances.Databases.DatabaseRoles.List
list(String parent)
Lists Cloud Spanner database roles.
Spanner.Projects.Instances.Databases.DatabaseRoles.TestIamPermissions
testIamPermissions(String resource,
TestIamPermissionsRequest content)
Returns permissions that the caller has on the specified database or backup resource.
-
-
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