tencentcloud-sdk-cdz 3.0.865
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-cdz.rb +11 -0
- data/lib/v20221123/client.rb +84 -0
- data/lib/v20221123/models.rb +231 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: afd41d9ab50723dbd24c24a7adecbcded442046c
|
4
|
+
data.tar.gz: be683c74cb9d1fc866ad37a82aee6e28545541d9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6a9b29f7bb96df4aa0cf26b9f6c12662365c69ecbe073cd833cb8b9ea53f5634389c972b4bac34ade24c775e4857c21b9969d9431e5f99a32e3f44a2cca8ea15
|
7
|
+
data.tar.gz: ecfd7ce149574e270ef823531a6b3a04ad4cfb99501500c212e78cd012c66932fd42cfd5cefddd6b3e15e5f975591eb3fa8ae1dff5dbaa6f8683c0fac1e59319
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.0.865
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
require 'json'
|
18
|
+
|
19
|
+
module TencentCloud
|
20
|
+
module Cdz
|
21
|
+
module V20221123
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2022-11-23'
|
26
|
+
api_endpoint = 'cdz.tencentcloudapi.com'
|
27
|
+
sdk_version = 'CDZ_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# 查询可用区的Host和Host上部署的实例
|
33
|
+
|
34
|
+
# @param request: Request instance for DescribeCloudDedicatedZoneHosts.
|
35
|
+
# @type request: :class:`Tencentcloud::cdz::V20221123::DescribeCloudDedicatedZoneHostsRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::cdz::V20221123::DescribeCloudDedicatedZoneHostsResponse`
|
37
|
+
def DescribeCloudDedicatedZoneHosts(request)
|
38
|
+
body = send_request('DescribeCloudDedicatedZoneHosts', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = DescribeCloudDedicatedZoneHostsResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
56
|
+
# 查询专属可用区各个垂直产品的资源使用情况
|
57
|
+
|
58
|
+
# @param request: Request instance for DescribeCloudDedicatedZoneResourceSummary.
|
59
|
+
# @type request: :class:`Tencentcloud::cdz::V20221123::DescribeCloudDedicatedZoneResourceSummaryRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::cdz::V20221123::DescribeCloudDedicatedZoneResourceSummaryResponse`
|
61
|
+
def DescribeCloudDedicatedZoneResourceSummary(request)
|
62
|
+
body = send_request('DescribeCloudDedicatedZoneResourceSummary', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = DescribeCloudDedicatedZoneResourceSummaryResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
80
|
+
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,231 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
module TencentCloud
|
18
|
+
module Cdz
|
19
|
+
module V20221123
|
20
|
+
# CDZ的母机和子机的对应关系
|
21
|
+
class CloudDedicatedZoneHostsInfo < TencentCloud::Common::AbstractModel
|
22
|
+
# @param HostUuid: Host的唯一标识uuid
|
23
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
24
|
+
# @type HostUuid: String
|
25
|
+
# @param InstancesInfo: 实例名称数组
|
26
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
27
|
+
# @type InstancesInfo: Array
|
28
|
+
|
29
|
+
attr_accessor :HostUuid, :InstancesInfo
|
30
|
+
|
31
|
+
def initialize(hostuuid=nil, instancesinfo=nil)
|
32
|
+
@HostUuid = hostuuid
|
33
|
+
@InstancesInfo = instancesinfo
|
34
|
+
end
|
35
|
+
|
36
|
+
def deserialize(params)
|
37
|
+
@HostUuid = params['HostUuid']
|
38
|
+
@InstancesInfo = params['InstancesInfo']
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
# 专属可用区资源统计项数据详情,对应一个具体的垂直产品的资源统计项。
|
43
|
+
class CloudDedicatedZoneResourceStatisticsInfo < TencentCloud::Common::AbstractModel
|
44
|
+
# @param Item: 资源统计项名称
|
45
|
+
# @type Item: String
|
46
|
+
# @param Unit: 资源统计项单位
|
47
|
+
# @type Unit: String
|
48
|
+
# @param Total: 资源总量
|
49
|
+
# @type Total: String
|
50
|
+
# @param Usage: 已用资源
|
51
|
+
# @type Usage: String
|
52
|
+
# @param UsageRate: 已用资源占比
|
53
|
+
# @type UsageRate: String
|
54
|
+
# @param Remain: 剩余资源
|
55
|
+
# @type Remain: String
|
56
|
+
# @param RemainRate: 剩余资源占比
|
57
|
+
# @type RemainRate: String
|
58
|
+
# @param ThisMondayUsageRate: 本周一零点资源使用率
|
59
|
+
# @type ThisMondayUsageRate: String
|
60
|
+
# @param ThisMondayUsageGrowthRate: 本周资源增长比例
|
61
|
+
# @type ThisMondayUsageGrowthRate: String
|
62
|
+
# @param LastMondayUsageGrowthRate: 上周资源增长比例
|
63
|
+
# @type LastMondayUsageGrowthRate: String
|
64
|
+
|
65
|
+
attr_accessor :Item, :Unit, :Total, :Usage, :UsageRate, :Remain, :RemainRate, :ThisMondayUsageRate, :ThisMondayUsageGrowthRate, :LastMondayUsageGrowthRate
|
66
|
+
|
67
|
+
def initialize(item=nil, unit=nil, total=nil, usage=nil, usagerate=nil, remain=nil, remainrate=nil, thismondayusagerate=nil, thismondayusagegrowthrate=nil, lastmondayusagegrowthrate=nil)
|
68
|
+
@Item = item
|
69
|
+
@Unit = unit
|
70
|
+
@Total = total
|
71
|
+
@Usage = usage
|
72
|
+
@UsageRate = usagerate
|
73
|
+
@Remain = remain
|
74
|
+
@RemainRate = remainrate
|
75
|
+
@ThisMondayUsageRate = thismondayusagerate
|
76
|
+
@ThisMondayUsageGrowthRate = thismondayusagegrowthrate
|
77
|
+
@LastMondayUsageGrowthRate = lastmondayusagegrowthrate
|
78
|
+
end
|
79
|
+
|
80
|
+
def deserialize(params)
|
81
|
+
@Item = params['Item']
|
82
|
+
@Unit = params['Unit']
|
83
|
+
@Total = params['Total']
|
84
|
+
@Usage = params['Usage']
|
85
|
+
@UsageRate = params['UsageRate']
|
86
|
+
@Remain = params['Remain']
|
87
|
+
@RemainRate = params['RemainRate']
|
88
|
+
@ThisMondayUsageRate = params['ThisMondayUsageRate']
|
89
|
+
@ThisMondayUsageGrowthRate = params['ThisMondayUsageGrowthRate']
|
90
|
+
@LastMondayUsageGrowthRate = params['LastMondayUsageGrowthRate']
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
# 专属可用区资源水位数据详情,对应一个具体的垂直产品。
|
95
|
+
class CloudDedicatedZoneResourceSummaryInfo < TencentCloud::Common::AbstractModel
|
96
|
+
# @param ProductName: 产品名称
|
97
|
+
# @type ProductName: String
|
98
|
+
# @param SubProductName: 子产品名称
|
99
|
+
# @type SubProductName: String
|
100
|
+
# @param Statistics: 资源统计详情
|
101
|
+
# @type Statistics: Array
|
102
|
+
|
103
|
+
attr_accessor :ProductName, :SubProductName, :Statistics
|
104
|
+
|
105
|
+
def initialize(productname=nil, subproductname=nil, statistics=nil)
|
106
|
+
@ProductName = productname
|
107
|
+
@SubProductName = subproductname
|
108
|
+
@Statistics = statistics
|
109
|
+
end
|
110
|
+
|
111
|
+
def deserialize(params)
|
112
|
+
@ProductName = params['ProductName']
|
113
|
+
@SubProductName = params['SubProductName']
|
114
|
+
unless params['Statistics'].nil?
|
115
|
+
@Statistics = []
|
116
|
+
params['Statistics'].each do |i|
|
117
|
+
clouddedicatedzoneresourcestatisticsinfo_tmp = CloudDedicatedZoneResourceStatisticsInfo.new
|
118
|
+
clouddedicatedzoneresourcestatisticsinfo_tmp.deserialize(i)
|
119
|
+
@Statistics << clouddedicatedzoneresourcestatisticsinfo_tmp
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
# DescribeCloudDedicatedZoneHosts请求参数结构体
|
126
|
+
class DescribeCloudDedicatedZoneHostsRequest < TencentCloud::Common::AbstractModel
|
127
|
+
# @param CloudDedicatedZoneID: 专属可用区ID
|
128
|
+
# @type CloudDedicatedZoneID: String
|
129
|
+
# @param HostUuids: 一个或多个Host面的CVM实例信息。最大支持查询100台Host。
|
130
|
+
# @type HostUuids: Array
|
131
|
+
# @param InstanceIds: 查询一个实例或者多个实例所在的Host上面的CVM实例信息。最大支持查询100台实例。
|
132
|
+
# @type InstanceIds: Array
|
133
|
+
# @param Offset: 偏移量,默认为0。关于Offset的更进一步介绍请参考 API 简介中的相关小节。该参数仅与CloudDedicatedZoneID有关,传递了HostUuids和InstanceIds则会失效。
|
134
|
+
# @type Offset: Integer
|
135
|
+
# @param Limit: 返回数量,默认为20,最大值为100。关于Limit的更进一步介绍请参考 API 简介中的相关小节。该参数仅与CloudDedicatedZoneID有关,传递了HostUuids和InstanceIds则会失效。
|
136
|
+
# @type Limit: Integer
|
137
|
+
|
138
|
+
attr_accessor :CloudDedicatedZoneID, :HostUuids, :InstanceIds, :Offset, :Limit
|
139
|
+
|
140
|
+
def initialize(clouddedicatedzoneid=nil, hostuuids=nil, instanceids=nil, offset=nil, limit=nil)
|
141
|
+
@CloudDedicatedZoneID = clouddedicatedzoneid
|
142
|
+
@HostUuids = hostuuids
|
143
|
+
@InstanceIds = instanceids
|
144
|
+
@Offset = offset
|
145
|
+
@Limit = limit
|
146
|
+
end
|
147
|
+
|
148
|
+
def deserialize(params)
|
149
|
+
@CloudDedicatedZoneID = params['CloudDedicatedZoneID']
|
150
|
+
@HostUuids = params['HostUuids']
|
151
|
+
@InstanceIds = params['InstanceIds']
|
152
|
+
@Offset = params['Offset']
|
153
|
+
@Limit = params['Limit']
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
# DescribeCloudDedicatedZoneHosts返回参数结构体
|
158
|
+
class DescribeCloudDedicatedZoneHostsResponse < TencentCloud::Common::AbstractModel
|
159
|
+
# @param CloudDedicatedZoneHostsInfoSet: 返回Host和Host上部署的实例信息之间的关系
|
160
|
+
# @type CloudDedicatedZoneHostsInfoSet: Array
|
161
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
162
|
+
# @type RequestId: String
|
163
|
+
|
164
|
+
attr_accessor :CloudDedicatedZoneHostsInfoSet, :RequestId
|
165
|
+
|
166
|
+
def initialize(clouddedicatedzonehostsinfoset=nil, requestid=nil)
|
167
|
+
@CloudDedicatedZoneHostsInfoSet = clouddedicatedzonehostsinfoset
|
168
|
+
@RequestId = requestid
|
169
|
+
end
|
170
|
+
|
171
|
+
def deserialize(params)
|
172
|
+
unless params['CloudDedicatedZoneHostsInfoSet'].nil?
|
173
|
+
@CloudDedicatedZoneHostsInfoSet = []
|
174
|
+
params['CloudDedicatedZoneHostsInfoSet'].each do |i|
|
175
|
+
clouddedicatedzonehostsinfo_tmp = CloudDedicatedZoneHostsInfo.new
|
176
|
+
clouddedicatedzonehostsinfo_tmp.deserialize(i)
|
177
|
+
@CloudDedicatedZoneHostsInfoSet << clouddedicatedzonehostsinfo_tmp
|
178
|
+
end
|
179
|
+
end
|
180
|
+
@RequestId = params['RequestId']
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
# DescribeCloudDedicatedZoneResourceSummary请求参数结构体
|
185
|
+
class DescribeCloudDedicatedZoneResourceSummaryRequest < TencentCloud::Common::AbstractModel
|
186
|
+
# @param CdzId: 专属可用区唯一标识
|
187
|
+
# @type CdzId: String
|
188
|
+
|
189
|
+
attr_accessor :CdzId
|
190
|
+
|
191
|
+
def initialize(cdzid=nil)
|
192
|
+
@CdzId = cdzid
|
193
|
+
end
|
194
|
+
|
195
|
+
def deserialize(params)
|
196
|
+
@CdzId = params['CdzId']
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
# DescribeCloudDedicatedZoneResourceSummary返回参数结构体
|
201
|
+
class DescribeCloudDedicatedZoneResourceSummaryResponse < TencentCloud::Common::AbstractModel
|
202
|
+
# @param ResourceSummarySet: 资源水位详情
|
203
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
204
|
+
# @type ResourceSummarySet: Array
|
205
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
206
|
+
# @type RequestId: String
|
207
|
+
|
208
|
+
attr_accessor :ResourceSummarySet, :RequestId
|
209
|
+
|
210
|
+
def initialize(resourcesummaryset=nil, requestid=nil)
|
211
|
+
@ResourceSummarySet = resourcesummaryset
|
212
|
+
@RequestId = requestid
|
213
|
+
end
|
214
|
+
|
215
|
+
def deserialize(params)
|
216
|
+
unless params['ResourceSummarySet'].nil?
|
217
|
+
@ResourceSummarySet = []
|
218
|
+
params['ResourceSummarySet'].each do |i|
|
219
|
+
clouddedicatedzoneresourcesummaryinfo_tmp = CloudDedicatedZoneResourceSummaryInfo.new
|
220
|
+
clouddedicatedzoneresourcesummaryinfo_tmp.deserialize(i)
|
221
|
+
@ResourceSummarySet << clouddedicatedzoneresourcesummaryinfo_tmp
|
222
|
+
end
|
223
|
+
end
|
224
|
+
@RequestId = params['RequestId']
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
end
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-cdz
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.0.865
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tencent Cloud
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-07-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: tencentcloud-sdk-common
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.0'
|
27
|
+
description: Tencent Cloud Ruby SDK is the official software development kit, which
|
28
|
+
allows Ruby developers to write software that makes use of Tencent Cloud service
|
29
|
+
CDZ.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/tencentcloud-sdk-cdz.rb
|
37
|
+
- lib/v20221123/models.rb
|
38
|
+
- lib/v20221123/client.rb
|
39
|
+
- lib/VERSION
|
40
|
+
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
|
+
licenses:
|
42
|
+
- Apache-2.0
|
43
|
+
metadata:
|
44
|
+
source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-cdz
|
45
|
+
changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
|
46
|
+
post_install_message:
|
47
|
+
rdoc_options: []
|
48
|
+
require_paths:
|
49
|
+
- lib
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - '>='
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
requirements: []
|
61
|
+
rubyforge_project:
|
62
|
+
rubygems_version: 2.0.14
|
63
|
+
signing_key:
|
64
|
+
specification_version: 4
|
65
|
+
summary: Tencent Cloud SDK for Ruby - CDZ
|
66
|
+
test_files: []
|