Class: TencentCloud::Cam::V20190116::CreatePolicyVersionRequest

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

Overview

CreatePolicyVersion请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policyid = nil, policydocument = nil, setasdefault = nil) ⇒ CreatePolicyVersionRequest

Returns a new instance of CreatePolicyVersionRequest.



910
911
912
913
914
# File 'lib/v20190116/models.rb', line 910

def initialize(policyid=nil, policydocument=nil, setasdefault=nil)
  @PolicyId = policyid
  @PolicyDocument = policydocument
  @SetAsDefault = setasdefault
end

Instance Attribute Details

#PolicyDocumentObject

Parameters:

  • PolicyId:

    策略ID

  • PolicyDocument:

    策略文本信息

  • SetAsDefault:

    是否设置为当前策略的版本



908
909
910
# File 'lib/v20190116/models.rb', line 908

def PolicyDocument
  @PolicyDocument
end

#PolicyIdObject

Parameters:

  • PolicyId:

    策略ID

  • PolicyDocument:

    策略文本信息

  • SetAsDefault:

    是否设置为当前策略的版本



908
909
910
# File 'lib/v20190116/models.rb', line 908

def PolicyId
  @PolicyId
end

#SetAsDefaultObject

Parameters:

  • PolicyId:

    策略ID

  • PolicyDocument:

    策略文本信息

  • SetAsDefault:

    是否设置为当前策略的版本



908
909
910
# File 'lib/v20190116/models.rb', line 908

def SetAsDefault
  @SetAsDefault
end

Instance Method Details

#deserialize(params) ⇒ Object



916
917
918
919
920
# File 'lib/v20190116/models.rb', line 916

def deserialize(params)
  @PolicyId = params['PolicyId']
  @PolicyDocument = params['PolicyDocument']
  @SetAsDefault = params['SetAsDefault']
end