Class ProjectsResource.InstancesResource.DatabasesResource.TestIamPermissionsRequest
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.
Inheritance
Inherited Members
Namespace: Google.Apis.Spanner.v1
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class ProjectsResource.InstancesResource.DatabasesResource.TestIamPermissionsRequest : SpannerBaseServiceRequest<TestIamPermissionsResponse>, IClientServiceRequest<TestIamPermissionsResponse>, IClientServiceRequest
Constructors
TestIamPermissionsRequest(IClientService, TestIamPermissionsRequest, string)
Constructs a new TestIamPermissions request.
Declaration
public TestIamPermissionsRequest(IClientService service, TestIamPermissionsRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
TestIamPermissionsRequest | body | |
string | resource |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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.
Declaration
[RequestParameter("resource", RequestParameterType.Path)]
public virtual string Resource { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes TestIamPermissions parameter list.
Declaration
protected override void InitParameters()