Class: TencentCloud::Cam::V20190116::TagRoleRequest

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

Overview

TagRole请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tags = nil, rolename = nil, roleid = nil) ⇒ TagRoleRequest

Returns a new instance of TagRoleRequest.



4815
4816
4817
4818
4819
# File 'lib/v20190116/models.rb', line 4815

def initialize(tags=nil, rolename=nil, roleid=nil)
  @Tags = tags
  @RoleName = rolename
  @RoleId = roleid
end

Instance Attribute Details

#RoleIdObject

Parameters:

  • Tags:

    标签

  • RoleName:

    角色名,与角色ID至少输入一个

  • RoleId:

    角色ID,与角色名至少输入一个



4813
4814
4815
# File 'lib/v20190116/models.rb', line 4813

def RoleId
  @RoleId
end

#RoleNameObject

Parameters:

  • Tags:

    标签

  • RoleName:

    角色名,与角色ID至少输入一个

  • RoleId:

    角色ID,与角色名至少输入一个



4813
4814
4815
# File 'lib/v20190116/models.rb', line 4813

def RoleName
  @RoleName
end

#TagsObject

Parameters:

  • Tags:

    标签

  • RoleName:

    角色名,与角色ID至少输入一个

  • RoleId:

    角色ID,与角色名至少输入一个



4813
4814
4815
# File 'lib/v20190116/models.rb', line 4813

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
# File 'lib/v20190116/models.rb', line 4821

def deserialize(params)
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      roletags_tmp = RoleTags.new
      roletags_tmp.deserialize(i)
      @Tags << roletags_tmp
    end
  end
  @RoleName = params['RoleName']
  @RoleId = params['RoleId']
end