tencentcloud-sdk-ic 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: 2267000fccc96f366e94c7aec7abc3673ec29dc1
4
+ data.tar.gz: c1b6bc358d3beaa4be3b644062933d06426f2d80
5
+ SHA512:
6
+ metadata.gz: 709f5c6cb57c6a42f7e452bf80c9b319e8820cd190fdfb27af066c9fff29c2d15db89bc74d94b388eb55fa86051cbb94524016f3675906273f977a25b2a52234
7
+ data.tar.gz: f406121c469213508df0648ca05c83861385757b67888a939caf2924d50d477ad3f46a30123243aa7f30c3bb9b6eb7d807083a4303aefaae5bf1a18d743119b0
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 'v20190307/client'
6
+ require_relative 'v20190307/models'
7
+
8
+ module TencentCloud
9
+ module Ic
10
+ end
11
+ end
@@ -0,0 +1,209 @@
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 Ic
21
+ module V20190307
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2019-03-07'
26
+ api_endpoint = 'ic.tencentcloudapi.com'
27
+ sdk_version = 'IC_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 根据应用id查询物联卡应用详情
33
+
34
+ # @param request: Request instance for DescribeApp.
35
+ # @type request: :class:`Tencentcloud::ic::V20190307::DescribeAppRequest`
36
+ # @rtype: :class:`Tencentcloud::ic::V20190307::DescribeAppResponse`
37
+ def DescribeApp(request)
38
+ body = send_request('DescribeApp', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeAppResponse.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 DescribeCard.
59
+ # @type request: :class:`Tencentcloud::ic::V20190307::DescribeCardRequest`
60
+ # @rtype: :class:`Tencentcloud::ic::V20190307::DescribeCardResponse`
61
+ def DescribeCard(request)
62
+ body = send_request('DescribeCard', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeCardResponse.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
+
82
+ # @param request: Request instance for DescribeCards.
83
+ # @type request: :class:`Tencentcloud::ic::V20190307::DescribeCardsRequest`
84
+ # @rtype: :class:`Tencentcloud::ic::V20190307::DescribeCardsResponse`
85
+ def DescribeCards(request)
86
+ body = send_request('DescribeCards', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeCardsResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+ # 编辑卡片备注
105
+
106
+ # @param request: Request instance for ModifyUserCardRemark.
107
+ # @type request: :class:`Tencentcloud::ic::V20190307::ModifyUserCardRemarkRequest`
108
+ # @rtype: :class:`Tencentcloud::ic::V20190307::ModifyUserCardRemarkResponse`
109
+ def ModifyUserCardRemark(request)
110
+ body = send_request('ModifyUserCardRemark', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = ModifyUserCardRemarkResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
128
+ # 批量为卡片续费,此接口建议调用至少间隔10s,如果出现返回deal lock failed相关的错误,请过10s再重试。
129
+ # 续费的必要条件:
130
+ # 1、单次续费的卡片不可以超过 100张。
131
+ # 2、接口只支持在控制台购买的卡片进行续费
132
+ # 3、销户和未激活的卡片不支持续费。
133
+ # 4、每张物联网卡,续费总周期不能超过24个月
134
+
135
+ # @param request: Request instance for RenewCards.
136
+ # @type request: :class:`Tencentcloud::ic::V20190307::RenewCardsRequest`
137
+ # @rtype: :class:`Tencentcloud::ic::V20190307::RenewCardsResponse`
138
+ def RenewCards(request)
139
+ body = send_request('RenewCards', request.serialize)
140
+ response = JSON.parse(body)
141
+ if response['Response'].key?('Error') == false
142
+ model = RenewCardsResponse.new
143
+ model.deserialize(response['Response'])
144
+ model
145
+ else
146
+ code = response['Response']['Error']['Code']
147
+ message = response['Response']['Error']['Message']
148
+ reqid = response['Response']['RequestId']
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
150
+ end
151
+ rescue TencentCloud::Common::TencentCloudSDKException => e
152
+ raise e
153
+ rescue StandardError => e
154
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
155
+ end
156
+
157
+ # 群发短信
158
+
159
+ # @param request: Request instance for SendMultiSms.
160
+ # @type request: :class:`Tencentcloud::ic::V20190307::SendMultiSmsRequest`
161
+ # @rtype: :class:`Tencentcloud::ic::V20190307::SendMultiSmsResponse`
162
+ def SendMultiSms(request)
163
+ body = send_request('SendMultiSms', request.serialize)
164
+ response = JSON.parse(body)
165
+ if response['Response'].key?('Error') == false
166
+ model = SendMultiSmsResponse.new
167
+ model.deserialize(response['Response'])
168
+ model
169
+ else
170
+ code = response['Response']['Error']['Code']
171
+ message = response['Response']['Error']['Message']
172
+ reqid = response['Response']['RequestId']
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
174
+ end
175
+ rescue TencentCloud::Common::TencentCloudSDKException => e
176
+ raise e
177
+ rescue StandardError => e
178
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
179
+ end
180
+
181
+ # 发送短信息接口
182
+
183
+ # @param request: Request instance for SendSms.
184
+ # @type request: :class:`Tencentcloud::ic::V20190307::SendSmsRequest`
185
+ # @rtype: :class:`Tencentcloud::ic::V20190307::SendSmsResponse`
186
+ def SendSms(request)
187
+ body = send_request('SendSms', request.serialize)
188
+ response = JSON.parse(body)
189
+ if response['Response'].key?('Error') == false
190
+ model = SendSmsResponse.new
191
+ model.deserialize(response['Response'])
192
+ model
193
+ else
194
+ code = response['Response']['Error']['Code']
195
+ message = response['Response']['Error']['Message']
196
+ reqid = response['Response']['RequestId']
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
198
+ end
199
+ rescue TencentCloud::Common::TencentCloudSDKException => e
200
+ raise e
201
+ rescue StandardError => e
202
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
203
+ end
204
+
205
+
206
+ end
207
+ end
208
+ end
209
+ end
@@ -0,0 +1,624 @@
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 Ic
19
+ module V20190307
20
+ # 物联网卡应用信息详情
21
+ class AppInfo < TencentCloud::Common::AbstractModel
22
+ # @param Sdkappid: 应用ID
23
+ # @type Sdkappid: String
24
+ # @param Appkey: 应用key
25
+ # @type Appkey: String
26
+ # @param CloudAppid: 用户appid
27
+ # @type CloudAppid: String
28
+ # @param Name: 应用名称
29
+ # 注意:此字段可能返回 null,表示取不到有效值。
30
+ # @type Name: String
31
+ # @param Description: 应用描述
32
+ # @type Description: String
33
+ # @param CreatedTime: 创建时间
34
+ # @type CreatedTime: String
35
+ # @param BizType: 应用类型
36
+ # @type BizType: Integer
37
+ # @param Uin: 用户Uin
38
+ # @type Uin: String
39
+
40
+ attr_accessor :Sdkappid, :Appkey, :CloudAppid, :Name, :Description, :CreatedTime, :BizType, :Uin
41
+
42
+ def initialize(sdkappid=nil, appkey=nil, cloudappid=nil, name=nil, description=nil, createdtime=nil, biztype=nil, uin=nil)
43
+ @Sdkappid = sdkappid
44
+ @Appkey = appkey
45
+ @CloudAppid = cloudappid
46
+ @Name = name
47
+ @Description = description
48
+ @CreatedTime = createdtime
49
+ @BizType = biztype
50
+ @Uin = uin
51
+ end
52
+
53
+ def deserialize(params)
54
+ @Sdkappid = params['Sdkappid']
55
+ @Appkey = params['Appkey']
56
+ @CloudAppid = params['CloudAppid']
57
+ @Name = params['Name']
58
+ @Description = params['Description']
59
+ @CreatedTime = params['CreatedTime']
60
+ @BizType = params['BizType']
61
+ @Uin = params['Uin']
62
+ end
63
+ end
64
+
65
+ # 卡片详细信息
66
+ class CardInfo < TencentCloud::Common::AbstractModel
67
+ # @param Iccid: 卡片ID
68
+ # @type Iccid: String
69
+ # @param Msisdn: 卡电话号码
70
+ # 注意:此字段可能返回 null,表示取不到有效值。
71
+ # @type Msisdn: String
72
+ # @param Imsi: 卡imsi
73
+ # 注意:此字段可能返回 null,表示取不到有效值。
74
+ # @type Imsi: String
75
+ # @param Imei: 卡imei
76
+ # 注意:此字段可能返回 null,表示取不到有效值。
77
+ # @type Imei: String
78
+ # @param Sdkappid: 应用ID
79
+ # @type Sdkappid: String
80
+ # @param Teleoperator: 运营商编号
81
+ # @type Teleoperator: Integer
82
+ # @param CardStatus: 卡片状态 1:未激活 2:激活 3:停卡 5:销卡
83
+ # @type CardStatus: Integer
84
+ # @param NetworkStatus: 网络状态
85
+ # 注意:此字段可能返回 null,表示取不到有效值。
86
+ # @type NetworkStatus: Integer
87
+ # @param ActivitedTime: 激活时间
88
+ # 注意:此字段可能返回 null,表示取不到有效值。
89
+ # @type ActivitedTime: String
90
+ # @param Type: 资费类型,1 单卡,2 流量池
91
+ # @type Type: Integer
92
+ # @param ProductId: 套餐类型
93
+ # 注意:此字段可能返回 null,表示取不到有效值。
94
+ # @type ProductId: String
95
+ # @param PoolId: 流量池ID
96
+ # 注意:此字段可能返回 null,表示取不到有效值。
97
+ # @type PoolId: String
98
+ # @param DataUsedInPeriod: 周期套餐流量使用
99
+ # 注意:此字段可能返回 null,表示取不到有效值。
100
+ # @type DataUsedInPeriod: Float
101
+ # @param DataTotalInPeriod: 周期套餐总量
102
+ # 注意:此字段可能返回 null,表示取不到有效值。
103
+ # @type DataTotalInPeriod: Float
104
+ # @param ProductExpiredTime: 过期时间
105
+ # 注意:此字段可能返回 null,表示取不到有效值。
106
+ # @type ProductExpiredTime: String
107
+ # @param Description: 描述信息
108
+ # 注意:此字段可能返回 null,表示取不到有效值。
109
+ # @type Description: String
110
+ # @param CreatedTime: 创建时间
111
+ # @type CreatedTime: String
112
+ # @param ModifiedTime: 修改时间
113
+ # @type ModifiedTime: String
114
+ # @param PreorderCnt: 套餐周期
115
+ # 注意:此字段可能返回 null,表示取不到有效值。
116
+ # @type PreorderCnt: Integer
117
+ # @param IsActivated: 激活被回调标志
118
+ # 注意:此字段可能返回 null,表示取不到有效值。
119
+ # @type IsActivated: Integer
120
+ # @param OrderId: 订单ID
121
+ # 注意:此字段可能返回 null,表示取不到有效值。
122
+ # @type OrderId: String
123
+ # @param AutoRenew: 是否自动续费
124
+ # 注意:此字段可能返回 null,表示取不到有效值。
125
+ # @type AutoRenew: Integer
126
+ # @param Remark: 备注
127
+ # 注意:此字段可能返回 null,表示取不到有效值。
128
+ # @type Remark: String
129
+ # @param AllowArrears: 0 不需要开通达量不停卡 1 需要开通达量不停卡
130
+ # 注意:此字段可能返回 null,表示取不到有效值。
131
+ # @type AllowArrears: Integer
132
+ # @param NeedSms: 是否开通短信0:未开短信 1:开通短信
133
+ # @type NeedSms: Integer
134
+ # @param Provider: 供应商
135
+ # @type Provider: Integer
136
+ # @param CertificationState: 实名认证 0:无 1:未实名 2:已实名
137
+ # 注意:此字段可能返回 null,表示取不到有效值。
138
+ # @type CertificationState: Integer
139
+ # @param OtherData: 其他流量信息,流量分离统计其他流量
140
+ # 注意:此字段可能返回 null,表示取不到有效值。
141
+ # @type OtherData: Float
142
+
143
+ attr_accessor :Iccid, :Msisdn, :Imsi, :Imei, :Sdkappid, :Teleoperator, :CardStatus, :NetworkStatus, :ActivitedTime, :Type, :ProductId, :PoolId, :DataUsedInPeriod, :DataTotalInPeriod, :ProductExpiredTime, :Description, :CreatedTime, :ModifiedTime, :PreorderCnt, :IsActivated, :OrderId, :AutoRenew, :Remark, :AllowArrears, :NeedSms, :Provider, :CertificationState, :OtherData
144
+
145
+ def initialize(iccid=nil, msisdn=nil, imsi=nil, imei=nil, sdkappid=nil, teleoperator=nil, cardstatus=nil, networkstatus=nil, activitedtime=nil, type=nil, productid=nil, poolid=nil, datausedinperiod=nil, datatotalinperiod=nil, productexpiredtime=nil, description=nil, createdtime=nil, modifiedtime=nil, preordercnt=nil, isactivated=nil, orderid=nil, autorenew=nil, remark=nil, allowarrears=nil, needsms=nil, provider=nil, certificationstate=nil, otherdata=nil)
146
+ @Iccid = iccid
147
+ @Msisdn = msisdn
148
+ @Imsi = imsi
149
+ @Imei = imei
150
+ @Sdkappid = sdkappid
151
+ @Teleoperator = teleoperator
152
+ @CardStatus = cardstatus
153
+ @NetworkStatus = networkstatus
154
+ @ActivitedTime = activitedtime
155
+ @Type = type
156
+ @ProductId = productid
157
+ @PoolId = poolid
158
+ @DataUsedInPeriod = datausedinperiod
159
+ @DataTotalInPeriod = datatotalinperiod
160
+ @ProductExpiredTime = productexpiredtime
161
+ @Description = description
162
+ @CreatedTime = createdtime
163
+ @ModifiedTime = modifiedtime
164
+ @PreorderCnt = preordercnt
165
+ @IsActivated = isactivated
166
+ @OrderId = orderid
167
+ @AutoRenew = autorenew
168
+ @Remark = remark
169
+ @AllowArrears = allowarrears
170
+ @NeedSms = needsms
171
+ @Provider = provider
172
+ @CertificationState = certificationstate
173
+ @OtherData = otherdata
174
+ end
175
+
176
+ def deserialize(params)
177
+ @Iccid = params['Iccid']
178
+ @Msisdn = params['Msisdn']
179
+ @Imsi = params['Imsi']
180
+ @Imei = params['Imei']
181
+ @Sdkappid = params['Sdkappid']
182
+ @Teleoperator = params['Teleoperator']
183
+ @CardStatus = params['CardStatus']
184
+ @NetworkStatus = params['NetworkStatus']
185
+ @ActivitedTime = params['ActivitedTime']
186
+ @Type = params['Type']
187
+ @ProductId = params['ProductId']
188
+ @PoolId = params['PoolId']
189
+ @DataUsedInPeriod = params['DataUsedInPeriod']
190
+ @DataTotalInPeriod = params['DataTotalInPeriod']
191
+ @ProductExpiredTime = params['ProductExpiredTime']
192
+ @Description = params['Description']
193
+ @CreatedTime = params['CreatedTime']
194
+ @ModifiedTime = params['ModifiedTime']
195
+ @PreorderCnt = params['PreorderCnt']
196
+ @IsActivated = params['IsActivated']
197
+ @OrderId = params['OrderId']
198
+ @AutoRenew = params['AutoRenew']
199
+ @Remark = params['Remark']
200
+ @AllowArrears = params['AllowArrears']
201
+ @NeedSms = params['NeedSms']
202
+ @Provider = params['Provider']
203
+ @CertificationState = params['CertificationState']
204
+ @OtherData = params['OtherData']
205
+ end
206
+ end
207
+
208
+ # 卡片列表数据
209
+ class CardList < TencentCloud::Common::AbstractModel
210
+ # @param Total: 卡片总数
211
+ # @type Total: String
212
+ # @param List: 卡片列表信息
213
+ # 注意:此字段可能返回 null,表示取不到有效值。
214
+ # @type List: Array
215
+
216
+ attr_accessor :Total, :List
217
+
218
+ def initialize(total=nil, list=nil)
219
+ @Total = total
220
+ @List = list
221
+ end
222
+
223
+ def deserialize(params)
224
+ @Total = params['Total']
225
+ unless params['List'].nil?
226
+ @List = []
227
+ params['List'].each do |i|
228
+ cardinfo_tmp = CardInfo.new
229
+ cardinfo_tmp.deserialize(i)
230
+ @List << cardinfo_tmp
231
+ end
232
+ end
233
+ end
234
+ end
235
+
236
+ # DescribeApp请求参数结构体
237
+ class DescribeAppRequest < TencentCloud::Common::AbstractModel
238
+ # @param Sdkappid: 物联卡应用ID
239
+ # @type Sdkappid: Integer
240
+
241
+ attr_accessor :Sdkappid
242
+
243
+ def initialize(sdkappid=nil)
244
+ @Sdkappid = sdkappid
245
+ end
246
+
247
+ def deserialize(params)
248
+ @Sdkappid = params['Sdkappid']
249
+ end
250
+ end
251
+
252
+ # DescribeApp返回参数结构体
253
+ class DescribeAppResponse < TencentCloud::Common::AbstractModel
254
+ # @param Data: 应用信息详情
255
+ # 注意:此字段可能返回 null,表示取不到有效值。
256
+ # @type Data: :class:`Tencentcloud::Ic.v20190307.models.AppInfo`
257
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
258
+ # @type RequestId: String
259
+
260
+ attr_accessor :Data, :RequestId
261
+
262
+ def initialize(data=nil, requestid=nil)
263
+ @Data = data
264
+ @RequestId = requestid
265
+ end
266
+
267
+ def deserialize(params)
268
+ unless params['Data'].nil?
269
+ @Data = AppInfo.new
270
+ @Data.deserialize(params['Data'])
271
+ end
272
+ @RequestId = params['RequestId']
273
+ end
274
+ end
275
+
276
+ # DescribeCard请求参数结构体
277
+ class DescribeCardRequest < TencentCloud::Common::AbstractModel
278
+ # @param Sdkappid: 应用ID
279
+ # @type Sdkappid: Integer
280
+ # @param Iccid: 卡片ID
281
+ # @type Iccid: String
282
+
283
+ attr_accessor :Sdkappid, :Iccid
284
+
285
+ def initialize(sdkappid=nil, iccid=nil)
286
+ @Sdkappid = sdkappid
287
+ @Iccid = iccid
288
+ end
289
+
290
+ def deserialize(params)
291
+ @Sdkappid = params['Sdkappid']
292
+ @Iccid = params['Iccid']
293
+ end
294
+ end
295
+
296
+ # DescribeCard返回参数结构体
297
+ class DescribeCardResponse < TencentCloud::Common::AbstractModel
298
+ # @param Data: 卡片详细信息
299
+ # 注意:此字段可能返回 null,表示取不到有效值。
300
+ # @type Data: :class:`Tencentcloud::Ic.v20190307.models.CardInfo`
301
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
302
+ # @type RequestId: String
303
+
304
+ attr_accessor :Data, :RequestId
305
+
306
+ def initialize(data=nil, requestid=nil)
307
+ @Data = data
308
+ @RequestId = requestid
309
+ end
310
+
311
+ def deserialize(params)
312
+ unless params['Data'].nil?
313
+ @Data = CardInfo.new
314
+ @Data.deserialize(params['Data'])
315
+ end
316
+ @RequestId = params['RequestId']
317
+ end
318
+ end
319
+
320
+ # DescribeCards请求参数结构体
321
+ class DescribeCardsRequest < TencentCloud::Common::AbstractModel
322
+ # @param Sdkappid: 应用ID
323
+ # @type Sdkappid: String
324
+ # @param Offset: 偏移值
325
+ # @type Offset: Integer
326
+ # @param Limit: 列表限制
327
+ # @type Limit: Integer
328
+
329
+ attr_accessor :Sdkappid, :Offset, :Limit
330
+
331
+ def initialize(sdkappid=nil, offset=nil, limit=nil)
332
+ @Sdkappid = sdkappid
333
+ @Offset = offset
334
+ @Limit = limit
335
+ end
336
+
337
+ def deserialize(params)
338
+ @Sdkappid = params['Sdkappid']
339
+ @Offset = params['Offset']
340
+ @Limit = params['Limit']
341
+ end
342
+ end
343
+
344
+ # DescribeCards返回参数结构体
345
+ class DescribeCardsResponse < TencentCloud::Common::AbstractModel
346
+ # @param Data: 卡片列表信息
347
+ # @type Data: :class:`Tencentcloud::Ic.v20190307.models.CardList`
348
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
349
+ # @type RequestId: String
350
+
351
+ attr_accessor :Data, :RequestId
352
+
353
+ def initialize(data=nil, requestid=nil)
354
+ @Data = data
355
+ @RequestId = requestid
356
+ end
357
+
358
+ def deserialize(params)
359
+ unless params['Data'].nil?
360
+ @Data = CardList.new
361
+ @Data.deserialize(params['Data'])
362
+ end
363
+ @RequestId = params['RequestId']
364
+ end
365
+ end
366
+
367
+ # ModifyUserCardRemark请求参数结构体
368
+ class ModifyUserCardRemarkRequest < TencentCloud::Common::AbstractModel
369
+ # @param Sdkappid: 应用ID
370
+ # @type Sdkappid: Integer
371
+ # @param Iccid: 物联卡ICCID
372
+ # @type Iccid: String
373
+ # @param Remark: 备注信息,限50字
374
+ # @type Remark: String
375
+
376
+ attr_accessor :Sdkappid, :Iccid, :Remark
377
+
378
+ def initialize(sdkappid=nil, iccid=nil, remark=nil)
379
+ @Sdkappid = sdkappid
380
+ @Iccid = iccid
381
+ @Remark = remark
382
+ end
383
+
384
+ def deserialize(params)
385
+ @Sdkappid = params['Sdkappid']
386
+ @Iccid = params['Iccid']
387
+ @Remark = params['Remark']
388
+ end
389
+ end
390
+
391
+ # ModifyUserCardRemark返回参数结构体
392
+ class ModifyUserCardRemarkResponse < TencentCloud::Common::AbstractModel
393
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
394
+ # @type RequestId: String
395
+
396
+ attr_accessor :RequestId
397
+
398
+ def initialize(requestid=nil)
399
+ @RequestId = requestid
400
+ end
401
+
402
+ def deserialize(params)
403
+ @RequestId = params['RequestId']
404
+ end
405
+ end
406
+
407
+ # RenewCards请求参数结构体
408
+ class RenewCardsRequest < TencentCloud::Common::AbstractModel
409
+ # @param Sdkappid: 应用ID
410
+ # @type Sdkappid: Integer
411
+ # @param Iccids: 续费的iccid
412
+ # @type Iccids: Array
413
+ # @param RenewNum: 续费的周期(单位:月)
414
+ # @type RenewNum: Integer
415
+
416
+ attr_accessor :Sdkappid, :Iccids, :RenewNum
417
+
418
+ def initialize(sdkappid=nil, iccids=nil, renewnum=nil)
419
+ @Sdkappid = sdkappid
420
+ @Iccids = iccids
421
+ @RenewNum = renewnum
422
+ end
423
+
424
+ def deserialize(params)
425
+ @Sdkappid = params['Sdkappid']
426
+ @Iccids = params['Iccids']
427
+ @RenewNum = params['RenewNum']
428
+ end
429
+ end
430
+
431
+ # RenewCards返回参数结构体
432
+ class RenewCardsResponse < TencentCloud::Common::AbstractModel
433
+ # @param Data: 续费成功的订单id
434
+ # 注意:此字段可能返回 null,表示取不到有效值。
435
+ # @type Data: :class:`Tencentcloud::Ic.v20190307.models.ResRenew`
436
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
437
+ # @type RequestId: String
438
+
439
+ attr_accessor :Data, :RequestId
440
+
441
+ def initialize(data=nil, requestid=nil)
442
+ @Data = data
443
+ @RequestId = requestid
444
+ end
445
+
446
+ def deserialize(params)
447
+ unless params['Data'].nil?
448
+ @Data = ResRenew.new
449
+ @Data.deserialize(params['Data'])
450
+ end
451
+ @RequestId = params['RequestId']
452
+ end
453
+ end
454
+
455
+ # 云api 卡片续费
456
+ class ResRenew < TencentCloud::Common::AbstractModel
457
+ # @param OrderIds: 每一张续费卡片的订单ID数组
458
+ # 注意:此字段可能返回 null,表示取不到有效值。
459
+ # @type OrderIds: Array
460
+
461
+ attr_accessor :OrderIds
462
+
463
+ def initialize(orderids=nil)
464
+ @OrderIds = orderids
465
+ end
466
+
467
+ def deserialize(params)
468
+ @OrderIds = params['OrderIds']
469
+ end
470
+ end
471
+
472
+ # SendMultiSms请求参数结构体
473
+ class SendMultiSmsRequest < TencentCloud::Common::AbstractModel
474
+ # @param Sdkappid: 应用ID
475
+ # @type Sdkappid: String
476
+ # @param Iccids: 卡片列表
477
+ # @type Iccids: Array
478
+ # @param Content: 短信内容 长度限制 70
479
+ # @type Content: String
480
+
481
+ attr_accessor :Sdkappid, :Iccids, :Content
482
+
483
+ def initialize(sdkappid=nil, iccids=nil, content=nil)
484
+ @Sdkappid = sdkappid
485
+ @Iccids = iccids
486
+ @Content = content
487
+ end
488
+
489
+ def deserialize(params)
490
+ @Sdkappid = params['Sdkappid']
491
+ @Iccids = params['Iccids']
492
+ @Content = params['Content']
493
+ end
494
+ end
495
+
496
+ # SendMultiSms返回参数结构体
497
+ class SendMultiSmsResponse < TencentCloud::Common::AbstractModel
498
+ # @param Data: 短信流水数组
499
+ # 注意:此字段可能返回 null,表示取不到有效值。
500
+ # @type Data: Array
501
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
502
+ # @type RequestId: String
503
+
504
+ attr_accessor :Data, :RequestId
505
+
506
+ def initialize(data=nil, requestid=nil)
507
+ @Data = data
508
+ @RequestId = requestid
509
+ end
510
+
511
+ def deserialize(params)
512
+ unless params['Data'].nil?
513
+ @Data = []
514
+ params['Data'].each do |i|
515
+ smsret_tmp = SmsRet.new
516
+ smsret_tmp.deserialize(i)
517
+ @Data << smsret_tmp
518
+ end
519
+ end
520
+ @RequestId = params['RequestId']
521
+ end
522
+ end
523
+
524
+ # SendSms请求参数结构体
525
+ class SendSmsRequest < TencentCloud::Common::AbstractModel
526
+ # @param Sdkappid: 应用ID
527
+ # @type Sdkappid: Integer
528
+ # @param Iccid: 卡片ID
529
+ # @type Iccid: String
530
+ # @param Content: 短信内容长度70限制
531
+ # @type Content: String
532
+
533
+ attr_accessor :Sdkappid, :Iccid, :Content
534
+
535
+ def initialize(sdkappid=nil, iccid=nil, content=nil)
536
+ @Sdkappid = sdkappid
537
+ @Iccid = iccid
538
+ @Content = content
539
+ end
540
+
541
+ def deserialize(params)
542
+ @Sdkappid = params['Sdkappid']
543
+ @Iccid = params['Iccid']
544
+ @Content = params['Content']
545
+ end
546
+ end
547
+
548
+ # SendSms返回参数结构体
549
+ class SendSmsResponse < TencentCloud::Common::AbstractModel
550
+ # @param Data: 短信流水信息
551
+ # 注意:此字段可能返回 null,表示取不到有效值。
552
+ # @type Data: :class:`Tencentcloud::Ic.v20190307.models.SmsSid`
553
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
554
+ # @type RequestId: String
555
+
556
+ attr_accessor :Data, :RequestId
557
+
558
+ def initialize(data=nil, requestid=nil)
559
+ @Data = data
560
+ @RequestId = requestid
561
+ end
562
+
563
+ def deserialize(params)
564
+ unless params['Data'].nil?
565
+ @Data = SmsSid.new
566
+ @Data.deserialize(params['Data'])
567
+ end
568
+ @RequestId = params['RequestId']
569
+ end
570
+ end
571
+
572
+ # 短信流水信息
573
+ class SmsRet < TencentCloud::Common::AbstractModel
574
+ # @param Code: 该iccid请求状态
575
+ # @type Code: String
576
+ # @param Msg: 短信发送返回信息
577
+ # @type Msg: String
578
+ # @param Iccid: 卡片ID
579
+ # @type Iccid: String
580
+ # @param Sid: 流水ID
581
+ # @type Sid: String
582
+
583
+ attr_accessor :Code, :Msg, :Iccid, :Sid
584
+
585
+ def initialize(code=nil, msg=nil, iccid=nil, sid=nil)
586
+ @Code = code
587
+ @Msg = msg
588
+ @Iccid = iccid
589
+ @Sid = sid
590
+ end
591
+
592
+ def deserialize(params)
593
+ @Code = params['Code']
594
+ @Msg = params['Msg']
595
+ @Iccid = params['Iccid']
596
+ @Sid = params['Sid']
597
+ end
598
+ end
599
+
600
+ # 短信流水信息
601
+ class SmsSid < TencentCloud::Common::AbstractModel
602
+ # @param Iccid: 卡片ID
603
+ # 注意:此字段可能返回 null,表示取不到有效值。
604
+ # @type Iccid: String
605
+ # @param Sid: 信息流水ID
606
+ # @type Sid: String
607
+
608
+ attr_accessor :Iccid, :Sid
609
+
610
+ def initialize(iccid=nil, sid=nil)
611
+ @Iccid = iccid
612
+ @Sid = sid
613
+ end
614
+
615
+ def deserialize(params)
616
+ @Iccid = params['Iccid']
617
+ @Sid = params['Sid']
618
+ end
619
+ end
620
+
621
+ end
622
+ end
623
+ end
624
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-ic
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
+ IC.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-ic.rb
38
+ - lib/v20190307/client.rb
39
+ - lib/v20190307/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-ic
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 - IC
66
+ test_files: []