Class: TencentCloud::Organization::V20210331::DeletePolicyRequest

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

Overview

DeletePolicy请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policyid = nil, type = nil) ⇒ DeletePolicyRequest

Returns a new instance of DeletePolicyRequest.



1825
1826
1827
1828
# File 'lib/v20210331/models.rb', line 1825

def initialize(policyid=nil, type=nil)
  @PolicyId = policyid
  @Type = type
end

Instance Attribute Details

#PolicyIdObject

Parameters:

  • 需要删除的策略ID。可以调用ListPolicies获取

  • 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略



1823
1824
1825
# File 'lib/v20210331/models.rb', line 1823

def PolicyId
  @PolicyId
end

#TypeObject

Parameters:

  • 需要删除的策略ID。可以调用ListPolicies获取

  • 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略



1823
1824
1825
# File 'lib/v20210331/models.rb', line 1823

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



1830
1831
1832
1833
# File 'lib/v20210331/models.rb', line 1830

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