Class: Google::Apis::CesV1::LfA2aV1AuthenticationInfo

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

Defines authentication details, used for push notifications.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LfA2aV1AuthenticationInfo

Returns a new instance of LfA2aV1AuthenticationInfo.



4266
4267
4268
# File 'lib/google/apis/ces_v1/classes.rb', line 4266

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

Instance Attribute Details

#credentialsString

Push Notification credentials. Format depends on the scheme (e.g., token for Bearer). Corresponds to the JSON property credentials

Returns:

  • (String)


4256
4257
4258
# File 'lib/google/apis/ces_v1/classes.rb', line 4256

def credentials
  @credentials
end

#schemeString

Required. HTTP Authentication Scheme from the IANA registry. Examples: Bearer, Basic, Digest. Scheme names are case-insensitive per RFC 9110 Section 11.1. Corresponds to the JSON property scheme

Returns:

  • (String)


4264
4265
4266
# File 'lib/google/apis/ces_v1/classes.rb', line 4264

def scheme
  @scheme
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4271
4272
4273
4274
# File 'lib/google/apis/ces_v1/classes.rb', line 4271

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