Class: TencentCloud::Cam::V20190116::CreatePolicyRequest

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

Overview

CreatePolicy请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policyname = nil, policydocument = nil, description = nil) ⇒ CreatePolicyRequest

Returns a new instance of CreatePolicyRequest.



866
867
868
869
870
# File 'lib/v20190116/models.rb', line 866

def initialize(policyname=nil, policydocument=nil, description=nil)
  @PolicyName = policyname
  @PolicyDocument = policydocument
  @Description = description
end

Instance Attribute Details

#DescriptionObject

Parameters:

  • PolicyName:

    策略名称。长度为1~128个字符,可包含英文字母、数字和+=,.@-_。

  • PolicyDocument:

    策略文档

  • Description:

    策略描述



864
865
866
# File 'lib/v20190116/models.rb', line 864

def Description
  @Description
end

#PolicyDocumentObject

Parameters:

  • PolicyName:

    策略名称。长度为1~128个字符,可包含英文字母、数字和+=,.@-_。

  • PolicyDocument:

    策略文档

  • Description:

    策略描述



864
865
866
# File 'lib/v20190116/models.rb', line 864

def PolicyDocument
  @PolicyDocument
end

#PolicyNameObject

Parameters:

  • PolicyName:

    策略名称。长度为1~128个字符,可包含英文字母、数字和+=,.@-_。

  • PolicyDocument:

    策略文档

  • Description:

    策略描述



864
865
866
# File 'lib/v20190116/models.rb', line 864

def PolicyName
  @PolicyName
end

Instance Method Details

#deserialize(params) ⇒ Object



872
873
874
875
876
# File 'lib/v20190116/models.rb', line 872

def deserialize(params)
  @PolicyName = params['PolicyName']
  @PolicyDocument = params['PolicyDocument']
  @Description = params['Description']
end