/// <summary>Constructs a new GenerateAccessToken request.</summary> public GenerateAccessTokenRequest(Google.Apis.Services.IClientService service, Google.Apis.IAMCredentials.v1.Data.GenerateAccessTokenRequest body, string name) : base(service) { Name = name; Body = body; InitParameters(); }
/// <summary>Generates an OAuth 2.0 access token for a service account.</summary> /// <param name="body">The body of the request.</param> /// <param name="name">Required. The resource name of the service account for which the credentials are requested, in /// the following format: `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard character is /// required; replacing it with a project ID is invalid.</param> public virtual GenerateAccessTokenRequest GenerateAccessToken(Google.Apis.IAMCredentials.v1.Data.GenerateAccessTokenRequest body, string name) { return(new GenerateAccessTokenRequest(service, body, name)); }