Class ProjectsResource.LocationsResource.CollectionsResource.DataConnectorResource.AcquireAccessTokenRequest
Uses the per-user refresh token minted with AcquireAndStoreRefreshToken to generate and return a new access token and its details. Takes the access token from cache if available. Rotates the stored refresh token if needed. Uses the end user identity to return the user specific access token. Does not return the credentials configured by the administrator. Used by action execution and UI.
Inheritance
ProjectsResource.LocationsResource.CollectionsResource.DataConnectorResource.AcquireAccessTokenRequest
Implements
Inherited Members
DiscoveryEngineBaseServiceRequest<GoogleCloudDiscoveryengineV1alphaAcquireAccessTokenResponse>.Xgafv
Namespace: Google.Apis.DiscoveryEngine.v1alpha
Assembly: Google.Apis.DiscoveryEngine.v1alpha.dll
Syntax
public class ProjectsResource.LocationsResource.CollectionsResource.DataConnectorResource.AcquireAccessTokenRequest : DiscoveryEngineBaseServiceRequest<GoogleCloudDiscoveryengineV1alphaAcquireAccessTokenResponse>, IClientServiceRequest<GoogleCloudDiscoveryengineV1alphaAcquireAccessTokenResponse>, IClientServiceRequest
Constructors
AcquireAccessTokenRequest(IClientService, GoogleCloudDiscoveryengineV1alphaAcquireAccessTokenRequest, string)
Constructs a new AcquireAccessToken request.
Declaration
public AcquireAccessTokenRequest(IClientService service, GoogleCloudDiscoveryengineV1alphaAcquireAccessTokenRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| GoogleCloudDiscoveryengineV1alphaAcquireAccessTokenRequest | body | |
| string | name |
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
Name
Required. The resource name of the connector for which a token is queried.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { 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 AcquireAccessToken parameter list.
Declaration
protected override void InitParameters()