Class: Google::Apis::MonitoringV3::ServiceAgentAuthentication
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::ServiceAgentAuthentication
- 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
-
#type ⇒ String
Type of authentication.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceAgentAuthentication
constructor
A new instance of ServiceAgentAuthentication.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#type ⇒ String
Type of authentication.
Corresponds to the JSON property type
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 |