View Source GoogleApi.IAMCredentials.V1.Api.Projects (google_api_iam_credentials v0.13.0)
API calls for all endpoints tagged Projects
.
Summary
Functions
Generates an OAuth 2.0 access token for a service account.
Generates an OpenID Connect ID token for a service account.
Signs a blob using a service account's system-managed private key.
Signs a JWT using a service account's system-managed private key.
Functions
Link to this function
iamcredentials_projects_service_accounts_generate_access_token(connection, name, optional_params \\ [], opts \\ [])
View Source@spec iamcredentials_projects_service_accounts_generate_access_token( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.IAMCredentials.V1.Model.GenerateAccessTokenResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Generates an OAuth 2.0 access token for a service account.
Parameters
-
connection
(type:GoogleApi.IAMCredentials.V1.Connection.t
) - Connection to server -
name
(type:String.t
) - 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. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:body
(type:GoogleApi.IAMCredentials.V1.Model.GenerateAccessTokenRequest.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.IAMCredentials.V1.Model.GenerateAccessTokenResponse{}}
on success -
{:error, info}
on failure
Link to this function
iamcredentials_projects_service_accounts_generate_id_token(connection, name, optional_params \\ [], opts \\ [])
View Source@spec iamcredentials_projects_service_accounts_generate_id_token( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.IAMCredentials.V1.Model.GenerateIdTokenResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Generates an OpenID Connect ID token for a service account.
Parameters
-
connection
(type:GoogleApi.IAMCredentials.V1.Connection.t
) - Connection to server -
name
(type:String.t
) - 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. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:body
(type:GoogleApi.IAMCredentials.V1.Model.GenerateIdTokenRequest.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.IAMCredentials.V1.Model.GenerateIdTokenResponse{}}
on success -
{:error, info}
on failure
Link to this function
iamcredentials_projects_service_accounts_sign_blob(connection, name, optional_params \\ [], opts \\ [])
View Source@spec iamcredentials_projects_service_accounts_sign_blob( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.IAMCredentials.V1.Model.SignBlobResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Signs a blob using a service account's system-managed private key.
Parameters
-
connection
(type:GoogleApi.IAMCredentials.V1.Connection.t
) - Connection to server -
name
(type:String.t
) - 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. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:body
(type:GoogleApi.IAMCredentials.V1.Model.SignBlobRequest.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.IAMCredentials.V1.Model.SignBlobResponse{}}
on success -
{:error, info}
on failure
Link to this function
iamcredentials_projects_service_accounts_sign_jwt(connection, name, optional_params \\ [], opts \\ [])
View Source@spec iamcredentials_projects_service_accounts_sign_jwt( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.IAMCredentials.V1.Model.SignJwtResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Signs a JWT using a service account's system-managed private key.
Parameters
-
connection
(type:GoogleApi.IAMCredentials.V1.Connection.t
) - Connection to server -
name
(type:String.t
) - 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. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:body
(type:GoogleApi.IAMCredentials.V1.Model.SignJwtRequest.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.IAMCredentials.V1.Model.SignJwtResponse{}}
on success -
{:error, info}
on failure