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
A type of authentication to perform against the specified resource or URL that uses username and password. Currently, only Basic authentication is supported in Uptime Monitoring.
Instance Attribute Summary collapse
- 
  
    
      #password  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The password to authenticate. 
- 
  
    
      #username  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The username to authenticate. 
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
| 209 210 211 | # File 'generated/google/apis/monitoring_v3/classes.rb', line 209 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#password ⇒ String
The password to authenticate.
Corresponds to the JSON property password
| 202 203 204 | # File 'generated/google/apis/monitoring_v3/classes.rb', line 202 def password @password end | 
#username ⇒ String
The username to authenticate.
Corresponds to the JSON property username
| 207 208 209 | # File 'generated/google/apis/monitoring_v3/classes.rb', line 207 def username @username end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 214 215 216 217 | # File 'generated/google/apis/monitoring_v3/classes.rb', line 214 def update!(**args) @password = args[:password] if args.key?(:password) @username = args[:username] if args.key?(:username) end |