Class: Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCredential
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCredential
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/integrations_v1alpha/classes.rb,
lib/google/apis/integrations_v1alpha/representations.rb,
lib/google/apis/integrations_v1alpha/representations.rb
Overview
Defines parameters for a single, canonical credential.
Instance Attribute Summary collapse
-
#auth_token ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthToken
The credentials to authenticate a user agent with a server that is put in HTTP Authorization request header.
-
#credential_type ⇒ String
Credential type associated with auth config.
-
#jwt ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaJwt
Represents JSON web token(JWT), which is a compact, URL-safe means of representing claims to be transferred between two parties, enabling the claims to be digitally signed or integrity protected.
-
#oauth2_authorization_code ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode
The OAuth Type where the client sends request with the client id and requested scopes to auth endpoint.
-
#oauth2_client_credentials ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials
For client credentials grant, the client sends a POST request with grant_type as 'client_credentials' to the authorization server.
-
#oauth2_resource_owner_credentials ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials
For resource owner credentials grant, the client will ask the user for their authorization credentials (ususally a username and password) and send a POST request to the authorization server.
-
#oidc_token ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaOidcToken
OIDC Token Corresponds to the JSON property
oidcToken. -
#service_account_credentials ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaServiceAccountCredentials
Represents the service account which can be used to generate access token for authenticating the service call.
-
#username_and_password ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaUsernameAndPassword
Username and password pair.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaCredential
constructor
A new instance of GoogleCloudIntegrationsV1alphaCredential.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaCredential
Returns a new instance of GoogleCloudIntegrationsV1alphaCredential.
5953 5954 5955 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5953 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auth_token ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthToken
The credentials to authenticate a user agent with a server that is put in HTTP
Authorization request header.
Corresponds to the JSON property authToken
5899 5900 5901 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5899 def auth_token @auth_token end |
#credential_type ⇒ String
Credential type associated with auth config.
Corresponds to the JSON property credentialType
5904 5905 5906 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5904 def credential_type @credential_type end |
#jwt ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaJwt
Represents JSON web token(JWT), which is a compact, URL-safe means of
representing claims to be transferred between two parties, enabling the claims
to be digitally signed or integrity protected.
Corresponds to the JSON property jwt
5911 5912 5913 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5911 def jwt @jwt end |
#oauth2_authorization_code ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode
The OAuth Type where the client sends request with the client id and requested
scopes to auth endpoint. User sees a consent screen and auth code is received
at specified redirect url afterwards. The auth code is then combined with the
client id and secret and sent to the token endpoint in exchange for the access
and refresh token. The refresh token can be used to fetch new access tokens.
Corresponds to the JSON property oauth2AuthorizationCode
5920 5921 5922 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5920 def @oauth2_authorization_code end |
#oauth2_client_credentials ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials
For client credentials grant, the client sends a POST request with grant_type
as 'client_credentials' to the authorization server. The authorization server
will respond with a JSON object containing the access token.
Corresponds to the JSON property oauth2ClientCredentials
5927 5928 5929 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5927 def oauth2_client_credentials @oauth2_client_credentials end |
#oauth2_resource_owner_credentials ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials
For resource owner credentials grant, the client will ask the user for their
authorization credentials (ususally a username and password) and send a POST
request to the authorization server. The authorization server will respond
with a JSON object containing the access token.
Corresponds to the JSON property oauth2ResourceOwnerCredentials
5935 5936 5937 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5935 def oauth2_resource_owner_credentials @oauth2_resource_owner_credentials end |
#oidc_token ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaOidcToken
OIDC Token
Corresponds to the JSON property oidcToken
5940 5941 5942 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5940 def oidc_token @oidc_token end |
#service_account_credentials ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaServiceAccountCredentials
Represents the service account which can be used to generate access token for
authenticating the service call.
Corresponds to the JSON property serviceAccountCredentials
5946 5947 5948 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5946 def service_account_credentials @service_account_credentials end |
#username_and_password ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaUsernameAndPassword
Username and password pair.
Corresponds to the JSON property usernameAndPassword
5951 5952 5953 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5951 def username_and_password @username_and_password end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5958 def update!(**args) @auth_token = args[:auth_token] if args.key?(:auth_token) @credential_type = args[:credential_type] if args.key?(:credential_type) @jwt = args[:jwt] if args.key?(:jwt) @oauth2_authorization_code = args[:oauth2_authorization_code] if args.key?(:oauth2_authorization_code) @oauth2_client_credentials = args[:oauth2_client_credentials] if args.key?(:oauth2_client_credentials) @oauth2_resource_owner_credentials = args[:oauth2_resource_owner_credentials] if args.key?(:oauth2_resource_owner_credentials) @oidc_token = args[:oidc_token] if args.key?(:oidc_token) @service_account_credentials = args[:service_account_credentials] if args.key?(:service_account_credentials) @username_and_password = args[:username_and_password] if args.key?(:username_and_password) end |