tencentcloud-sdk-market 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 +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-market.rb +11 -0
- data/lib/v20191010/client.rb +84 -0
- data/lib/v20191010/models.rb +132 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: eae5955b6825fbea9312e7259fe4de2c45e21923
|
4
|
+
data.tar.gz: 2d8081b1efe0c329a7f4979c0743fdda544d1cff
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 42fc299691293595cccde43ef7a1ec6e358460e53c556378e6529957fcf11ca5b79ac6ab31db1e79a57baf5ff60596c50030b88f52cbde0c01e8c567a10a6517
|
7
|
+
data.tar.gz: 39fcfa60180f939e393982f4d6be03d31b317f8f84bdf783037fbe0662ede666db8e19fbdc64ef7d8ac410d1781077073fdc144a018850c971b6d804285788d5
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.200
|
@@ -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 Market
|
21
|
+
module V20191010
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2019-10-10'
|
26
|
+
api_endpoint = 'market.tencentcloudapi.com'
|
27
|
+
sdk_version = 'MARKET_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# 计量商品用量提醒,用于服务商调用云服务,云服务向客户发送提醒信息
|
33
|
+
|
34
|
+
# @param request: Request instance for FlowProductRemind.
|
35
|
+
# @type request: :class:`Tencentcloud::market::V20191010::FlowProductRemindRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::market::V20191010::FlowProductRemindResponse`
|
37
|
+
def FlowProductRemind(request)
|
38
|
+
body = send_request('FlowProductRemind', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = FlowProductRemindResponse.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
|
+
# 该接口可以根据InstanceId查询实例的api的使用情况。
|
57
|
+
|
58
|
+
# @param request: Request instance for GetUsagePlanUsageAmount.
|
59
|
+
# @type request: :class:`Tencentcloud::market::V20191010::GetUsagePlanUsageAmountRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::market::V20191010::GetUsagePlanUsageAmountResponse`
|
61
|
+
def GetUsagePlanUsageAmount(request)
|
62
|
+
body = send_request('GetUsagePlanUsageAmount', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = GetUsagePlanUsageAmountResponse.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,132 @@
|
|
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 Market
|
19
|
+
module V20191010
|
20
|
+
# FlowProductRemind请求参数结构体
|
21
|
+
class FlowProductRemindRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param ProviderUin: 服务商uin
|
23
|
+
# @type ProviderUin: String
|
24
|
+
# @param SignId: 服务商实例ID
|
25
|
+
# @type SignId: String
|
26
|
+
# @param ResourceId: 云市场实例ID
|
27
|
+
# @type ResourceId: String
|
28
|
+
# @param TotalFlow: 实例总流量
|
29
|
+
# @type TotalFlow: String
|
30
|
+
# @param LeftFlow: 剩余流量
|
31
|
+
# @type LeftFlow: String
|
32
|
+
# @param FlowUnit: 流量单位
|
33
|
+
# @type FlowUnit: String
|
34
|
+
|
35
|
+
attr_accessor :ProviderUin, :SignId, :ResourceId, :TotalFlow, :LeftFlow, :FlowUnit
|
36
|
+
|
37
|
+
def initialize(provideruin=nil, signid=nil, resourceid=nil, totalflow=nil, leftflow=nil, flowunit=nil)
|
38
|
+
@ProviderUin = provideruin
|
39
|
+
@SignId = signid
|
40
|
+
@ResourceId = resourceid
|
41
|
+
@TotalFlow = totalflow
|
42
|
+
@LeftFlow = leftflow
|
43
|
+
@FlowUnit = flowunit
|
44
|
+
end
|
45
|
+
|
46
|
+
def deserialize(params)
|
47
|
+
@ProviderUin = params['ProviderUin']
|
48
|
+
@SignId = params['SignId']
|
49
|
+
@ResourceId = params['ResourceId']
|
50
|
+
@TotalFlow = params['TotalFlow']
|
51
|
+
@LeftFlow = params['LeftFlow']
|
52
|
+
@FlowUnit = params['FlowUnit']
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# FlowProductRemind返回参数结构体
|
57
|
+
class FlowProductRemindResponse < TencentCloud::Common::AbstractModel
|
58
|
+
# @param Success: 是否成功
|
59
|
+
# @type Success: String
|
60
|
+
# @param FlowId: 流水号
|
61
|
+
# @type FlowId: String
|
62
|
+
# @param Info: 消息
|
63
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
64
|
+
# @type Info: String
|
65
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
66
|
+
# @type RequestId: String
|
67
|
+
|
68
|
+
attr_accessor :Success, :FlowId, :Info, :RequestId
|
69
|
+
|
70
|
+
def initialize(success=nil, flowid=nil, info=nil, requestid=nil)
|
71
|
+
@Success = success
|
72
|
+
@FlowId = flowid
|
73
|
+
@Info = info
|
74
|
+
@RequestId = requestid
|
75
|
+
end
|
76
|
+
|
77
|
+
def deserialize(params)
|
78
|
+
@Success = params['Success']
|
79
|
+
@FlowId = params['FlowId']
|
80
|
+
@Info = params['Info']
|
81
|
+
@RequestId = params['RequestId']
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# GetUsagePlanUsageAmount请求参数结构体
|
86
|
+
class GetUsagePlanUsageAmountRequest < TencentCloud::Common::AbstractModel
|
87
|
+
# @param InstanceId: 用于查询实例的Id
|
88
|
+
# @type InstanceId: String
|
89
|
+
|
90
|
+
attr_accessor :InstanceId
|
91
|
+
|
92
|
+
def initialize(instanceid=nil)
|
93
|
+
@InstanceId = instanceid
|
94
|
+
end
|
95
|
+
|
96
|
+
def deserialize(params)
|
97
|
+
@InstanceId = params['InstanceId']
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
# GetUsagePlanUsageAmount返回参数结构体
|
102
|
+
class GetUsagePlanUsageAmountResponse < TencentCloud::Common::AbstractModel
|
103
|
+
# @param MaxRequestNum: 最大调用量
|
104
|
+
# @type MaxRequestNum: Integer
|
105
|
+
# @param InUseRequestNum: 已经调用量
|
106
|
+
# @type InUseRequestNum: Integer
|
107
|
+
# @param RemainingRequestNum: 剩余调用量
|
108
|
+
# @type RemainingRequestNum: Integer
|
109
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
110
|
+
# @type RequestId: String
|
111
|
+
|
112
|
+
attr_accessor :MaxRequestNum, :InUseRequestNum, :RemainingRequestNum, :RequestId
|
113
|
+
|
114
|
+
def initialize(maxrequestnum=nil, inuserequestnum=nil, remainingrequestnum=nil, requestid=nil)
|
115
|
+
@MaxRequestNum = maxrequestnum
|
116
|
+
@InUseRequestNum = inuserequestnum
|
117
|
+
@RemainingRequestNum = remainingrequestnum
|
118
|
+
@RequestId = requestid
|
119
|
+
end
|
120
|
+
|
121
|
+
def deserialize(params)
|
122
|
+
@MaxRequestNum = params['MaxRequestNum']
|
123
|
+
@InUseRequestNum = params['InUseRequestNum']
|
124
|
+
@RemainingRequestNum = params['RemainingRequestNum']
|
125
|
+
@RequestId = params['RequestId']
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-market
|
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
|
+
MARKET.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/VERSION
|
37
|
+
- lib/tencentcloud-sdk-market.rb
|
38
|
+
- lib/v20191010/client.rb
|
39
|
+
- lib/v20191010/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-market
|
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 - MARKET
|
66
|
+
test_files: []
|