tencentcloud-sdk-memcached 1.0.200

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ebdd847121035611ef0f2249fe22b4c017b5d8f4
4
+ data.tar.gz: e017a4172090dce6756e40f825d58300042eee51
5
+ SHA512:
6
+ metadata.gz: 15fce6d9f92e2e8bac455b8182f559a3b2d773c1014e33d35fb868f0df012bec2588dca9eec697db51be6d23a2261a1a019bac67964e1acaa68a23188d221f7d
7
+ data.tar.gz: e874cfcadc02697cea10f6344520b3ec1c4d1f7660a8ca7bd49664839c474dbdb14e7b7163755b2bb7c1b42fc6e1826ea67f12b1ab73e86f00e89a46a89b151e
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.200
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20190318/client'
6
+ require_relative 'v20190318/models'
7
+
8
+ module TencentCloud
9
+ module Memcached
10
+ end
11
+ end
@@ -0,0 +1,60 @@
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 Memcached
21
+ module V20190318
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2019-03-18'
26
+ api_endpoint = 'memcached.tencentcloudapi.com'
27
+ sdk_version = 'MEMCACHED_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 获取Cmem实例列表
33
+
34
+ # @param request: Request instance for DescribeInstances.
35
+ # @type request: :class:`Tencentcloud::memcached::V20190318::DescribeInstancesRequest`
36
+ # @rtype: :class:`Tencentcloud::memcached::V20190318::DescribeInstancesResponse`
37
+ def DescribeInstances(request)
38
+ body = send_request('DescribeInstances', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeInstancesResponse.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
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,245 @@
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 Memcached
19
+ module V20190318
20
+ # DescribeInstances请求参数结构体
21
+ class DescribeInstancesRequest < TencentCloud::Common::AbstractModel
22
+ # @param InstanceIds: 实例ID组成的数组,数组下标从0开始
23
+ # @type InstanceIds: Array
24
+ # @param InstanceNames: 实例名称组成的数组,数组下标从0开始
25
+ # @type InstanceNames: Array
26
+ # @param Limit: 实例列表的大小,参数默认值100
27
+ # @type Limit: Integer
28
+ # @param Offset: 偏移量,取Limit整数倍
29
+ # @type Offset: Integer
30
+ # @param OrderBy: 枚举范围: AddTimeStamp, InstanceName, ProjectId
31
+ # @type OrderBy: String
32
+ # @param OrderType: 0倒序,1正序,默认倒序
33
+ # @type OrderType: Integer
34
+ # @param ProjectIds: 项目ID组成的数组,数组下标从0开始
35
+ # @type ProjectIds: Array
36
+ # @param SearchKeys: 搜索关键词:支持实例ID、实例名称、完整IP
37
+ # @type SearchKeys: Array
38
+ # @param UniqSubnetIds: 子网ID数组,数组下标从0开始,如:subnet-fdj24n34j2
39
+ # @type UniqSubnetIds: Array
40
+ # @param UniqVpcIds: 私有网络ID数组,数组下标从0开始,如果不传则默认选择基础网络,如:vpc-sad23jfdfk
41
+ # @type UniqVpcIds: Array
42
+ # @param Vips: 实例服务IP组成的数组,数组下标从0开始
43
+ # @type Vips: Array
44
+
45
+ attr_accessor :InstanceIds, :InstanceNames, :Limit, :Offset, :OrderBy, :OrderType, :ProjectIds, :SearchKeys, :UniqSubnetIds, :UniqVpcIds, :Vips
46
+
47
+ def initialize(instanceids=nil, instancenames=nil, limit=nil, offset=nil, orderby=nil, ordertype=nil, projectids=nil, searchkeys=nil, uniqsubnetids=nil, uniqvpcids=nil, vips=nil)
48
+ @InstanceIds = instanceids
49
+ @InstanceNames = instancenames
50
+ @Limit = limit
51
+ @Offset = offset
52
+ @OrderBy = orderby
53
+ @OrderType = ordertype
54
+ @ProjectIds = projectids
55
+ @SearchKeys = searchkeys
56
+ @UniqSubnetIds = uniqsubnetids
57
+ @UniqVpcIds = uniqvpcids
58
+ @Vips = vips
59
+ end
60
+
61
+ def deserialize(params)
62
+ @InstanceIds = params['InstanceIds']
63
+ @InstanceNames = params['InstanceNames']
64
+ @Limit = params['Limit']
65
+ @Offset = params['Offset']
66
+ @OrderBy = params['OrderBy']
67
+ @OrderType = params['OrderType']
68
+ @ProjectIds = params['ProjectIds']
69
+ @SearchKeys = params['SearchKeys']
70
+ @UniqSubnetIds = params['UniqSubnetIds']
71
+ @UniqVpcIds = params['UniqVpcIds']
72
+ @Vips = params['Vips']
73
+ end
74
+ end
75
+
76
+ # DescribeInstances返回参数结构体
77
+ class DescribeInstancesResponse < TencentCloud::Common::AbstractModel
78
+ # @param InstanceList: 实例详细信息列表
79
+ # @type InstanceList: Array
80
+ # @param TotalNum: 实例数量
81
+ # @type TotalNum: Integer
82
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
83
+ # @type RequestId: String
84
+
85
+ attr_accessor :InstanceList, :TotalNum, :RequestId
86
+
87
+ def initialize(instancelist=nil, totalnum=nil, requestid=nil)
88
+ @InstanceList = instancelist
89
+ @TotalNum = totalnum
90
+ @RequestId = requestid
91
+ end
92
+
93
+ def deserialize(params)
94
+ unless params['InstanceList'].nil?
95
+ @InstanceList = []
96
+ params['InstanceList'].each do |i|
97
+ instancelistinfo_tmp = InstanceListInfo.new
98
+ instancelistinfo_tmp.deserialize(i)
99
+ @InstanceList << instancelistinfo_tmp
100
+ end
101
+ end
102
+ @TotalNum = params['TotalNum']
103
+ @RequestId = params['RequestId']
104
+ end
105
+ end
106
+
107
+ # 实例详细信息列表
108
+ class InstanceListInfo < TencentCloud::Common::AbstractModel
109
+ # @param Tags: 实例关联的标签信息
110
+ # @type Tags: Array
111
+ # @param AddTimeStamp: 实例创建时间
112
+ # @type AddTimeStamp: String
113
+ # @param AppId: 用户AppID
114
+ # @type AppId: Integer
115
+ # @param AutoRenewFlag: 实例是否设置自动续费标识,1:设置自动续费;0:未设置自动续费
116
+ # @type AutoRenewFlag: Integer
117
+ # @param CmemId: 实例内置ID
118
+ # @type CmemId: Integer
119
+ # @param DeadlineTimeStamp: 实例截止时间
120
+ # @type DeadlineTimeStamp: String
121
+ # @param Expire: 过期策略
122
+ # @type Expire: Integer
123
+ # @param InstanceDesc: 实例描述信息
124
+ # @type InstanceDesc: String
125
+ # @param InstanceId: 实例ID
126
+ # @type InstanceId: String
127
+ # @param InstanceName: 实例名称
128
+ # @type InstanceName: String
129
+ # @param IsolateTimeStamp: 实例隔离时间
130
+ # @type IsolateTimeStamp: String
131
+ # @param ModTimeStamp: 实例修改时间
132
+ # @type ModTimeStamp: String
133
+ # @param PayMode: 计费模式:0-按量计费,1-包年包月
134
+ # @type PayMode: Integer
135
+ # @param ProjectId: 项目ID
136
+ # @type ProjectId: Integer
137
+ # @param RegionId: 地域id 1--广州 4--上海 5-- 香港 6--多伦多 7--上海金融 8--北京 9-- 新加坡 11--深圳金融 15--美西(硅谷)16--成都 17--德国 18--韩国 19--重庆 21--印度 22--美东(弗吉尼亚)23--泰国 24--俄罗斯 25--日本
138
+ # @type RegionId: Integer
139
+ # @param SetId: 仓库ID
140
+ # @type SetId: Integer
141
+ # @param Status: 实例当前状态,0:待初始化;1:实例在流程中;2:实例运行中;-2:实例已隔离;-3:实例待删除
142
+ # @type Status: Integer
143
+ # @param SubnetId: vpc网络下子网id 如:46315
144
+ # @type SubnetId: Integer
145
+ # @param UniqSubnetId: vpc网络下子网id 如:subnet-fd3j6l35mm0
146
+ # @type UniqSubnetId: String
147
+ # @param UniqVpcId: vpc网络id 如:vpc-fk33jsf43kgv
148
+ # @type UniqVpcId: String
149
+ # @param Vip: 实例vip
150
+ # @type Vip: String
151
+ # @param VpcId: vpc网络id 如:75101
152
+ # @type VpcId: Integer
153
+ # @param Vport: 实例端口号
154
+ # @type Vport: Integer
155
+ # @param ZoneId: 区域ID
156
+ # @type ZoneId: Integer
157
+
158
+ attr_accessor :Tags, :AddTimeStamp, :AppId, :AutoRenewFlag, :CmemId, :DeadlineTimeStamp, :Expire, :InstanceDesc, :InstanceId, :InstanceName, :IsolateTimeStamp, :ModTimeStamp, :PayMode, :ProjectId, :RegionId, :SetId, :Status, :SubnetId, :UniqSubnetId, :UniqVpcId, :Vip, :VpcId, :Vport, :ZoneId
159
+
160
+ def initialize(tags=nil, addtimestamp=nil, appid=nil, autorenewflag=nil, cmemid=nil, deadlinetimestamp=nil, expire=nil, instancedesc=nil, instanceid=nil, instancename=nil, isolatetimestamp=nil, modtimestamp=nil, paymode=nil, projectid=nil, regionid=nil, setid=nil, status=nil, subnetid=nil, uniqsubnetid=nil, uniqvpcid=nil, vip=nil, vpcid=nil, vport=nil, zoneid=nil)
161
+ @Tags = tags
162
+ @AddTimeStamp = addtimestamp
163
+ @AppId = appid
164
+ @AutoRenewFlag = autorenewflag
165
+ @CmemId = cmemid
166
+ @DeadlineTimeStamp = deadlinetimestamp
167
+ @Expire = expire
168
+ @InstanceDesc = instancedesc
169
+ @InstanceId = instanceid
170
+ @InstanceName = instancename
171
+ @IsolateTimeStamp = isolatetimestamp
172
+ @ModTimeStamp = modtimestamp
173
+ @PayMode = paymode
174
+ @ProjectId = projectid
175
+ @RegionId = regionid
176
+ @SetId = setid
177
+ @Status = status
178
+ @SubnetId = subnetid
179
+ @UniqSubnetId = uniqsubnetid
180
+ @UniqVpcId = uniqvpcid
181
+ @Vip = vip
182
+ @VpcId = vpcid
183
+ @Vport = vport
184
+ @ZoneId = zoneid
185
+ end
186
+
187
+ def deserialize(params)
188
+ unless params['Tags'].nil?
189
+ @Tags = []
190
+ params['Tags'].each do |i|
191
+ taginfo_tmp = TagInfo.new
192
+ taginfo_tmp.deserialize(i)
193
+ @Tags << taginfo_tmp
194
+ end
195
+ end
196
+ @AddTimeStamp = params['AddTimeStamp']
197
+ @AppId = params['AppId']
198
+ @AutoRenewFlag = params['AutoRenewFlag']
199
+ @CmemId = params['CmemId']
200
+ @DeadlineTimeStamp = params['DeadlineTimeStamp']
201
+ @Expire = params['Expire']
202
+ @InstanceDesc = params['InstanceDesc']
203
+ @InstanceId = params['InstanceId']
204
+ @InstanceName = params['InstanceName']
205
+ @IsolateTimeStamp = params['IsolateTimeStamp']
206
+ @ModTimeStamp = params['ModTimeStamp']
207
+ @PayMode = params['PayMode']
208
+ @ProjectId = params['ProjectId']
209
+ @RegionId = params['RegionId']
210
+ @SetId = params['SetId']
211
+ @Status = params['Status']
212
+ @SubnetId = params['SubnetId']
213
+ @UniqSubnetId = params['UniqSubnetId']
214
+ @UniqVpcId = params['UniqVpcId']
215
+ @Vip = params['Vip']
216
+ @VpcId = params['VpcId']
217
+ @Vport = params['Vport']
218
+ @ZoneId = params['ZoneId']
219
+ end
220
+ end
221
+
222
+ # 标签信息
223
+ class TagInfo < TencentCloud::Common::AbstractModel
224
+ # @param TagKey: 标签键
225
+ # @type TagKey: String
226
+ # @param TagValue: 标签值
227
+ # @type TagValue: String
228
+
229
+ attr_accessor :TagKey, :TagValue
230
+
231
+ def initialize(tagkey=nil, tagvalue=nil)
232
+ @TagKey = tagkey
233
+ @TagValue = tagvalue
234
+ end
235
+
236
+ def deserialize(params)
237
+ @TagKey = params['TagKey']
238
+ @TagValue = params['TagValue']
239
+ end
240
+ end
241
+
242
+ end
243
+ end
244
+ end
245
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-memcached
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.200
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-11-11 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: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.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
+ MEMCACHED.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-memcached.rb
38
+ - lib/v20190318/client.rb
39
+ - lib/v20190318/models.rb
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-memcached
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.6.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - MEMCACHED
66
+ test_files: []