tencentcloud-sdk-msp 1.0.200
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-msp.rb +11 -0
- data/lib/v20180319/client.rb +204 -0
- data/lib/v20180319/models.rb +543 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e0c6132a365abe06da06474763d962ad6ac2843a
|
4
|
+
data.tar.gz: 6872415976e76223e2d19520f9ac81011cf9c992
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6d67b5c77e8eba1671d39140496142389cb39239dafd57671fba0d2ef61ba4c99eeabac7f708fd40ef1b0972ef90d86c50ea32a7648847bb2a52ccc4b92bece0
|
7
|
+
data.tar.gz: 1a1eb4034c3178119066d0af74767dd07944cba64fdc3beb3e4d2b8dbfef853e7018e6b0d972e983805e2aa0803dbb97188dd8344bb8b8f34de0228a0d2f63cf
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.200
|
@@ -0,0 +1,204 @@
|
|
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 Msp
|
21
|
+
module V20180319
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2018-03-19'
|
26
|
+
api_endpoint = 'msp.tencentcloudapi.com'
|
27
|
+
sdk_version = 'MSP_' + 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 DeregisterMigrationTask.
|
35
|
+
# @type request: :class:`Tencentcloud::msp::V20180319::DeregisterMigrationTaskRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::msp::V20180319::DeregisterMigrationTaskResponse`
|
37
|
+
def DeregisterMigrationTask(request)
|
38
|
+
body = send_request('DeregisterMigrationTask', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = DeregisterMigrationTaskResponse.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 DescribeMigrationTask.
|
59
|
+
# @type request: :class:`Tencentcloud::msp::V20180319::DescribeMigrationTaskRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::msp::V20180319::DescribeMigrationTaskResponse`
|
61
|
+
def DescribeMigrationTask(request)
|
62
|
+
body = send_request('DescribeMigrationTask', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = DescribeMigrationTaskResponse.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 ListMigrationProject.
|
83
|
+
# @type request: :class:`Tencentcloud::msp::V20180319::ListMigrationProjectRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::msp::V20180319::ListMigrationProjectResponse`
|
85
|
+
def ListMigrationProject(request)
|
86
|
+
body = send_request('ListMigrationProject', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = ListMigrationProjectResponse.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 ListMigrationTask.
|
107
|
+
# @type request: :class:`Tencentcloud::msp::V20180319::ListMigrationTaskRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::msp::V20180319::ListMigrationTaskResponse`
|
109
|
+
def ListMigrationTask(request)
|
110
|
+
body = send_request('ListMigrationTask', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = ListMigrationTaskResponse.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
|
+
# 更改迁移任务所属项目
|
129
|
+
|
130
|
+
# @param request: Request instance for ModifyMigrationTaskBelongToProject.
|
131
|
+
# @type request: :class:`Tencentcloud::msp::V20180319::ModifyMigrationTaskBelongToProjectRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::msp::V20180319::ModifyMigrationTaskBelongToProjectResponse`
|
133
|
+
def ModifyMigrationTaskBelongToProject(request)
|
134
|
+
body = send_request('ModifyMigrationTaskBelongToProject', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = ModifyMigrationTaskBelongToProjectResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
152
|
+
# 更新迁移任务状态
|
153
|
+
|
154
|
+
# @param request: Request instance for ModifyMigrationTaskStatus.
|
155
|
+
# @type request: :class:`Tencentcloud::msp::V20180319::ModifyMigrationTaskStatusRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::msp::V20180319::ModifyMigrationTaskStatusResponse`
|
157
|
+
def ModifyMigrationTaskStatus(request)
|
158
|
+
body = send_request('ModifyMigrationTaskStatus', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = ModifyMigrationTaskStatusResponse.new
|
162
|
+
model.deserialize(response['Response'])
|
163
|
+
model
|
164
|
+
else
|
165
|
+
code = response['Response']['Error']['Code']
|
166
|
+
message = response['Response']['Error']['Message']
|
167
|
+
reqid = response['Response']['RequestId']
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
+
end
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
+
raise e
|
172
|
+
rescue StandardError => e
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
+
end
|
175
|
+
|
176
|
+
# 注册迁移任务
|
177
|
+
|
178
|
+
# @param request: Request instance for RegisterMigrationTask.
|
179
|
+
# @type request: :class:`Tencentcloud::msp::V20180319::RegisterMigrationTaskRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::msp::V20180319::RegisterMigrationTaskResponse`
|
181
|
+
def RegisterMigrationTask(request)
|
182
|
+
body = send_request('RegisterMigrationTask', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = RegisterMigrationTaskResponse.new
|
186
|
+
model.deserialize(response['Response'])
|
187
|
+
model
|
188
|
+
else
|
189
|
+
code = response['Response']['Error']['Code']
|
190
|
+
message = response['Response']['Error']['Message']
|
191
|
+
reqid = response['Response']['RequestId']
|
192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
193
|
+
end
|
194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
195
|
+
raise e
|
196
|
+
rescue StandardError => e
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
|
+
end
|
199
|
+
|
200
|
+
|
201
|
+
end
|
202
|
+
end
|
203
|
+
end
|
204
|
+
end
|
@@ -0,0 +1,543 @@
|
|
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 Msp
|
19
|
+
module V20180319
|
20
|
+
# DeregisterMigrationTask请求参数结构体
|
21
|
+
class DeregisterMigrationTaskRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param TaskId: 任务ID
|
23
|
+
# @type TaskId: String
|
24
|
+
|
25
|
+
attr_accessor :TaskId
|
26
|
+
|
27
|
+
def initialize(taskid=nil)
|
28
|
+
@TaskId = taskid
|
29
|
+
end
|
30
|
+
|
31
|
+
def deserialize(params)
|
32
|
+
@TaskId = params['TaskId']
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
# DeregisterMigrationTask返回参数结构体
|
37
|
+
class DeregisterMigrationTaskResponse < TencentCloud::Common::AbstractModel
|
38
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
39
|
+
# @type RequestId: String
|
40
|
+
|
41
|
+
attr_accessor :RequestId
|
42
|
+
|
43
|
+
def initialize(requestid=nil)
|
44
|
+
@RequestId = requestid
|
45
|
+
end
|
46
|
+
|
47
|
+
def deserialize(params)
|
48
|
+
@RequestId = params['RequestId']
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
# DescribeMigrationTask请求参数结构体
|
53
|
+
class DescribeMigrationTaskRequest < TencentCloud::Common::AbstractModel
|
54
|
+
# @param TaskId: 任务ID,例如msp-jitoh33n
|
55
|
+
# @type TaskId: String
|
56
|
+
|
57
|
+
attr_accessor :TaskId
|
58
|
+
|
59
|
+
def initialize(taskid=nil)
|
60
|
+
@TaskId = taskid
|
61
|
+
end
|
62
|
+
|
63
|
+
def deserialize(params)
|
64
|
+
@TaskId = params['TaskId']
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# DescribeMigrationTask返回参数结构体
|
69
|
+
class DescribeMigrationTaskResponse < TencentCloud::Common::AbstractModel
|
70
|
+
# @param TaskStatus: 迁移详情列表
|
71
|
+
# @type TaskStatus: Array
|
72
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
73
|
+
# @type RequestId: String
|
74
|
+
|
75
|
+
attr_accessor :TaskStatus, :RequestId
|
76
|
+
|
77
|
+
def initialize(taskstatus=nil, requestid=nil)
|
78
|
+
@TaskStatus = taskstatus
|
79
|
+
@RequestId = requestid
|
80
|
+
end
|
81
|
+
|
82
|
+
def deserialize(params)
|
83
|
+
unless params['TaskStatus'].nil?
|
84
|
+
@TaskStatus = []
|
85
|
+
params['TaskStatus'].each do |i|
|
86
|
+
taskstatus_tmp = TaskStatus.new
|
87
|
+
taskstatus_tmp.deserialize(i)
|
88
|
+
@TaskStatus << taskstatus_tmp
|
89
|
+
end
|
90
|
+
end
|
91
|
+
@RequestId = params['RequestId']
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# 迁移目的信息
|
96
|
+
class DstInfo < TencentCloud::Common::AbstractModel
|
97
|
+
# @param Region: 迁移目的地域
|
98
|
+
# @type Region: String
|
99
|
+
# @param Ip: 迁移目的Ip
|
100
|
+
# @type Ip: String
|
101
|
+
# @param Port: 迁移目的端口
|
102
|
+
# @type Port: String
|
103
|
+
# @param InstanceId: 迁移目的实例Id
|
104
|
+
# @type InstanceId: String
|
105
|
+
|
106
|
+
attr_accessor :Region, :Ip, :Port, :InstanceId
|
107
|
+
|
108
|
+
def initialize(region=nil, ip=nil, port=nil, instanceid=nil)
|
109
|
+
@Region = region
|
110
|
+
@Ip = ip
|
111
|
+
@Port = port
|
112
|
+
@InstanceId = instanceid
|
113
|
+
end
|
114
|
+
|
115
|
+
def deserialize(params)
|
116
|
+
@Region = params['Region']
|
117
|
+
@Ip = params['Ip']
|
118
|
+
@Port = params['Port']
|
119
|
+
@InstanceId = params['InstanceId']
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# ListMigrationProject请求参数结构体
|
124
|
+
class ListMigrationProjectRequest < TencentCloud::Common::AbstractModel
|
125
|
+
# @param Offset: 记录起始数,默认值为0
|
126
|
+
# @type Offset: Integer
|
127
|
+
# @param Limit: 返回条数,默认值为500
|
128
|
+
# @type Limit: Integer
|
129
|
+
|
130
|
+
attr_accessor :Offset, :Limit
|
131
|
+
|
132
|
+
def initialize(offset=nil, limit=nil)
|
133
|
+
@Offset = offset
|
134
|
+
@Limit = limit
|
135
|
+
end
|
136
|
+
|
137
|
+
def deserialize(params)
|
138
|
+
@Offset = params['Offset']
|
139
|
+
@Limit = params['Limit']
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
# ListMigrationProject返回参数结构体
|
144
|
+
class ListMigrationProjectResponse < TencentCloud::Common::AbstractModel
|
145
|
+
# @param Projects: 项目列表
|
146
|
+
# @type Projects: Array
|
147
|
+
# @param TotalCount: 项目总数
|
148
|
+
# @type TotalCount: Integer
|
149
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
150
|
+
# @type RequestId: String
|
151
|
+
|
152
|
+
attr_accessor :Projects, :TotalCount, :RequestId
|
153
|
+
|
154
|
+
def initialize(projects=nil, totalcount=nil, requestid=nil)
|
155
|
+
@Projects = projects
|
156
|
+
@TotalCount = totalcount
|
157
|
+
@RequestId = requestid
|
158
|
+
end
|
159
|
+
|
160
|
+
def deserialize(params)
|
161
|
+
unless params['Projects'].nil?
|
162
|
+
@Projects = []
|
163
|
+
params['Projects'].each do |i|
|
164
|
+
project_tmp = Project.new
|
165
|
+
project_tmp.deserialize(i)
|
166
|
+
@Projects << project_tmp
|
167
|
+
end
|
168
|
+
end
|
169
|
+
@TotalCount = params['TotalCount']
|
170
|
+
@RequestId = params['RequestId']
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
# ListMigrationTask请求参数结构体
|
175
|
+
class ListMigrationTaskRequest < TencentCloud::Common::AbstractModel
|
176
|
+
# @param Offset: 记录起始数,默认值为0
|
177
|
+
# @type Offset: Integer
|
178
|
+
# @param Limit: 记录条数,默认值为10
|
179
|
+
# @type Limit: Integer
|
180
|
+
# @param ProjectId: 项目ID,默认值为空
|
181
|
+
# @type ProjectId: Integer
|
182
|
+
|
183
|
+
attr_accessor :Offset, :Limit, :ProjectId
|
184
|
+
|
185
|
+
def initialize(offset=nil, limit=nil, projectid=nil)
|
186
|
+
@Offset = offset
|
187
|
+
@Limit = limit
|
188
|
+
@ProjectId = projectid
|
189
|
+
end
|
190
|
+
|
191
|
+
def deserialize(params)
|
192
|
+
@Offset = params['Offset']
|
193
|
+
@Limit = params['Limit']
|
194
|
+
@ProjectId = params['ProjectId']
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
# ListMigrationTask返回参数结构体
|
199
|
+
class ListMigrationTaskResponse < TencentCloud::Common::AbstractModel
|
200
|
+
# @param TotalCount: 记录总条数
|
201
|
+
# @type TotalCount: Integer
|
202
|
+
# @param Tasks: 迁移任务列表
|
203
|
+
# @type Tasks: Array
|
204
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
205
|
+
# @type RequestId: String
|
206
|
+
|
207
|
+
attr_accessor :TotalCount, :Tasks, :RequestId
|
208
|
+
|
209
|
+
def initialize(totalcount=nil, tasks=nil, requestid=nil)
|
210
|
+
@TotalCount = totalcount
|
211
|
+
@Tasks = tasks
|
212
|
+
@RequestId = requestid
|
213
|
+
end
|
214
|
+
|
215
|
+
def deserialize(params)
|
216
|
+
@TotalCount = params['TotalCount']
|
217
|
+
unless params['Tasks'].nil?
|
218
|
+
@Tasks = []
|
219
|
+
params['Tasks'].each do |i|
|
220
|
+
task_tmp = Task.new
|
221
|
+
task_tmp.deserialize(i)
|
222
|
+
@Tasks << task_tmp
|
223
|
+
end
|
224
|
+
end
|
225
|
+
@RequestId = params['RequestId']
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
# ModifyMigrationTaskBelongToProject请求参数结构体
|
230
|
+
class ModifyMigrationTaskBelongToProjectRequest < TencentCloud::Common::AbstractModel
|
231
|
+
# @param TaskId: 任务ID,例如msp-jitoh33n
|
232
|
+
# @type TaskId: String
|
233
|
+
# @param ProjectId: 项目ID,例如10005
|
234
|
+
# @type ProjectId: Integer
|
235
|
+
|
236
|
+
attr_accessor :TaskId, :ProjectId
|
237
|
+
|
238
|
+
def initialize(taskid=nil, projectid=nil)
|
239
|
+
@TaskId = taskid
|
240
|
+
@ProjectId = projectid
|
241
|
+
end
|
242
|
+
|
243
|
+
def deserialize(params)
|
244
|
+
@TaskId = params['TaskId']
|
245
|
+
@ProjectId = params['ProjectId']
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
# ModifyMigrationTaskBelongToProject返回参数结构体
|
250
|
+
class ModifyMigrationTaskBelongToProjectResponse < TencentCloud::Common::AbstractModel
|
251
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
252
|
+
# @type RequestId: String
|
253
|
+
|
254
|
+
attr_accessor :RequestId
|
255
|
+
|
256
|
+
def initialize(requestid=nil)
|
257
|
+
@RequestId = requestid
|
258
|
+
end
|
259
|
+
|
260
|
+
def deserialize(params)
|
261
|
+
@RequestId = params['RequestId']
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
# ModifyMigrationTaskStatus请求参数结构体
|
266
|
+
class ModifyMigrationTaskStatusRequest < TencentCloud::Common::AbstractModel
|
267
|
+
# @param Status: 任务状态,取值为unstart,migrating,finish,fail之一,分别代表该迁移任务状态为迁移未开始,迁移中,迁移完成,迁移失败
|
268
|
+
# @type Status: String
|
269
|
+
# @param TaskId: 任务ID,例如msp-jitoh33n
|
270
|
+
# @type TaskId: String
|
271
|
+
|
272
|
+
attr_accessor :Status, :TaskId
|
273
|
+
|
274
|
+
def initialize(status=nil, taskid=nil)
|
275
|
+
@Status = status
|
276
|
+
@TaskId = taskid
|
277
|
+
end
|
278
|
+
|
279
|
+
def deserialize(params)
|
280
|
+
@Status = params['Status']
|
281
|
+
@TaskId = params['TaskId']
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
# ModifyMigrationTaskStatus返回参数结构体
|
286
|
+
class ModifyMigrationTaskStatusResponse < TencentCloud::Common::AbstractModel
|
287
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
288
|
+
# @type RequestId: String
|
289
|
+
|
290
|
+
attr_accessor :RequestId
|
291
|
+
|
292
|
+
def initialize(requestid=nil)
|
293
|
+
@RequestId = requestid
|
294
|
+
end
|
295
|
+
|
296
|
+
def deserialize(params)
|
297
|
+
@RequestId = params['RequestId']
|
298
|
+
end
|
299
|
+
end
|
300
|
+
|
301
|
+
# 列表类型
|
302
|
+
class Project < TencentCloud::Common::AbstractModel
|
303
|
+
# @param ProjectId: 项目ID
|
304
|
+
# @type ProjectId: Integer
|
305
|
+
# @param ProjectName: 项目名称
|
306
|
+
# @type ProjectName: String
|
307
|
+
|
308
|
+
attr_accessor :ProjectId, :ProjectName
|
309
|
+
|
310
|
+
def initialize(projectid=nil, projectname=nil)
|
311
|
+
@ProjectId = projectid
|
312
|
+
@ProjectName = projectname
|
313
|
+
end
|
314
|
+
|
315
|
+
def deserialize(params)
|
316
|
+
@ProjectId = params['ProjectId']
|
317
|
+
@ProjectName = params['ProjectName']
|
318
|
+
end
|
319
|
+
end
|
320
|
+
|
321
|
+
# RegisterMigrationTask请求参数结构体
|
322
|
+
class RegisterMigrationTaskRequest < TencentCloud::Common::AbstractModel
|
323
|
+
# @param TaskType: 任务类型,取值database(数据库迁移)、file(文件迁移)、host(主机迁移)
|
324
|
+
# @type TaskType: String
|
325
|
+
# @param TaskName: 任务名称
|
326
|
+
# @type TaskName: String
|
327
|
+
# @param ServiceSupplier: 服务提供商名称
|
328
|
+
# @type ServiceSupplier: String
|
329
|
+
# @param CreateTime: 迁移任务创建时间
|
330
|
+
# @type CreateTime: String
|
331
|
+
# @param UpdateTime: 迁移任务更新时间
|
332
|
+
# @type UpdateTime: String
|
333
|
+
# @param MigrateClass: 迁移类别,如数据库迁移中mysql:mysql代表从mysql迁移到mysql,文件迁移中oss:cos代表从阿里云oss迁移到腾讯云cos
|
334
|
+
# @type MigrateClass: String
|
335
|
+
# @param SrcInfo: 迁移任务源信息
|
336
|
+
# @type SrcInfo: :class:`Tencentcloud::Msp.v20180319.models.SrcInfo`
|
337
|
+
# @param DstInfo: 迁移任务目的信息
|
338
|
+
# @type DstInfo: :class:`Tencentcloud::Msp.v20180319.models.DstInfo`
|
339
|
+
# @param SrcAccessType: 源实例接入类型,数据库迁移时填写值为:extranet(外网),cvm(cvm自建实例),dcg(专线接入的实例),vpncloud(云vpn接入的实例),vpnselfbuild(自建vpn接入的实例),cdb(云上cdb实例)
|
340
|
+
# @type SrcAccessType: String
|
341
|
+
# @param SrcDatabaseType: 源实例数据库类型,数据库迁移时填写,取值为mysql,redis,percona,mongodb,postgresql,sqlserver,mariadb 之一
|
342
|
+
# @type SrcDatabaseType: String
|
343
|
+
# @param DstAccessType: 目标实例接入类型,数据库迁移时填写值为:extranet(外网),cvm(cvm自建实例),dcg(专线接入的实例),vpncloud(云vpn接入的实例),vpnselfbuild(自建vpn接入的实例),cdb(云上cdb实例)
|
344
|
+
# @type DstAccessType: String
|
345
|
+
# @param DstDatabaseType: 目标实例数据库类型,数据库迁移时填写,取值为mysql,redis,percona,mongodb,postgresql,sqlserver,mariadb 之一
|
346
|
+
# @type DstDatabaseType: String
|
347
|
+
|
348
|
+
attr_accessor :TaskType, :TaskName, :ServiceSupplier, :CreateTime, :UpdateTime, :MigrateClass, :SrcInfo, :DstInfo, :SrcAccessType, :SrcDatabaseType, :DstAccessType, :DstDatabaseType
|
349
|
+
|
350
|
+
def initialize(tasktype=nil, taskname=nil, servicesupplier=nil, createtime=nil, updatetime=nil, migrateclass=nil, srcinfo=nil, dstinfo=nil, srcaccesstype=nil, srcdatabasetype=nil, dstaccesstype=nil, dstdatabasetype=nil)
|
351
|
+
@TaskType = tasktype
|
352
|
+
@TaskName = taskname
|
353
|
+
@ServiceSupplier = servicesupplier
|
354
|
+
@CreateTime = createtime
|
355
|
+
@UpdateTime = updatetime
|
356
|
+
@MigrateClass = migrateclass
|
357
|
+
@SrcInfo = srcinfo
|
358
|
+
@DstInfo = dstinfo
|
359
|
+
@SrcAccessType = srcaccesstype
|
360
|
+
@SrcDatabaseType = srcdatabasetype
|
361
|
+
@DstAccessType = dstaccesstype
|
362
|
+
@DstDatabaseType = dstdatabasetype
|
363
|
+
end
|
364
|
+
|
365
|
+
def deserialize(params)
|
366
|
+
@TaskType = params['TaskType']
|
367
|
+
@TaskName = params['TaskName']
|
368
|
+
@ServiceSupplier = params['ServiceSupplier']
|
369
|
+
@CreateTime = params['CreateTime']
|
370
|
+
@UpdateTime = params['UpdateTime']
|
371
|
+
@MigrateClass = params['MigrateClass']
|
372
|
+
unless params['SrcInfo'].nil?
|
373
|
+
@SrcInfo = SrcInfo.new
|
374
|
+
@SrcInfo.deserialize(params['SrcInfo'])
|
375
|
+
end
|
376
|
+
unless params['DstInfo'].nil?
|
377
|
+
@DstInfo = DstInfo.new
|
378
|
+
@DstInfo.deserialize(params['DstInfo'])
|
379
|
+
end
|
380
|
+
@SrcAccessType = params['SrcAccessType']
|
381
|
+
@SrcDatabaseType = params['SrcDatabaseType']
|
382
|
+
@DstAccessType = params['DstAccessType']
|
383
|
+
@DstDatabaseType = params['DstDatabaseType']
|
384
|
+
end
|
385
|
+
end
|
386
|
+
|
387
|
+
# RegisterMigrationTask返回参数结构体
|
388
|
+
class RegisterMigrationTaskResponse < TencentCloud::Common::AbstractModel
|
389
|
+
# @param TaskId: 任务ID
|
390
|
+
# @type TaskId: String
|
391
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
392
|
+
# @type RequestId: String
|
393
|
+
|
394
|
+
attr_accessor :TaskId, :RequestId
|
395
|
+
|
396
|
+
def initialize(taskid=nil, requestid=nil)
|
397
|
+
@TaskId = taskid
|
398
|
+
@RequestId = requestid
|
399
|
+
end
|
400
|
+
|
401
|
+
def deserialize(params)
|
402
|
+
@TaskId = params['TaskId']
|
403
|
+
@RequestId = params['RequestId']
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
407
|
+
# 迁移源信息
|
408
|
+
class SrcInfo < TencentCloud::Common::AbstractModel
|
409
|
+
# @param Region: 迁移源地域
|
410
|
+
# @type Region: String
|
411
|
+
# @param Ip: 迁移源Ip
|
412
|
+
# @type Ip: String
|
413
|
+
# @param Port: 迁移源端口
|
414
|
+
# @type Port: String
|
415
|
+
# @param InstanceId: 迁移源实例Id
|
416
|
+
# @type InstanceId: String
|
417
|
+
|
418
|
+
attr_accessor :Region, :Ip, :Port, :InstanceId
|
419
|
+
|
420
|
+
def initialize(region=nil, ip=nil, port=nil, instanceid=nil)
|
421
|
+
@Region = region
|
422
|
+
@Ip = ip
|
423
|
+
@Port = port
|
424
|
+
@InstanceId = instanceid
|
425
|
+
end
|
426
|
+
|
427
|
+
def deserialize(params)
|
428
|
+
@Region = params['Region']
|
429
|
+
@Ip = params['Ip']
|
430
|
+
@Port = params['Port']
|
431
|
+
@InstanceId = params['InstanceId']
|
432
|
+
end
|
433
|
+
end
|
434
|
+
|
435
|
+
# 迁移任务类别
|
436
|
+
class Task < TencentCloud::Common::AbstractModel
|
437
|
+
# @param TaskId: 任务Id
|
438
|
+
# @type TaskId: String
|
439
|
+
# @param TaskName: 任务名称
|
440
|
+
# @type TaskName: String
|
441
|
+
# @param MigrationType: 迁移类型
|
442
|
+
# @type MigrationType: String
|
443
|
+
# @param Status: 迁移状态
|
444
|
+
# @type Status: String
|
445
|
+
# @param ProjectId: 项目Id
|
446
|
+
# @type ProjectId: Integer
|
447
|
+
# @param ProjectName: 项目名称
|
448
|
+
# @type ProjectName: String
|
449
|
+
# @param SrcInfo: 迁移源信息
|
450
|
+
# @type SrcInfo: :class:`Tencentcloud::Msp.v20180319.models.SrcInfo`
|
451
|
+
# @param MigrationTimeLine: 迁移时间信息
|
452
|
+
# @type MigrationTimeLine: :class:`Tencentcloud::Msp.v20180319.models.TimeObj`
|
453
|
+
# @param Updated: 状态更新时间
|
454
|
+
# @type Updated: String
|
455
|
+
# @param DstInfo: 迁移目的信息
|
456
|
+
# @type DstInfo: :class:`Tencentcloud::Msp.v20180319.models.DstInfo`
|
457
|
+
|
458
|
+
attr_accessor :TaskId, :TaskName, :MigrationType, :Status, :ProjectId, :ProjectName, :SrcInfo, :MigrationTimeLine, :Updated, :DstInfo
|
459
|
+
|
460
|
+
def initialize(taskid=nil, taskname=nil, migrationtype=nil, status=nil, projectid=nil, projectname=nil, srcinfo=nil, migrationtimeline=nil, updated=nil, dstinfo=nil)
|
461
|
+
@TaskId = taskid
|
462
|
+
@TaskName = taskname
|
463
|
+
@MigrationType = migrationtype
|
464
|
+
@Status = status
|
465
|
+
@ProjectId = projectid
|
466
|
+
@ProjectName = projectname
|
467
|
+
@SrcInfo = srcinfo
|
468
|
+
@MigrationTimeLine = migrationtimeline
|
469
|
+
@Updated = updated
|
470
|
+
@DstInfo = dstinfo
|
471
|
+
end
|
472
|
+
|
473
|
+
def deserialize(params)
|
474
|
+
@TaskId = params['TaskId']
|
475
|
+
@TaskName = params['TaskName']
|
476
|
+
@MigrationType = params['MigrationType']
|
477
|
+
@Status = params['Status']
|
478
|
+
@ProjectId = params['ProjectId']
|
479
|
+
@ProjectName = params['ProjectName']
|
480
|
+
unless params['SrcInfo'].nil?
|
481
|
+
@SrcInfo = SrcInfo.new
|
482
|
+
@SrcInfo.deserialize(params['SrcInfo'])
|
483
|
+
end
|
484
|
+
unless params['MigrationTimeLine'].nil?
|
485
|
+
@MigrationTimeLine = TimeObj.new
|
486
|
+
@MigrationTimeLine.deserialize(params['MigrationTimeLine'])
|
487
|
+
end
|
488
|
+
@Updated = params['Updated']
|
489
|
+
unless params['DstInfo'].nil?
|
490
|
+
@DstInfo = DstInfo.new
|
491
|
+
@DstInfo.deserialize(params['DstInfo'])
|
492
|
+
end
|
493
|
+
end
|
494
|
+
end
|
495
|
+
|
496
|
+
# 迁移详情列表
|
497
|
+
class TaskStatus < TencentCloud::Common::AbstractModel
|
498
|
+
# @param Status: 迁移状态
|
499
|
+
# @type Status: String
|
500
|
+
# @param Progress: 迁移进度
|
501
|
+
# @type Progress: String
|
502
|
+
# @param UpdateTime: 迁移日期
|
503
|
+
# @type UpdateTime: String
|
504
|
+
|
505
|
+
attr_accessor :Status, :Progress, :UpdateTime
|
506
|
+
|
507
|
+
def initialize(status=nil, progress=nil, updatetime=nil)
|
508
|
+
@Status = status
|
509
|
+
@Progress = progress
|
510
|
+
@UpdateTime = updatetime
|
511
|
+
end
|
512
|
+
|
513
|
+
def deserialize(params)
|
514
|
+
@Status = params['Status']
|
515
|
+
@Progress = params['Progress']
|
516
|
+
@UpdateTime = params['UpdateTime']
|
517
|
+
end
|
518
|
+
end
|
519
|
+
|
520
|
+
# 时间对象
|
521
|
+
class TimeObj < TencentCloud::Common::AbstractModel
|
522
|
+
# @param CreateTime: 创建时间
|
523
|
+
# @type CreateTime: String
|
524
|
+
# @param EndTime: 结束时间
|
525
|
+
# @type EndTime: String
|
526
|
+
|
527
|
+
attr_accessor :CreateTime, :EndTime
|
528
|
+
|
529
|
+
def initialize(createtime=nil, endtime=nil)
|
530
|
+
@CreateTime = createtime
|
531
|
+
@EndTime = endtime
|
532
|
+
end
|
533
|
+
|
534
|
+
def deserialize(params)
|
535
|
+
@CreateTime = params['CreateTime']
|
536
|
+
@EndTime = params['EndTime']
|
537
|
+
end
|
538
|
+
end
|
539
|
+
|
540
|
+
end
|
541
|
+
end
|
542
|
+
end
|
543
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-msp
|
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
|
+
MSP.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/VERSION
|
37
|
+
- lib/tencentcloud-sdk-msp.rb
|
38
|
+
- lib/v20180319/client.rb
|
39
|
+
- lib/v20180319/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-msp
|
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 - MSP
|
66
|
+
test_files: []
|