Class: Google::Apis::CesV1::BearerTokenConfig

Inherits:
Object
  • Object
show all
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 a bearer token.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BearerTokenConfig

Returns a new instance of BearerTokenConfig.



1209
1210
1211
# File 'lib/google/apis/ces_v1/classes.rb', line 1209

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#tokenString

Required. The bearer token. Must be in the format $context.variables.. Corresponds to the JSON property token

Returns:

  • (String)


1207
1208
1209
# File 'lib/google/apis/ces_v1/classes.rb', line 1207

def token
  @token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1214
1215
1216
# File 'lib/google/apis/ces_v1/classes.rb', line 1214

def update!(**args)
  @token = args[:token] if args.key?(:token)
end