Class: Google::Apis::CesV1::OAuthConfig
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::OAuthConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ces_v1/classes.rb,
lib/google/apis/ces_v1/representations.rb,
lib/google/apis/ces_v1/representations.rb
Overview
Configurations for authentication with OAuth.
Instance Attribute Summary collapse
-
#client_id ⇒ String
Required.
-
#client_secret_version ⇒ String
Required.
-
#oauth_grant_type ⇒ String
Required.
-
#scopes ⇒ Array<String>
Optional.
-
#token_endpoint ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OAuthConfig
constructor
A new instance of OAuthConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OAuthConfig
Returns a new instance of OAuthConfig.
5510 5511 5512 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5510 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_id ⇒ String
Required. The client ID from the OAuth provider.
Corresponds to the JSON property clientId
5484 5485 5486 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5484 def client_id @client_id end |
#client_secret_version ⇒ String
Required. The name of the SecretManager secret version resource storing the
client secret. Format: projects/project/secrets/secret/versions/version`
Note: You should grantroles/secretmanager.secretAccessorrole to the CES
service agentservice-@gcp-sa-ces.iam.gserviceaccount.com.
Corresponds to the JSON propertyclientSecretVersion`
5492 5493 5494 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5492 def client_secret_version @client_secret_version end |
#oauth_grant_type ⇒ String
Required. OAuth grant types.
Corresponds to the JSON property oauthGrantType
5497 5498 5499 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5497 def oauth_grant_type @oauth_grant_type end |
#scopes ⇒ Array<String>
Optional. The OAuth scopes to grant.
Corresponds to the JSON property scopes
5502 5503 5504 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5502 def scopes @scopes end |
#token_endpoint ⇒ String
Required. The token endpoint in the OAuth provider to exchange for an access
token.
Corresponds to the JSON property tokenEndpoint
5508 5509 5510 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5508 def token_endpoint @token_endpoint end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5515 5516 5517 5518 5519 5520 5521 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5515 def update!(**args) @client_id = args[:client_id] if args.key?(:client_id) @client_secret_version = args[:client_secret_version] if args.key?(:client_secret_version) @oauth_grant_type = args[:oauth_grant_type] if args.key?(:oauth_grant_type) @scopes = args[:scopes] if args.key?(:scopes) @token_endpoint = args[:token_endpoint] if args.key?(:token_endpoint) end |