Class: TencentCloud::Cam::V20190116::UpdatePolicyRequest

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

Overview

UpdatePolicy请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policyid = nil, policyname = nil, description = nil, policydocument = nil, _alias = nil) ⇒ UpdatePolicyRequest

Returns a new instance of UpdatePolicyRequest.



5074
5075
5076
5077
5078
5079
5080
# File 'lib/v20190116/models.rb', line 5074

def initialize(policyid=nil, policyname=nil, description=nil, policydocument=nil, _alias=nil)
  @PolicyId = policyid
  @PolicyName = policyname
  @Description = description
  @PolicyDocument = policydocument
  @Alias = _alias
end

Instance Attribute Details

#AliasObject

Parameters:

  • PolicyId:

    策略ID,与PolicyName二选一必填

  • PolicyName:

    策略名,与PolicyId二选一必填

  • Description:

    策略描述

  • PolicyDocument:

    策略文档

  • Alias:

    预设策略备注



5072
5073
5074
# File 'lib/v20190116/models.rb', line 5072

def Alias
  @Alias
end

#DescriptionObject

Parameters:

  • PolicyId:

    策略ID,与PolicyName二选一必填

  • PolicyName:

    策略名,与PolicyId二选一必填

  • Description:

    策略描述

  • PolicyDocument:

    策略文档

  • Alias:

    预设策略备注



5072
5073
5074
# File 'lib/v20190116/models.rb', line 5072

def Description
  @Description
end

#PolicyDocumentObject

Parameters:

  • PolicyId:

    策略ID,与PolicyName二选一必填

  • PolicyName:

    策略名,与PolicyId二选一必填

  • Description:

    策略描述

  • PolicyDocument:

    策略文档

  • Alias:

    预设策略备注



5072
5073
5074
# File 'lib/v20190116/models.rb', line 5072

def PolicyDocument
  @PolicyDocument
end

#PolicyIdObject

Parameters:

  • PolicyId:

    策略ID,与PolicyName二选一必填

  • PolicyName:

    策略名,与PolicyId二选一必填

  • Description:

    策略描述

  • PolicyDocument:

    策略文档

  • Alias:

    预设策略备注



5072
5073
5074
# File 'lib/v20190116/models.rb', line 5072

def PolicyId
  @PolicyId
end

#PolicyNameObject

Parameters:

  • PolicyId:

    策略ID,与PolicyName二选一必填

  • PolicyName:

    策略名,与PolicyId二选一必填

  • Description:

    策略描述

  • PolicyDocument:

    策略文档

  • Alias:

    预设策略备注



5072
5073
5074
# File 'lib/v20190116/models.rb', line 5072

def PolicyName
  @PolicyName
end

Instance Method Details

#deserialize(params) ⇒ Object



5082
5083
5084
5085
5086
5087
5088
# File 'lib/v20190116/models.rb', line 5082

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