Class ProjectsResource.LocationsResource.ClustersResource.TokenAuthUsersResource.AddAuthTokenRequest
Adds a auth token for a user of a token based auth enabled cluster.
Inheritance
ProjectsResource.LocationsResource.ClustersResource.TokenAuthUsersResource.AddAuthTokenRequest
Inherited Members
Namespace: Google.Apis.CloudRedis.v1
Assembly: Google.Apis.CloudRedis.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ClustersResource.TokenAuthUsersResource.AddAuthTokenRequest : CloudRedisBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
AddAuthTokenRequest(IClientService, AddAuthTokenRequest, string)
Constructs a new AddAuthToken request.
Declaration
public AddAuthTokenRequest(IClientService service, AddAuthTokenRequest body, string tokenAuthUser)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| AddAuthTokenRequest | body | |
| string | tokenAuthUser |
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
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
TokenAuthUser
Required. The name of the token auth user resource that this auth token will be added for. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
Declaration
[RequestParameter("tokenAuthUser", RequestParameterType.Path)]
public virtual string TokenAuthUser { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes AddAuthToken parameter list.
Declaration
protected override void InitParameters()