tencentcloud-sdk-svp 3.0.759
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-svp.rb +11 -0
- data/lib/v20240125/client.rb +60 -0
- data/lib/v20240125/models.rb +91 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f7391da4d6e6b4e3ca9914abede0b4a1428c26bf
|
4
|
+
data.tar.gz: ccce02c9b671d1030287394d3b2747db56da67bf
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9646ab9fa125978bbd5ce719409832e777ddedb1a4fd6949cd4eb4d2ac43799fac0eff4de7e163415290d2a7c890ebc3ab5858239c35fdce10345487bae6f4d9
|
7
|
+
data.tar.gz: 5b8d3323bb3f8785b906da95f9a7fcec5554dd9b926e6550cbc20e966af24505cc5772cdceca044b78d2944cde00482daac5a09207f6dc0917b7112040e6fe68
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.0.759
|
@@ -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 Svp
|
21
|
+
module V20240125
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2024-01-25'
|
26
|
+
api_endpoint = 'svp.tencentcloudapi.com'
|
27
|
+
sdk_version = 'SVP_' + 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 CreateSavingPlanOrder.
|
35
|
+
# @type request: :class:`Tencentcloud::svp::V20240125::CreateSavingPlanOrderRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::svp::V20240125::CreateSavingPlanOrderResponse`
|
37
|
+
def CreateSavingPlanOrder(request)
|
38
|
+
body = send_request('CreateSavingPlanOrder', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = CreateSavingPlanOrderResponse.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,91 @@
|
|
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 Svp
|
19
|
+
module V20240125
|
20
|
+
# CreateSavingPlanOrder请求参数结构体
|
21
|
+
class CreateSavingPlanOrderRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param RegionId: 地域编码
|
23
|
+
# @type RegionId: Integer
|
24
|
+
# @param ZoneId: 区域编码
|
25
|
+
# @type ZoneId: Integer
|
26
|
+
# @param PrePayType: 预付费类型
|
27
|
+
# @type PrePayType: String
|
28
|
+
# @param TimeSpan: 时长
|
29
|
+
# @type TimeSpan: Integer
|
30
|
+
# @param TimeUnit: 时长单位
|
31
|
+
# @type TimeUnit: String
|
32
|
+
# @param CommodityCode: 商品唯一标识
|
33
|
+
# @type CommodityCode: String
|
34
|
+
# @param PromiseUseAmount: 承诺时长内的小额金额(单位:元)
|
35
|
+
# @type PromiseUseAmount: Integer
|
36
|
+
# @param SpecifyEffectTime: 节省计划的指定生效时间,若不传则为当前下单时间。传参数格式:"2023-10-01 00:00:00",仅支持指定日期的0点时刻
|
37
|
+
# @type SpecifyEffectTime: String
|
38
|
+
# @param ClientToken: 可重入ID
|
39
|
+
# @type ClientToken: String
|
40
|
+
|
41
|
+
attr_accessor :RegionId, :ZoneId, :PrePayType, :TimeSpan, :TimeUnit, :CommodityCode, :PromiseUseAmount, :SpecifyEffectTime, :ClientToken
|
42
|
+
|
43
|
+
def initialize(regionid=nil, zoneid=nil, prepaytype=nil, timespan=nil, timeunit=nil, commoditycode=nil, promiseuseamount=nil, specifyeffecttime=nil, clienttoken=nil)
|
44
|
+
@RegionId = regionid
|
45
|
+
@ZoneId = zoneid
|
46
|
+
@PrePayType = prepaytype
|
47
|
+
@TimeSpan = timespan
|
48
|
+
@TimeUnit = timeunit
|
49
|
+
@CommodityCode = commoditycode
|
50
|
+
@PromiseUseAmount = promiseuseamount
|
51
|
+
@SpecifyEffectTime = specifyeffecttime
|
52
|
+
@ClientToken = clienttoken
|
53
|
+
end
|
54
|
+
|
55
|
+
def deserialize(params)
|
56
|
+
@RegionId = params['RegionId']
|
57
|
+
@ZoneId = params['ZoneId']
|
58
|
+
@PrePayType = params['PrePayType']
|
59
|
+
@TimeSpan = params['TimeSpan']
|
60
|
+
@TimeUnit = params['TimeUnit']
|
61
|
+
@CommodityCode = params['CommodityCode']
|
62
|
+
@PromiseUseAmount = params['PromiseUseAmount']
|
63
|
+
@SpecifyEffectTime = params['SpecifyEffectTime']
|
64
|
+
@ClientToken = params['ClientToken']
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# CreateSavingPlanOrder返回参数结构体
|
69
|
+
class CreateSavingPlanOrderResponse < TencentCloud::Common::AbstractModel
|
70
|
+
# @param BigDealId: 订单号
|
71
|
+
# @type BigDealId: String
|
72
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
73
|
+
# @type RequestId: String
|
74
|
+
|
75
|
+
attr_accessor :BigDealId, :RequestId
|
76
|
+
|
77
|
+
def initialize(bigdealid=nil, requestid=nil)
|
78
|
+
@BigDealId = bigdealid
|
79
|
+
@RequestId = requestid
|
80
|
+
end
|
81
|
+
|
82
|
+
def deserialize(params)
|
83
|
+
@BigDealId = params['BigDealId']
|
84
|
+
@RequestId = params['RequestId']
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-svp
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.0.759
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tencent Cloud
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-01-28 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
|
+
SVP.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/v20240125/models.rb
|
37
|
+
- lib/v20240125/client.rb
|
38
|
+
- lib/tencentcloud-sdk-svp.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-svp
|
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 - SVP
|
66
|
+
test_files: []
|