class Google::Apis::MonitoringV3::BasicAuthentication

The authentication parameters to provide to the specified resource or URL that requires a username and password. Currently, only Basic HTTP authentication ( tools.ietf.org/html/rfc7617) is supported in Uptime checks.

Attributes

password[RW]

The password to use when authenticating with the HTTP server. Corresponds to the JSON property `password` @return [String]

username[RW]

The username to use when authenticating with the HTTP server. Corresponds to the JSON property `username` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/monitoring_v3/classes.rb, line 317
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/monitoring_v3/classes.rb, line 322
def update!(**args)
  @password = args[:password] if args.key?(:password)
  @username = args[:username] if args.key?(:username)
end