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.



4257
4258
4259
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4257

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

Instance Attribute Details

#typeString

Type of authentication. Corresponds to the JSON property type

Returns:

  • (String)


4255
4256
4257
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4255

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4262
4263
4264
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4262

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