Class: Google::Apis::MonitoringV3::ServiceAgentAuthentication

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/google/apis/monitoring_v3/representations.rb

Overview

Contains information needed for generating either an OpenID Connect token ( https://developers.google.com/identity/protocols/OpenIDConnect) or OAuth token (https://developers.google.com/identity/protocols/oauth2). The token will be generated for the Monitoring service agent service account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServiceAgentAuthentication

Returns a new instance of ServiceAgentAuthentication.



4397
4398
4399
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4397

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

Instance Attribute Details

#typeString

Type of authentication. Corresponds to the JSON property type

Returns:

  • (String)


4395
4396
4397
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4395

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4402
4403
4404
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4402

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