Class: TencentCloud::Monitor::V20180724::GrafanaAccountInfo

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

Overview

Grafana可视化服务 授权账户信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(userid = nil, role = nil, notes = nil, createat = nil, instanceid = nil, uin = nil) ⇒ GrafanaAccountInfo

Returns a new instance of GrafanaAccountInfo.



10406
10407
10408
10409
10410
10411
10412
10413
# File 'lib/v20180724/models.rb', line 10406

def initialize(userid=nil, role=nil, notes=nil, createat=nil, instanceid=nil, uin=nil)
  @UserId = userid
  @Role = role
  @Notes = notes
  @CreateAt = createat
  @InstanceId = instanceid
  @Uin = uin
end

Instance Attribute Details

#CreateAtObject

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

Parameters:

  • 用户账号ID

  • 用户权限

  • 备注

  • 创建时间

  • 实例 ID

  • 用户主账号 UIN



10404
10405
10406
# File 'lib/v20180724/models.rb', line 10404

def CreateAt
  @CreateAt
end

#InstanceIdObject

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

Parameters:

  • 用户账号ID

  • 用户权限

  • 备注

  • 创建时间

  • 实例 ID

  • 用户主账号 UIN



10404
10405
10406
# File 'lib/v20180724/models.rb', line 10404

def InstanceId
  @InstanceId
end

#NotesObject

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

Parameters:

  • 用户账号ID

  • 用户权限

  • 备注

  • 创建时间

  • 实例 ID

  • 用户主账号 UIN



10404
10405
10406
# File 'lib/v20180724/models.rb', line 10404

def Notes
  @Notes
end

#RoleObject

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

Parameters:

  • 用户账号ID

  • 用户权限

  • 备注

  • 创建时间

  • 实例 ID

  • 用户主账号 UIN



10404
10405
10406
# File 'lib/v20180724/models.rb', line 10404

def Role
  @Role
end

#UinObject

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

Parameters:

  • 用户账号ID

  • 用户权限

  • 备注

  • 创建时间

  • 实例 ID

  • 用户主账号 UIN



10404
10405
10406
# File 'lib/v20180724/models.rb', line 10404

def Uin
  @Uin
end

#UserIdObject

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

Parameters:

  • 用户账号ID

  • 用户权限

  • 备注

  • 创建时间

  • 实例 ID

  • 用户主账号 UIN



10404
10405
10406
# File 'lib/v20180724/models.rb', line 10404

def UserId
  @UserId
end

Instance Method Details

#deserialize(params) ⇒ Object



10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
# File 'lib/v20180724/models.rb', line 10415

def deserialize(params)
  @UserId = params['UserId']
  unless params['Role'].nil?
    @Role = []
    params['Role'].each do |i|
      grafanaaccountrole_tmp = GrafanaAccountRole.new
      grafanaaccountrole_tmp.deserialize(i)
      @Role << grafanaaccountrole_tmp
    end
  end
  @Notes = params['Notes']
  @CreateAt = params['CreateAt']
  @InstanceId = params['InstanceId']
  @Uin = params['Uin']
end