Class: TencentCloud::Monitor::V20180724::BasicAuth

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180724/models.rb

Overview

url鉴权

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username = nil, password = nil) ⇒ BasicAuth

Returns a new instance of BasicAuth.



998
999
1000
1001
# File 'lib/v20180724/models.rb', line 998

def initialize(username=nil, password=nil)
  @UserName = username
  @Password = password
end

Instance Attribute Details

#PasswordObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • UserName:

    用户名

  • Password:

    密码



996
997
998
# File 'lib/v20180724/models.rb', line 996

def Password
  @Password
end

#UserNameObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • UserName:

    用户名

  • Password:

    密码



996
997
998
# File 'lib/v20180724/models.rb', line 996

def UserName
  @UserName
end

Instance Method Details

#deserialize(params) ⇒ Object



1003
1004
1005
1006
# File 'lib/v20180724/models.rb', line 1003

def deserialize(params)
  @UserName = params['UserName']
  @Password = params['Password']
end