Class: Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthToken

Inherits:
Object
  • Object
show all
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

The credentials to authenticate a user agent with a server that is put in HTTP Authorization request header.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaAuthToken

Returns a new instance of GoogleCloudIntegrationsV1alphaAuthToken.



5590
5591
5592
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5590

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

Instance Attribute Details

#tokenString

The token for the auth type. Corresponds to the JSON property token

Returns:

  • (String)


5583
5584
5585
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5583

def token
  @token
end

#typeString

Authentication type, e.g. "Basic", "Bearer", etc. Corresponds to the JSON property type

Returns:

  • (String)


5588
5589
5590
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5588

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5595
5596
5597
5598
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5595

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