google_api_iam_credentials v0.8.1 GoogleApi.IAMCredentials.V1.Api.Projects View Source
API calls for all endpoints tagged Projects
.
Link to this section 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.
Link to this section Functions
iamcredentials_projects_service_accounts_generate_access_token(connection, projects_id, service_accounts_id, optional_params \\ [], opts \\ [])
View Sourceiamcredentials_projects_service_accounts_generate_access_token( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.IAMCredentials.V1.Model.GenerateAccessTokenResponse.t()} | {:ok, Tesla.Env.t()} | {:error, Tesla.Env.t()}
Generates an OAuth 2.0 access token for a service account.
Parameters
connection
(type:GoogleApi.IAMCredentials.V1.Connection.t
) - Connection to serverprojects_id
(type:String.t
) - Part ofname
. 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.service_accounts_id
(type:String.t
) - Part ofname
. See documentation ofprojectsId
.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
iamcredentials_projects_service_accounts_generate_id_token(connection, projects_id, service_accounts_id, optional_params \\ [], opts \\ [])
View Sourceiamcredentials_projects_service_accounts_generate_id_token( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.IAMCredentials.V1.Model.GenerateIdTokenResponse.t()} | {:ok, Tesla.Env.t()} | {:error, Tesla.Env.t()}
Generates an OpenID Connect ID token for a service account.
Parameters
connection
(type:GoogleApi.IAMCredentials.V1.Connection.t
) - Connection to serverprojects_id
(type:String.t
) - Part ofname
. 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.service_accounts_id
(type:String.t
) - Part ofname
. See documentation ofprojectsId
.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
iamcredentials_projects_service_accounts_sign_blob(connection, projects_id, service_accounts_id, optional_params \\ [], opts \\ [])
View Sourceiamcredentials_projects_service_accounts_sign_blob( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.IAMCredentials.V1.Model.SignBlobResponse.t()} | {:ok, Tesla.Env.t()} | {:error, Tesla.Env.t()}
Signs a blob using a service account's system-managed private key.
Parameters
connection
(type:GoogleApi.IAMCredentials.V1.Connection.t
) - Connection to serverprojects_id
(type:String.t
) - Part ofname
. 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.service_accounts_id
(type:String.t
) - Part ofname
. See documentation ofprojectsId
.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
iamcredentials_projects_service_accounts_sign_jwt(connection, projects_id, service_accounts_id, optional_params \\ [], opts \\ [])
View Sourceiamcredentials_projects_service_accounts_sign_jwt( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.IAMCredentials.V1.Model.SignJwtResponse.t()} | {:ok, Tesla.Env.t()} | {:error, Tesla.Env.t()}
Signs a JWT using a service account's system-managed private key.
Parameters
connection
(type:GoogleApi.IAMCredentials.V1.Connection.t
) - Connection to serverprojects_id
(type:String.t
) - Part ofname
. 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.service_accounts_id
(type:String.t
) - Part ofname
. See documentation ofprojectsId
.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