Class PartnersResource.UserSessionsResource.GenerateRequest
This API replaces user authorized OAuth consent based APIs (Create, Entitle). Generates a short-lived token for a user session based on the user intent. You can use the session token to redirect the user to Google to finish the signup flow. You can re-generate new session token repeatedly for the same request if necessary, regardless of the previous tokens being expired or not.
Inheritance
PaymentsResellerSubscriptionBaseServiceRequest<GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse>
PartnersResource.UserSessionsResource.GenerateRequest
Implements
Inherited Members
Namespace: Google.Apis.PaymentsResellerSubscription.v1
Assembly: Google.Apis.PaymentsResellerSubscription.v1.dll
Syntax
public class PartnersResource.UserSessionsResource.GenerateRequest : PaymentsResellerSubscriptionBaseServiceRequest<GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse>, IClientServiceRequest<GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse>, IClientServiceRequest
Constructors
GenerateRequest(IClientService, GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest, string)
Constructs a new Generate request.
Declaration
public GenerateRequest(IClientService service, GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest | body | |
string | parent |
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
Parent
Required. The parent, the partner that can resell. Format: partners/{partner}
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { 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
ClientServiceRequest<GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse>.GetBody()
InitParameters()
Initializes Generate parameter list.
Declaration
protected override void InitParameters()