tencentcloud-sdk-dsgc 3.0.642
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-dsgc.rb +11 -0
- data/lib/v20190723/client.rb +60 -0
- data/lib/v20190723/models.rb +138 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7d2e80055e3299179b7bce7487e382c3c04fa44f
|
4
|
+
data.tar.gz: f3e0c6d357ae6576b84b0d39e5fe350aecf9c9f6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 087632001512ce80f2a78fe574c6e2013cc3f089ec3f3cd630199ca4d65463d28824390a47f161e19430777a7913d92434a2226678618dc22f5845d093d34677
|
7
|
+
data.tar.gz: 37a35d93f14d7d505ad6acea6848eec11013b4c8861076d48bf21dbcaf620cfa9a88f5bc19cad24abff820d07205b350fff375314f95e809db54200f39d6da7d
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.0.642
|
@@ -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 Dsgc
|
21
|
+
module V20190723
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2019-07-23'
|
26
|
+
api_endpoint = 'dsgc.tencentcloudapi.com'
|
27
|
+
sdk_version = 'DSGC_' + 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 CreateDSPADbMetaResources.
|
35
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateDSPADbMetaResourcesRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateDSPADbMetaResourcesResponse`
|
37
|
+
def CreateDSPADbMetaResources(request)
|
38
|
+
body = send_request('CreateDSPADbMetaResources', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = CreateDSPADbMetaResourcesResponse.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,138 @@
|
|
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 Dsgc
|
19
|
+
module V20190723
|
20
|
+
# CreateDSPADbMetaResources请求参数结构体
|
21
|
+
class CreateDSPADbMetaResourcesRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param DspaId: DSPA实例ID。
|
23
|
+
# @type DspaId: String
|
24
|
+
# @param MetaType: 资源类型,支持:cdb(云数据库 MySQL)、dcdb(TDSQL MySQL版)、mariadb(云数据库 MariaDB)、postgres(云数据库 PostgreSQL)、cynosdbpg(TDSQL-C PostgreSQL版)、cynosdbmysql(TDSQL-C MySQL版)
|
25
|
+
# @type MetaType: String
|
26
|
+
# @param ResourceRegion: 资源所处地域。
|
27
|
+
# @type ResourceRegion: String
|
28
|
+
# @param UpdateStatus: 用来标记本次更新是否已经是最后一次,可选值:continue(后续还需要更新)、finished(本次是最后一次更新)。
|
29
|
+
# @type UpdateStatus: String
|
30
|
+
# @param UpdateId: 本次更新的ID号,用来标记一次完整的更新过程。
|
31
|
+
# @type UpdateId: String
|
32
|
+
# @param Items: 云上资源列表。
|
33
|
+
# @type Items: Array
|
34
|
+
|
35
|
+
attr_accessor :DspaId, :MetaType, :ResourceRegion, :UpdateStatus, :UpdateId, :Items
|
36
|
+
|
37
|
+
def initialize(dspaid=nil, metatype=nil, resourceregion=nil, updatestatus=nil, updateid=nil, items=nil)
|
38
|
+
@DspaId = dspaid
|
39
|
+
@MetaType = metatype
|
40
|
+
@ResourceRegion = resourceregion
|
41
|
+
@UpdateStatus = updatestatus
|
42
|
+
@UpdateId = updateid
|
43
|
+
@Items = items
|
44
|
+
end
|
45
|
+
|
46
|
+
def deserialize(params)
|
47
|
+
@DspaId = params['DspaId']
|
48
|
+
@MetaType = params['MetaType']
|
49
|
+
@ResourceRegion = params['ResourceRegion']
|
50
|
+
@UpdateStatus = params['UpdateStatus']
|
51
|
+
@UpdateId = params['UpdateId']
|
52
|
+
unless params['Items'].nil?
|
53
|
+
@Items = []
|
54
|
+
params['Items'].each do |i|
|
55
|
+
dspacloudresourcemeta_tmp = DspaCloudResourceMeta.new
|
56
|
+
dspacloudresourcemeta_tmp.deserialize(i)
|
57
|
+
@Items << dspacloudresourcemeta_tmp
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# CreateDSPADbMetaResources返回参数结构体
|
64
|
+
class CreateDSPADbMetaResourcesResponse < TencentCloud::Common::AbstractModel
|
65
|
+
# @param UpdateId: 本次更新的ID号,用来标记一次完整的更新过程。
|
66
|
+
# @type UpdateId: String
|
67
|
+
# @param MetaType: 资源类型,支持:cdb(云数据库 MySQL)、dcdb(TDSQL MySQL版)、mariadb(云数据库 MariaDB)、postgres(云数据库 PostgreSQL)、cynosdbpg(TDSQL-C PostgreSQL版)、cynosdbmysql(TDSQL-C MySQL版)
|
68
|
+
# @type MetaType: String
|
69
|
+
# @param DspaId: DSPA实例ID。
|
70
|
+
# @type DspaId: String
|
71
|
+
# @param ResourceRegion: 资源所处地域。
|
72
|
+
# @type ResourceRegion: String
|
73
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
74
|
+
# @type RequestId: String
|
75
|
+
|
76
|
+
attr_accessor :UpdateId, :MetaType, :DspaId, :ResourceRegion, :RequestId
|
77
|
+
|
78
|
+
def initialize(updateid=nil, metatype=nil, dspaid=nil, resourceregion=nil, requestid=nil)
|
79
|
+
@UpdateId = updateid
|
80
|
+
@MetaType = metatype
|
81
|
+
@DspaId = dspaid
|
82
|
+
@ResourceRegion = resourceregion
|
83
|
+
@RequestId = requestid
|
84
|
+
end
|
85
|
+
|
86
|
+
def deserialize(params)
|
87
|
+
@UpdateId = params['UpdateId']
|
88
|
+
@MetaType = params['MetaType']
|
89
|
+
@DspaId = params['DspaId']
|
90
|
+
@ResourceRegion = params['ResourceRegion']
|
91
|
+
@RequestId = params['RequestId']
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# 云上资源元数据
|
96
|
+
class DspaCloudResourceMeta < TencentCloud::Common::AbstractModel
|
97
|
+
# @param ResourceId: 用户资源ID。
|
98
|
+
# @type ResourceId: String
|
99
|
+
# @param ResourceName: 资源名称。
|
100
|
+
# @type ResourceName: String
|
101
|
+
# @param ResourceVip: 资源VIP。
|
102
|
+
# @type ResourceVip: String
|
103
|
+
# @param ResourceVPort: 资源端口。
|
104
|
+
# @type ResourceVPort: Integer
|
105
|
+
# @param ResourceCreateTime: 资源被创建时间。
|
106
|
+
# @type ResourceCreateTime: String
|
107
|
+
# @param ResourceUniqueVpcId: 用户资源VPC ID 字符串。
|
108
|
+
# @type ResourceUniqueVpcId: String
|
109
|
+
# @param ResourceUniqueSubnetId: 用户资源Subnet ID 字符串。
|
110
|
+
# @type ResourceUniqueSubnetId: String
|
111
|
+
|
112
|
+
attr_accessor :ResourceId, :ResourceName, :ResourceVip, :ResourceVPort, :ResourceCreateTime, :ResourceUniqueVpcId, :ResourceUniqueSubnetId
|
113
|
+
|
114
|
+
def initialize(resourceid=nil, resourcename=nil, resourcevip=nil, resourcevport=nil, resourcecreatetime=nil, resourceuniquevpcid=nil, resourceuniquesubnetid=nil)
|
115
|
+
@ResourceId = resourceid
|
116
|
+
@ResourceName = resourcename
|
117
|
+
@ResourceVip = resourcevip
|
118
|
+
@ResourceVPort = resourcevport
|
119
|
+
@ResourceCreateTime = resourcecreatetime
|
120
|
+
@ResourceUniqueVpcId = resourceuniquevpcid
|
121
|
+
@ResourceUniqueSubnetId = resourceuniquesubnetid
|
122
|
+
end
|
123
|
+
|
124
|
+
def deserialize(params)
|
125
|
+
@ResourceId = params['ResourceId']
|
126
|
+
@ResourceName = params['ResourceName']
|
127
|
+
@ResourceVip = params['ResourceVip']
|
128
|
+
@ResourceVPort = params['ResourceVPort']
|
129
|
+
@ResourceCreateTime = params['ResourceCreateTime']
|
130
|
+
@ResourceUniqueVpcId = params['ResourceUniqueVpcId']
|
131
|
+
@ResourceUniqueSubnetId = params['ResourceUniqueSubnetId']
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-dsgc
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.0.642
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tencent Cloud
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-08-23 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
|
+
DSGC.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/tencentcloud-sdk-dsgc.rb
|
37
|
+
- lib/v20190723/client.rb
|
38
|
+
- lib/v20190723/models.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-dsgc
|
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 - DSGC
|
66
|
+
test_files: []
|