Class PartnersResource.UserSessionsResource.GenerateRequest
This API replaces user authorized OAuth consent based APIs (Create, Entitle). Issues a timed session token for the given 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. By default, the session token is valid for 1 hour.
Inheritance
PartnersResource.UserSessionsResource.GenerateRequest
Inherited Members
Namespace: Google.Apis.PaymentsResellerSubscription.v1
Assembly: Google.Apis.PaymentsResellerSubscription.v1.dll
Syntax
public class PartnersResource.UserSessionsResource.GenerateRequest : PaymentsResellerSubscriptionBaseServiceRequest<GenerateUserSessionResponse>, IClientServiceRequest<GenerateUserSessionResponse>, IClientServiceRequest
Constructors
GenerateRequest(IClientService, GenerateUserSessionRequest, string)
Constructs a new Generate request.
Declaration
public GenerateRequest(IClientService service, GenerateUserSessionRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| GenerateUserSessionRequest | 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
InitParameters()
Initializes Generate parameter list.
Declaration
protected override void InitParameters()