Class ProjectsResource.InstancesResource.DatabasesResource.DatabaseRolesResource
The "databaseRoles" collection of methods.
Inherited Members
Namespace: Google.Apis.Spanner.v1
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class ProjectsResource.InstancesResource.DatabasesResource.DatabaseRolesResource
Constructors
DatabaseRolesResource(IClientService)
Constructs a new resource.
Declaration
public DatabaseRolesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
List(string)
Lists Cloud Spanner database roles.
Declaration
public virtual ProjectsResource.InstancesResource.DatabasesResource.DatabaseRolesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The database whose roles should be listed. Values are of the form
|
Returns
Type | Description |
---|---|
ProjectsResource.InstancesResource.DatabasesResource.DatabaseRolesResource.ListRequest |
TestIamPermissions(TestIamPermissionsRequest, string)
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. Calling this method on a backup schedule that does not exist will result in a
NOT_FOUND error if the user has spanner.backupSchedules.list
permission on the containing
database.
Declaration
public virtual ProjectsResource.InstancesResource.DatabasesResource.DatabaseRolesResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
TestIamPermissionsRequest | body | The body of the request. |
string | resource | REQUIRED: The Cloud Spanner resource for which permissions are being tested. The format is
|
Returns
Type | Description |
---|---|
ProjectsResource.InstancesResource.DatabasesResource.DatabaseRolesResource.TestIamPermissionsRequest |