Class: Google::Apis::MonitoringV3::BasicAuthentication
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::BasicAuthentication
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/monitoring_v3/classes.rb,
generated/google/apis/monitoring_v3/representations.rb,
generated/google/apis/monitoring_v3/representations.rb
Overview
The authentication parameters to provide to the specified resource or URL that requires a username and password. Currently, only Basic HTTP authentication ( https://tools.ietf.org/html/rfc7617) is supported in Uptime checks.
Instance Attribute Summary collapse
-
#password ⇒ String
The password to use when authenticating with the HTTP server.
-
#username ⇒ String
The username to use when authenticating with the HTTP server.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BasicAuthentication
constructor
A new instance of BasicAuthentication.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BasicAuthentication
Returns a new instance of BasicAuthentication.
280 281 282 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 280 def initialize(**args) update!(**args) end |
Instance Attribute Details
#password ⇒ String
The password to use when authenticating with the HTTP server.
Corresponds to the JSON property password
273 274 275 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 273 def password @password end |
#username ⇒ String
The username to use when authenticating with the HTTP server.
Corresponds to the JSON property username
278 279 280 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 278 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
285 286 287 288 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 285 def update!(**args) @password = args[:password] if args.key?(:password) @username = args[:username] if args.key?(:username) end |