tencentcloud-sdk-smh 1.0.254
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-smh.rb +11 -0
- data/lib/v20210712/client.rb +276 -0
- data/lib/v20210712/models.rb +759 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6afeb57e2a2eb29da281b557705f6e8ff9469ddc
|
4
|
+
data.tar.gz: 7afa283c905af9251ef770b34553ed65aca9a9ab
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 95dfa6b82d79b0361737b035b4f3379ff7da34b614c88db67921b2d8679973eb73648f687dee3925a56049f36605d8525d6a12f33b26661f2acf39842939bf02
|
7
|
+
data.tar.gz: 6488038ecafe9f2933e6c0049620642d8a4d869d0ae9e6510c79ef0eece6a53578a76bd9f4147f2180158fd25f612ab58f99ea2b6bf212ca2a0866dbe776e6ef
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.254
|
@@ -0,0 +1,276 @@
|
|
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 Smh
|
21
|
+
module V20210712
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2021-07-12'
|
26
|
+
api_endpoint = 'smh.tencentcloudapi.com'
|
27
|
+
sdk_version = 'SMH_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# 创建 PaaS 服务媒体库
|
33
|
+
|
34
|
+
# @param request: Request instance for CreateLibrary.
|
35
|
+
# @type request: :class:`Tencentcloud::smh::V20210712::CreateLibraryRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::smh::V20210712::CreateLibraryResponse`
|
37
|
+
def CreateLibrary(request)
|
38
|
+
body = send_request('CreateLibrary', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = CreateLibraryResponse.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
|
+
# 删除 PaaS 服务媒体库
|
57
|
+
|
58
|
+
# @param request: Request instance for DeleteLibrary.
|
59
|
+
# @type request: :class:`Tencentcloud::smh::V20210712::DeleteLibraryRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::smh::V20210712::DeleteLibraryResponse`
|
61
|
+
def DeleteLibrary(request)
|
62
|
+
body = send_request('DeleteLibrary', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = DeleteLibraryResponse.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
|
+
# 查询 PaaS 服务媒体库列表
|
81
|
+
|
82
|
+
# @param request: Request instance for DescribeLibraries.
|
83
|
+
# @type request: :class:`Tencentcloud::smh::V20210712::DescribeLibrariesRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::smh::V20210712::DescribeLibrariesResponse`
|
85
|
+
def DescribeLibraries(request)
|
86
|
+
body = send_request('DescribeLibraries', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = DescribeLibrariesResponse.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
|
+
# 查询 PaaS 服务媒体库密钥
|
105
|
+
|
106
|
+
# @param request: Request instance for DescribeLibrarySecret.
|
107
|
+
# @type request: :class:`Tencentcloud::smh::V20210712::DescribeLibrarySecretRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::smh::V20210712::DescribeLibrarySecretResponse`
|
109
|
+
def DescribeLibrarySecret(request)
|
110
|
+
body = send_request('DescribeLibrarySecret', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = DescribeLibrarySecretResponse.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 DescribeOfficialInstances.
|
131
|
+
# @type request: :class:`Tencentcloud::smh::V20210712::DescribeOfficialInstancesRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::smh::V20210712::DescribeOfficialInstancesResponse`
|
133
|
+
def DescribeOfficialInstances(request)
|
134
|
+
body = send_request('DescribeOfficialInstances', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = DescribeOfficialInstancesResponse.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 DescribeOfficialOverview.
|
155
|
+
# @type request: :class:`Tencentcloud::smh::V20210712::DescribeOfficialOverviewRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::smh::V20210712::DescribeOfficialOverviewResponse`
|
157
|
+
def DescribeOfficialOverview(request)
|
158
|
+
body = send_request('DescribeOfficialOverview', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = DescribeOfficialOverviewResponse.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 DescribeTrafficPackages.
|
179
|
+
# @type request: :class:`Tencentcloud::smh::V20210712::DescribeTrafficPackagesRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::smh::V20210712::DescribeTrafficPackagesResponse`
|
181
|
+
def DescribeTrafficPackages(request)
|
182
|
+
body = send_request('DescribeTrafficPackages', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = DescribeTrafficPackagesResponse.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
|
+
# 修改 PaaS 服务媒体库配置项
|
201
|
+
|
202
|
+
# @param request: Request instance for ModifyLibrary.
|
203
|
+
# @type request: :class:`Tencentcloud::smh::V20210712::ModifyLibraryRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::smh::V20210712::ModifyLibraryResponse`
|
205
|
+
def ModifyLibrary(request)
|
206
|
+
body = send_request('ModifyLibrary', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = ModifyLibraryResponse.new
|
210
|
+
model.deserialize(response['Response'])
|
211
|
+
model
|
212
|
+
else
|
213
|
+
code = response['Response']['Error']['Code']
|
214
|
+
message = response['Response']['Error']['Message']
|
215
|
+
reqid = response['Response']['RequestId']
|
216
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
217
|
+
end
|
218
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
219
|
+
raise e
|
220
|
+
rescue StandardError => e
|
221
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
|
+
end
|
223
|
+
|
224
|
+
# 发送用于换绑官方云盘实例的超级管理员账号的短信验证码
|
225
|
+
|
226
|
+
# @param request: Request instance for SendSmsCode.
|
227
|
+
# @type request: :class:`Tencentcloud::smh::V20210712::SendSmsCodeRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::smh::V20210712::SendSmsCodeResponse`
|
229
|
+
def SendSmsCode(request)
|
230
|
+
body = send_request('SendSmsCode', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = SendSmsCodeResponse.new
|
234
|
+
model.deserialize(response['Response'])
|
235
|
+
model
|
236
|
+
else
|
237
|
+
code = response['Response']['Error']['Code']
|
238
|
+
message = response['Response']['Error']['Message']
|
239
|
+
reqid = response['Response']['RequestId']
|
240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
241
|
+
end
|
242
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
243
|
+
raise e
|
244
|
+
rescue StandardError => e
|
245
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
|
+
end
|
247
|
+
|
248
|
+
# 验证短信验证码以换绑官方云盘实例的超级管理员账号
|
249
|
+
|
250
|
+
# @param request: Request instance for VerifySmsCode.
|
251
|
+
# @type request: :class:`Tencentcloud::smh::V20210712::VerifySmsCodeRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::smh::V20210712::VerifySmsCodeResponse`
|
253
|
+
def VerifySmsCode(request)
|
254
|
+
body = send_request('VerifySmsCode', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = VerifySmsCodeResponse.new
|
258
|
+
model.deserialize(response['Response'])
|
259
|
+
model
|
260
|
+
else
|
261
|
+
code = response['Response']['Error']['Code']
|
262
|
+
message = response['Response']['Error']['Message']
|
263
|
+
reqid = response['Response']['RequestId']
|
264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
+
end
|
266
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
+
raise e
|
268
|
+
rescue StandardError => e
|
269
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
+
end
|
271
|
+
|
272
|
+
|
273
|
+
end
|
274
|
+
end
|
275
|
+
end
|
276
|
+
end
|
@@ -0,0 +1,759 @@
|
|
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 Smh
|
19
|
+
module V20210712
|
20
|
+
# CreateLibrary请求参数结构体
|
21
|
+
class CreateLibraryRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param Name: 媒体库名称,最多 50 个字符
|
23
|
+
# @type Name: String
|
24
|
+
# @param BucketName: 存储桶全名,新建后不可更改
|
25
|
+
# @type BucketName: String
|
26
|
+
# @param BucketRegion: 存储桶所在地域,新建后不可更改
|
27
|
+
# @type BucketRegion: String
|
28
|
+
# @param LibraryExtension: 媒体库配置项,部分参数新建后不可更改
|
29
|
+
# @type LibraryExtension: :class:`Tencentcloud::Smh.v20210712.models.LibraryExtension`
|
30
|
+
# @param Remark: 备注,最多 250 个字符
|
31
|
+
# @type Remark: String
|
32
|
+
|
33
|
+
attr_accessor :Name, :BucketName, :BucketRegion, :LibraryExtension, :Remark
|
34
|
+
|
35
|
+
def initialize(name=nil, bucketname=nil, bucketregion=nil, libraryextension=nil, remark=nil)
|
36
|
+
@Name = name
|
37
|
+
@BucketName = bucketname
|
38
|
+
@BucketRegion = bucketregion
|
39
|
+
@LibraryExtension = libraryextension
|
40
|
+
@Remark = remark
|
41
|
+
end
|
42
|
+
|
43
|
+
def deserialize(params)
|
44
|
+
@Name = params['Name']
|
45
|
+
@BucketName = params['BucketName']
|
46
|
+
@BucketRegion = params['BucketRegion']
|
47
|
+
unless params['LibraryExtension'].nil?
|
48
|
+
@LibraryExtension = LibraryExtension.new
|
49
|
+
@LibraryExtension.deserialize(params['LibraryExtension'])
|
50
|
+
end
|
51
|
+
@Remark = params['Remark']
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
# CreateLibrary返回参数结构体
|
56
|
+
class CreateLibraryResponse < TencentCloud::Common::AbstractModel
|
57
|
+
# @param LibraryId: 媒体库 ID
|
58
|
+
# @type LibraryId: String
|
59
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
60
|
+
# @type RequestId: String
|
61
|
+
|
62
|
+
attr_accessor :LibraryId, :RequestId
|
63
|
+
|
64
|
+
def initialize(libraryid=nil, requestid=nil)
|
65
|
+
@LibraryId = libraryid
|
66
|
+
@RequestId = requestid
|
67
|
+
end
|
68
|
+
|
69
|
+
def deserialize(params)
|
70
|
+
@LibraryId = params['LibraryId']
|
71
|
+
@RequestId = params['RequestId']
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# DeleteLibrary请求参数结构体
|
76
|
+
class DeleteLibraryRequest < TencentCloud::Common::AbstractModel
|
77
|
+
# @param LibraryId: 媒体库 ID
|
78
|
+
# @type LibraryId: String
|
79
|
+
|
80
|
+
attr_accessor :LibraryId
|
81
|
+
|
82
|
+
def initialize(libraryid=nil)
|
83
|
+
@LibraryId = libraryid
|
84
|
+
end
|
85
|
+
|
86
|
+
def deserialize(params)
|
87
|
+
@LibraryId = params['LibraryId']
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# DeleteLibrary返回参数结构体
|
92
|
+
class DeleteLibraryResponse < TencentCloud::Common::AbstractModel
|
93
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
94
|
+
# @type RequestId: String
|
95
|
+
|
96
|
+
attr_accessor :RequestId
|
97
|
+
|
98
|
+
def initialize(requestid=nil)
|
99
|
+
@RequestId = requestid
|
100
|
+
end
|
101
|
+
|
102
|
+
def deserialize(params)
|
103
|
+
@RequestId = params['RequestId']
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
# DescribeLibraries请求参数结构体
|
108
|
+
class DescribeLibrariesRequest < TencentCloud::Common::AbstractModel
|
109
|
+
# @param LibraryIds: 按照一个或者多个媒体库 ID 查询,每次请求的上限为 100 个。
|
110
|
+
# @type LibraryIds: Array
|
111
|
+
# @param PageNumber: 页码,整型,配合 PageSize 使用,默认值为 1。
|
112
|
+
# @type PageNumber: Integer
|
113
|
+
# @param PageSize: 每页数目,整型,配合 PageNumber 使用,默认值为 20,最大值为 100。
|
114
|
+
# @type PageSize: Integer
|
115
|
+
|
116
|
+
attr_accessor :LibraryIds, :PageNumber, :PageSize
|
117
|
+
|
118
|
+
def initialize(libraryids=nil, pagenumber=nil, pagesize=nil)
|
119
|
+
@LibraryIds = libraryids
|
120
|
+
@PageNumber = pagenumber
|
121
|
+
@PageSize = pagesize
|
122
|
+
end
|
123
|
+
|
124
|
+
def deserialize(params)
|
125
|
+
@LibraryIds = params['LibraryIds']
|
126
|
+
@PageNumber = params['PageNumber']
|
127
|
+
@PageSize = params['PageSize']
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
# DescribeLibraries返回参数结构体
|
132
|
+
class DescribeLibrariesResponse < TencentCloud::Common::AbstractModel
|
133
|
+
# @param List: 媒体库列表
|
134
|
+
# @type List: Array
|
135
|
+
# @param TotalCount: 总数
|
136
|
+
# @type TotalCount: Integer
|
137
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
138
|
+
# @type RequestId: String
|
139
|
+
|
140
|
+
attr_accessor :List, :TotalCount, :RequestId
|
141
|
+
|
142
|
+
def initialize(list=nil, totalcount=nil, requestid=nil)
|
143
|
+
@List = list
|
144
|
+
@TotalCount = totalcount
|
145
|
+
@RequestId = requestid
|
146
|
+
end
|
147
|
+
|
148
|
+
def deserialize(params)
|
149
|
+
unless params['List'].nil?
|
150
|
+
@List = []
|
151
|
+
params['List'].each do |i|
|
152
|
+
library_tmp = Library.new
|
153
|
+
library_tmp.deserialize(i)
|
154
|
+
@List << library_tmp
|
155
|
+
end
|
156
|
+
end
|
157
|
+
@TotalCount = params['TotalCount']
|
158
|
+
@RequestId = params['RequestId']
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
# DescribeLibrarySecret请求参数结构体
|
163
|
+
class DescribeLibrarySecretRequest < TencentCloud::Common::AbstractModel
|
164
|
+
# @param LibraryId: 媒体库 ID
|
165
|
+
# @type LibraryId: String
|
166
|
+
|
167
|
+
attr_accessor :LibraryId
|
168
|
+
|
169
|
+
def initialize(libraryid=nil)
|
170
|
+
@LibraryId = libraryid
|
171
|
+
end
|
172
|
+
|
173
|
+
def deserialize(params)
|
174
|
+
@LibraryId = params['LibraryId']
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# DescribeLibrarySecret返回参数结构体
|
179
|
+
class DescribeLibrarySecretResponse < TencentCloud::Common::AbstractModel
|
180
|
+
# @param LibraryId: 查询的媒体库 ID
|
181
|
+
# @type LibraryId: String
|
182
|
+
# @param LibrarySecret: 查询到的媒体库密钥
|
183
|
+
# @type LibrarySecret: String
|
184
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
185
|
+
# @type RequestId: String
|
186
|
+
|
187
|
+
attr_accessor :LibraryId, :LibrarySecret, :RequestId
|
188
|
+
|
189
|
+
def initialize(libraryid=nil, librarysecret=nil, requestid=nil)
|
190
|
+
@LibraryId = libraryid
|
191
|
+
@LibrarySecret = librarysecret
|
192
|
+
@RequestId = requestid
|
193
|
+
end
|
194
|
+
|
195
|
+
def deserialize(params)
|
196
|
+
@LibraryId = params['LibraryId']
|
197
|
+
@LibrarySecret = params['LibrarySecret']
|
198
|
+
@RequestId = params['RequestId']
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
# DescribeOfficialInstances请求参数结构体
|
203
|
+
class DescribeOfficialInstancesRequest < TencentCloud::Common::AbstractModel
|
204
|
+
# @param SuperAdminAccount: 是否查询实例绑定的超级管理员账号,默认值为 false。
|
205
|
+
# @type SuperAdminAccount: Boolean
|
206
|
+
# @param InstanceIds: 按照一个或者多个实例 ID 查询,每次请求的上限为 100 个。
|
207
|
+
# @type InstanceIds: Array
|
208
|
+
# @param PageNumber: 页码,整型,配合 PageSize 使用,默认值为 1。
|
209
|
+
# @type PageNumber: Integer
|
210
|
+
# @param PageSize: 每页数目,整型,配合 PageNumber 使用,默认值为 20,最大值为 100。
|
211
|
+
# @type PageSize: Integer
|
212
|
+
|
213
|
+
attr_accessor :SuperAdminAccount, :InstanceIds, :PageNumber, :PageSize
|
214
|
+
|
215
|
+
def initialize(superadminaccount=nil, instanceids=nil, pagenumber=nil, pagesize=nil)
|
216
|
+
@SuperAdminAccount = superadminaccount
|
217
|
+
@InstanceIds = instanceids
|
218
|
+
@PageNumber = pagenumber
|
219
|
+
@PageSize = pagesize
|
220
|
+
end
|
221
|
+
|
222
|
+
def deserialize(params)
|
223
|
+
@SuperAdminAccount = params['SuperAdminAccount']
|
224
|
+
@InstanceIds = params['InstanceIds']
|
225
|
+
@PageNumber = params['PageNumber']
|
226
|
+
@PageSize = params['PageSize']
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
# DescribeOfficialInstances返回参数结构体
|
231
|
+
class DescribeOfficialInstancesResponse < TencentCloud::Common::AbstractModel
|
232
|
+
# @param List: 实例列表
|
233
|
+
# @type List: Array
|
234
|
+
# @param TotalCount: 总数
|
235
|
+
# @type TotalCount: Integer
|
236
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
237
|
+
# @type RequestId: String
|
238
|
+
|
239
|
+
attr_accessor :List, :TotalCount, :RequestId
|
240
|
+
|
241
|
+
def initialize(list=nil, totalcount=nil, requestid=nil)
|
242
|
+
@List = list
|
243
|
+
@TotalCount = totalcount
|
244
|
+
@RequestId = requestid
|
245
|
+
end
|
246
|
+
|
247
|
+
def deserialize(params)
|
248
|
+
unless params['List'].nil?
|
249
|
+
@List = []
|
250
|
+
params['List'].each do |i|
|
251
|
+
instance_tmp = Instance.new
|
252
|
+
instance_tmp.deserialize(i)
|
253
|
+
@List << instance_tmp
|
254
|
+
end
|
255
|
+
end
|
256
|
+
@TotalCount = params['TotalCount']
|
257
|
+
@RequestId = params['RequestId']
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
# DescribeOfficialOverview请求参数结构体
|
262
|
+
class DescribeOfficialOverviewRequest < TencentCloud::Common::AbstractModel
|
263
|
+
|
264
|
+
|
265
|
+
def initialize()
|
266
|
+
end
|
267
|
+
|
268
|
+
def deserialize(params)
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
272
|
+
# DescribeOfficialOverview返回参数结构体
|
273
|
+
class DescribeOfficialOverviewResponse < TencentCloud::Common::AbstractModel
|
274
|
+
# @param Quantity: 云盘实例数量
|
275
|
+
# @type Quantity: Integer
|
276
|
+
# @param Storage: 已经使用的总存储量,单位为 Bytes,由于数字类型精度限制,该字段为 String 类型。
|
277
|
+
# @type Storage: String
|
278
|
+
# @param UserCount: 已经分配和使用的总用户数
|
279
|
+
# @type UserCount: Integer
|
280
|
+
# @param InternetTraffic: 本月外网下行流量,单位为 Bytes,由于数字类型精度限制,该字段为 String 类型。
|
281
|
+
# @type InternetTraffic: String
|
282
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
283
|
+
# @type RequestId: String
|
284
|
+
|
285
|
+
attr_accessor :Quantity, :Storage, :UserCount, :InternetTraffic, :RequestId
|
286
|
+
|
287
|
+
def initialize(quantity=nil, storage=nil, usercount=nil, internettraffic=nil, requestid=nil)
|
288
|
+
@Quantity = quantity
|
289
|
+
@Storage = storage
|
290
|
+
@UserCount = usercount
|
291
|
+
@InternetTraffic = internettraffic
|
292
|
+
@RequestId = requestid
|
293
|
+
end
|
294
|
+
|
295
|
+
def deserialize(params)
|
296
|
+
@Quantity = params['Quantity']
|
297
|
+
@Storage = params['Storage']
|
298
|
+
@UserCount = params['UserCount']
|
299
|
+
@InternetTraffic = params['InternetTraffic']
|
300
|
+
@RequestId = params['RequestId']
|
301
|
+
end
|
302
|
+
end
|
303
|
+
|
304
|
+
# DescribeTrafficPackages请求参数结构体
|
305
|
+
class DescribeTrafficPackagesRequest < TencentCloud::Common::AbstractModel
|
306
|
+
# @param ResourceIds: 按照一个或者多个资源 ID 查询,每次请求的上限为 100 个。
|
307
|
+
# @type ResourceIds: Array
|
308
|
+
# @param PageNumber: 页码,整型,配合 PageSize 使用,默认值为 1。
|
309
|
+
# @type PageNumber: Integer
|
310
|
+
# @param PageSize: 每页数目,整型,配合 PageNumber 使用,默认值为 20,最大值为 100。
|
311
|
+
# @type PageSize: Integer
|
312
|
+
|
313
|
+
attr_accessor :ResourceIds, :PageNumber, :PageSize
|
314
|
+
|
315
|
+
def initialize(resourceids=nil, pagenumber=nil, pagesize=nil)
|
316
|
+
@ResourceIds = resourceids
|
317
|
+
@PageNumber = pagenumber
|
318
|
+
@PageSize = pagesize
|
319
|
+
end
|
320
|
+
|
321
|
+
def deserialize(params)
|
322
|
+
@ResourceIds = params['ResourceIds']
|
323
|
+
@PageNumber = params['PageNumber']
|
324
|
+
@PageSize = params['PageSize']
|
325
|
+
end
|
326
|
+
end
|
327
|
+
|
328
|
+
# DescribeTrafficPackages返回参数结构体
|
329
|
+
class DescribeTrafficPackagesResponse < TencentCloud::Common::AbstractModel
|
330
|
+
# @param List: 流量包列表
|
331
|
+
# @type List: Array
|
332
|
+
# @param TotalCount: 总数
|
333
|
+
# @type TotalCount: Integer
|
334
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
335
|
+
# @type RequestId: String
|
336
|
+
|
337
|
+
attr_accessor :List, :TotalCount, :RequestId
|
338
|
+
|
339
|
+
def initialize(list=nil, totalcount=nil, requestid=nil)
|
340
|
+
@List = list
|
341
|
+
@TotalCount = totalcount
|
342
|
+
@RequestId = requestid
|
343
|
+
end
|
344
|
+
|
345
|
+
def deserialize(params)
|
346
|
+
unless params['List'].nil?
|
347
|
+
@List = []
|
348
|
+
params['List'].each do |i|
|
349
|
+
trafficpackage_tmp = TrafficPackage.new
|
350
|
+
trafficpackage_tmp.deserialize(i)
|
351
|
+
@List << trafficpackage_tmp
|
352
|
+
end
|
353
|
+
end
|
354
|
+
@TotalCount = params['TotalCount']
|
355
|
+
@RequestId = params['RequestId']
|
356
|
+
end
|
357
|
+
end
|
358
|
+
|
359
|
+
# 官方云盘实例信息
|
360
|
+
class Instance < TencentCloud::Common::AbstractModel
|
361
|
+
# @param InstanceId: 实例 ID
|
362
|
+
# @type InstanceId: String
|
363
|
+
# @param Domain: 专属域名。如果实例无专属域名,则该属性为 null。
|
364
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
365
|
+
# @type Domain: String
|
366
|
+
# @param EffectiveTime: 生效时间
|
367
|
+
# @type EffectiveTime: String
|
368
|
+
# @param ExpireTime: 过期时间。如果为按量计费或永久有效实例,该属性为 null。
|
369
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
370
|
+
# @type ExpireTime: String
|
371
|
+
# @param UserLimit: 用户数量。如果为按量计费或不限制用户数量实例,该属性为 null。
|
372
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
373
|
+
# @type UserLimit: Integer
|
374
|
+
# @param StorageLimit: 存储容量,单位为 Bytes,由于数字类型精度限制,该字段为 String 类型。如果为按量计费或不限制存储容量实例,该属性为 null。
|
375
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
376
|
+
# @type StorageLimit: String
|
377
|
+
# @param StorageLimitGB: 存储容量,单位为 GB。如果为按量计费或不限制存储容量实例,该属性为 null。
|
378
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
379
|
+
# @type StorageLimitGB: Integer
|
380
|
+
# @param Isolated: 是否过期隔离
|
381
|
+
# @type Isolated: Boolean
|
382
|
+
# @param AutoRenew: 续费标识。0:手动续费;1:自动续费;2:到期不续。
|
383
|
+
# @type AutoRenew: Integer
|
384
|
+
# @param SuperAdminAccount: 超级管理员账号,如果未选择查询实例绑定的超级管理员账号或当前实例未绑定超级管理员账号,则该属性为 null。
|
385
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
386
|
+
# @type SuperAdminAccount: String
|
387
|
+
|
388
|
+
attr_accessor :InstanceId, :Domain, :EffectiveTime, :ExpireTime, :UserLimit, :StorageLimit, :StorageLimitGB, :Isolated, :AutoRenew, :SuperAdminAccount
|
389
|
+
|
390
|
+
def initialize(instanceid=nil, domain=nil, effectivetime=nil, expiretime=nil, userlimit=nil, storagelimit=nil, storagelimitgb=nil, isolated=nil, autorenew=nil, superadminaccount=nil)
|
391
|
+
@InstanceId = instanceid
|
392
|
+
@Domain = domain
|
393
|
+
@EffectiveTime = effectivetime
|
394
|
+
@ExpireTime = expiretime
|
395
|
+
@UserLimit = userlimit
|
396
|
+
@StorageLimit = storagelimit
|
397
|
+
@StorageLimitGB = storagelimitgb
|
398
|
+
@Isolated = isolated
|
399
|
+
@AutoRenew = autorenew
|
400
|
+
@SuperAdminAccount = superadminaccount
|
401
|
+
end
|
402
|
+
|
403
|
+
def deserialize(params)
|
404
|
+
@InstanceId = params['InstanceId']
|
405
|
+
@Domain = params['Domain']
|
406
|
+
@EffectiveTime = params['EffectiveTime']
|
407
|
+
@ExpireTime = params['ExpireTime']
|
408
|
+
@UserLimit = params['UserLimit']
|
409
|
+
@StorageLimit = params['StorageLimit']
|
410
|
+
@StorageLimitGB = params['StorageLimitGB']
|
411
|
+
@Isolated = params['Isolated']
|
412
|
+
@AutoRenew = params['AutoRenew']
|
413
|
+
@SuperAdminAccount = params['SuperAdminAccount']
|
414
|
+
end
|
415
|
+
end
|
416
|
+
|
417
|
+
# PaaS 服务媒体库信息
|
418
|
+
class Library < TencentCloud::Common::AbstractModel
|
419
|
+
# @param LibraryId: 媒体库 ID
|
420
|
+
# @type LibraryId: String
|
421
|
+
# @param Name: 媒体库友好名称
|
422
|
+
# @type Name: String
|
423
|
+
# @param Remark: 备注
|
424
|
+
# @type Remark: String
|
425
|
+
# @param BucketName: 媒体库绑定的 COS 存储桶
|
426
|
+
# @type BucketName: String
|
427
|
+
# @param BucketRegion: 媒体库绑定的 COS 存储桶所在的地域
|
428
|
+
# @type BucketRegion: String
|
429
|
+
# @param CreationTime: 媒体库创建时间
|
430
|
+
# @type CreationTime: String
|
431
|
+
# @param LibraryExtension: 媒体库配置项
|
432
|
+
# @type LibraryExtension: :class:`Tencentcloud::Smh.v20210712.models.LibraryExtension`
|
433
|
+
# @param Size: 媒体库用量,单位为 Bytes,由于数字类型精度限制,该字段为 String 类型。
|
434
|
+
# @type Size: String
|
435
|
+
# @param DirNum: 媒体库目录数,由于数字类型精度限制,该字段为 String 类型。
|
436
|
+
# @type DirNum: String
|
437
|
+
# @param FileNum: 媒体库文件数,由于数字类型精度限制,该字段为 String 类型。
|
438
|
+
# @type FileNum: String
|
439
|
+
|
440
|
+
attr_accessor :LibraryId, :Name, :Remark, :BucketName, :BucketRegion, :CreationTime, :LibraryExtension, :Size, :DirNum, :FileNum
|
441
|
+
|
442
|
+
def initialize(libraryid=nil, name=nil, remark=nil, bucketname=nil, bucketregion=nil, creationtime=nil, libraryextension=nil, size=nil, dirnum=nil, filenum=nil)
|
443
|
+
@LibraryId = libraryid
|
444
|
+
@Name = name
|
445
|
+
@Remark = remark
|
446
|
+
@BucketName = bucketname
|
447
|
+
@BucketRegion = bucketregion
|
448
|
+
@CreationTime = creationtime
|
449
|
+
@LibraryExtension = libraryextension
|
450
|
+
@Size = size
|
451
|
+
@DirNum = dirnum
|
452
|
+
@FileNum = filenum
|
453
|
+
end
|
454
|
+
|
455
|
+
def deserialize(params)
|
456
|
+
@LibraryId = params['LibraryId']
|
457
|
+
@Name = params['Name']
|
458
|
+
@Remark = params['Remark']
|
459
|
+
@BucketName = params['BucketName']
|
460
|
+
@BucketRegion = params['BucketRegion']
|
461
|
+
@CreationTime = params['CreationTime']
|
462
|
+
unless params['LibraryExtension'].nil?
|
463
|
+
@LibraryExtension = LibraryExtension.new
|
464
|
+
@LibraryExtension.deserialize(params['LibraryExtension'])
|
465
|
+
end
|
466
|
+
@Size = params['Size']
|
467
|
+
@DirNum = params['DirNum']
|
468
|
+
@FileNum = params['FileNum']
|
469
|
+
end
|
470
|
+
end
|
471
|
+
|
472
|
+
# 媒体库配置项
|
473
|
+
class LibraryExtension < TencentCloud::Common::AbstractModel
|
474
|
+
# @param IsFileLibrary: true 为文件类型媒体库,可存储任何类型文件;false 为媒体类型媒体库,仅可存储照片和视频类型文件。默认为 false。在媒体库创建后不能修改。
|
475
|
+
# @type IsFileLibrary: Boolean
|
476
|
+
# @param IsMultiSpace: true 为多租户空间媒体库,可创建多个租户空间;false 为单租户空间媒体库,不能创建租户空间,仅可使用默认的单一租户空间。默认为 false。在媒体库创建后不能修改。
|
477
|
+
# @type IsMultiSpace: Boolean
|
478
|
+
# @param CosStorageClass: 保存至 COS 对象存储的文件的存储类型,仅支持 STANDARD、STANDARD_IA、INTELLIGENT_TIERING、MAZ_STANDARD、MAZ_STANDARD_IA 和 MAZ_INTELLIGENT_TIERING,默认为 STANDARD,当使用多 AZ 存储桶时将自动使用 MAZ_ 开头的用于多 AZ 的存储类型,否则自动使用非 MAZ_ 开头的用于非多 AZ 的存储类型。当指定智能分层存储 INTELLIGENT_TIERING 或 MAZ_INTELLIGENT_TIERING 时,需要事先为存储桶开启智能分层存储,否则将返回失败。在媒体库创建后不能修改。
|
479
|
+
# @type CosStorageClass: String
|
480
|
+
# @param UseRecycleBin: 是否开启回收站功能。默认为 false。
|
481
|
+
# @type UseRecycleBin: Boolean
|
482
|
+
# @param AutoRemoveRecycledDays: 当开启回收站时,自动删除回收站项目的天数,不能超过 1095(3 年),指定为 0 则不自动删除,默认为 0。当未开启回收站时,该属性为 null。
|
483
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
484
|
+
# @type AutoRemoveRecycledDays: Integer
|
485
|
+
# @param EnableSearch: 是否启用文件路径搜索功能。默认为 false。
|
486
|
+
# @type EnableSearch: Boolean
|
487
|
+
# @param DenyOnQuotaLessThanUsage: 设置媒体库或租户空间配额且配额小于已使用存储量时,是否拒绝设置请求。默认为 false。
|
488
|
+
# @type DenyOnQuotaLessThanUsage: Boolean
|
489
|
+
# @param EnableFileHistory: 是否开启历史版本。默认为 false。
|
490
|
+
# @type EnableFileHistory: Boolean
|
491
|
+
# @param FileHistoryCount: 当开启历史版本时,指定单个文件保留的历史版本的数量上限,不能超过 999,指定为 0 则不限制,默认为 0。当未开启历史版本时,该属性为 null。
|
492
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
493
|
+
# @type FileHistoryCount: Integer
|
494
|
+
# @param FileHistoryExpireDay: 当开启历史版本时,指定历史版本保留的最长天数,不能超过 999,指定为 0 则不限制,默认为 0。当未开启历史版本时,该属性为 null。
|
495
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
496
|
+
# @type FileHistoryExpireDay: Integer
|
497
|
+
# @param MaxDirFileNameLength: 目录或文件名的最长长度,不能超过 255,默认为 255。修改该参数不会影响存量目录或文件名,即如果将该字段的值改小,已经存在的长度超过目标值的目录或文件名不会发生变化。
|
498
|
+
# @type MaxDirFileNameLength: Integer
|
499
|
+
# @param IsPublicRead: 是否开启公有读,开启后读操作无需使用访问令牌,默认为 false。仅单租户空间媒体库支持该属性,否则该属性为 null。
|
500
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
501
|
+
# @type IsPublicRead: Boolean
|
502
|
+
# @param IsMultiAlbum: 媒体类型媒体库是否开启多相簿,开启后可创建一级目录(即相簿)且媒体文件只能保存在各相簿中,否则不能创建相簿且媒体文件只能保存在根目录。默认为 false。仅单租户空间媒体类型媒体库支持该属性,否则该属性为 null。在媒体库创建后不能修改。
|
503
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
504
|
+
# @type IsMultiAlbum: Boolean
|
505
|
+
# @param AllowPhoto: 媒体类型媒体库是否允许上传照片,默认为 true。仅单租户空间媒体类型媒体库支持该属性,否则该属性为 null。
|
506
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
507
|
+
# @type AllowPhoto: Boolean
|
508
|
+
# @param AllowPhotoExtName: 当媒体类型媒体库允许上传照片时,指定允许的扩展名,默认为空数组,此时将根据文件扩展名对应的 MIME 类型自动判断。仅单租户空间媒体类型媒体库支持该属性,否则该属性为 null。
|
509
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
510
|
+
# @type AllowPhotoExtName: Array
|
511
|
+
# @param AllowVideo: 媒体类型媒体库是否允许上传视频,默认为 true。仅单租户空间媒体类型媒体库支持该属性,否则该属性为 null。
|
512
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
513
|
+
# @type AllowVideo: Boolean
|
514
|
+
# @param AllowVideoExtName: 当媒体类型媒体库允许上传视频时,指定允许的扩展名,默认为空数组,此时将根据文件扩展名对应的 MIME 类型自动判断。仅单租户空间媒体类型媒体库支持该属性,否则该属性为 null。
|
515
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
516
|
+
# @type AllowVideoExtName: Array
|
517
|
+
# @param AllowFileExtName: 指定文件类型媒体库允许的文件扩展名,默认为空数组,此时允许上传所有类型文件。仅单租户空间文件类型媒体库支持该属性,否则该属性为 null。
|
518
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
519
|
+
# @type AllowFileExtName: Array
|
520
|
+
# @param RecognizeSensitiveContent: 照片上传时是否进行敏感内容鉴定,默认为 false。仅单租户空间媒体库支持该属性,否则该属性为 null。
|
521
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
522
|
+
# @type RecognizeSensitiveContent: Boolean
|
523
|
+
|
524
|
+
attr_accessor :IsFileLibrary, :IsMultiSpace, :CosStorageClass, :UseRecycleBin, :AutoRemoveRecycledDays, :EnableSearch, :DenyOnQuotaLessThanUsage, :EnableFileHistory, :FileHistoryCount, :FileHistoryExpireDay, :MaxDirFileNameLength, :IsPublicRead, :IsMultiAlbum, :AllowPhoto, :AllowPhotoExtName, :AllowVideo, :AllowVideoExtName, :AllowFileExtName, :RecognizeSensitiveContent
|
525
|
+
|
526
|
+
def initialize(isfilelibrary=nil, ismultispace=nil, cosstorageclass=nil, userecyclebin=nil, autoremoverecycleddays=nil, enablesearch=nil, denyonquotalessthanusage=nil, enablefilehistory=nil, filehistorycount=nil, filehistoryexpireday=nil, maxdirfilenamelength=nil, ispublicread=nil, ismultialbum=nil, allowphoto=nil, allowphotoextname=nil, allowvideo=nil, allowvideoextname=nil, allowfileextname=nil, recognizesensitivecontent=nil)
|
527
|
+
@IsFileLibrary = isfilelibrary
|
528
|
+
@IsMultiSpace = ismultispace
|
529
|
+
@CosStorageClass = cosstorageclass
|
530
|
+
@UseRecycleBin = userecyclebin
|
531
|
+
@AutoRemoveRecycledDays = autoremoverecycleddays
|
532
|
+
@EnableSearch = enablesearch
|
533
|
+
@DenyOnQuotaLessThanUsage = denyonquotalessthanusage
|
534
|
+
@EnableFileHistory = enablefilehistory
|
535
|
+
@FileHistoryCount = filehistorycount
|
536
|
+
@FileHistoryExpireDay = filehistoryexpireday
|
537
|
+
@MaxDirFileNameLength = maxdirfilenamelength
|
538
|
+
@IsPublicRead = ispublicread
|
539
|
+
@IsMultiAlbum = ismultialbum
|
540
|
+
@AllowPhoto = allowphoto
|
541
|
+
@AllowPhotoExtName = allowphotoextname
|
542
|
+
@AllowVideo = allowvideo
|
543
|
+
@AllowVideoExtName = allowvideoextname
|
544
|
+
@AllowFileExtName = allowfileextname
|
545
|
+
@RecognizeSensitiveContent = recognizesensitivecontent
|
546
|
+
end
|
547
|
+
|
548
|
+
def deserialize(params)
|
549
|
+
@IsFileLibrary = params['IsFileLibrary']
|
550
|
+
@IsMultiSpace = params['IsMultiSpace']
|
551
|
+
@CosStorageClass = params['CosStorageClass']
|
552
|
+
@UseRecycleBin = params['UseRecycleBin']
|
553
|
+
@AutoRemoveRecycledDays = params['AutoRemoveRecycledDays']
|
554
|
+
@EnableSearch = params['EnableSearch']
|
555
|
+
@DenyOnQuotaLessThanUsage = params['DenyOnQuotaLessThanUsage']
|
556
|
+
@EnableFileHistory = params['EnableFileHistory']
|
557
|
+
@FileHistoryCount = params['FileHistoryCount']
|
558
|
+
@FileHistoryExpireDay = params['FileHistoryExpireDay']
|
559
|
+
@MaxDirFileNameLength = params['MaxDirFileNameLength']
|
560
|
+
@IsPublicRead = params['IsPublicRead']
|
561
|
+
@IsMultiAlbum = params['IsMultiAlbum']
|
562
|
+
@AllowPhoto = params['AllowPhoto']
|
563
|
+
@AllowPhotoExtName = params['AllowPhotoExtName']
|
564
|
+
@AllowVideo = params['AllowVideo']
|
565
|
+
@AllowVideoExtName = params['AllowVideoExtName']
|
566
|
+
@AllowFileExtName = params['AllowFileExtName']
|
567
|
+
@RecognizeSensitiveContent = params['RecognizeSensitiveContent']
|
568
|
+
end
|
569
|
+
end
|
570
|
+
|
571
|
+
# ModifyLibrary请求参数结构体
|
572
|
+
class ModifyLibraryRequest < TencentCloud::Common::AbstractModel
|
573
|
+
# @param LibraryId: 媒体库 ID
|
574
|
+
# @type LibraryId: String
|
575
|
+
# @param Name: 媒体库名称,最多 50 个字符。如不传则不修改。
|
576
|
+
# @type Name: String
|
577
|
+
# @param Remark: 备注,最多 250 个字符。如不传则不修改。
|
578
|
+
# @type Remark: String
|
579
|
+
# @param LibraryExtension: 媒体库配置项,部分参数在新建后不可更改,且仅修改传入的参数。如不传该参数则不修改任何配置项。
|
580
|
+
# @type LibraryExtension: :class:`Tencentcloud::Smh.v20210712.models.LibraryExtension`
|
581
|
+
|
582
|
+
attr_accessor :LibraryId, :Name, :Remark, :LibraryExtension
|
583
|
+
|
584
|
+
def initialize(libraryid=nil, name=nil, remark=nil, libraryextension=nil)
|
585
|
+
@LibraryId = libraryid
|
586
|
+
@Name = name
|
587
|
+
@Remark = remark
|
588
|
+
@LibraryExtension = libraryextension
|
589
|
+
end
|
590
|
+
|
591
|
+
def deserialize(params)
|
592
|
+
@LibraryId = params['LibraryId']
|
593
|
+
@Name = params['Name']
|
594
|
+
@Remark = params['Remark']
|
595
|
+
unless params['LibraryExtension'].nil?
|
596
|
+
@LibraryExtension = LibraryExtension.new
|
597
|
+
@LibraryExtension.deserialize(params['LibraryExtension'])
|
598
|
+
end
|
599
|
+
end
|
600
|
+
end
|
601
|
+
|
602
|
+
# ModifyLibrary返回参数结构体
|
603
|
+
class ModifyLibraryResponse < TencentCloud::Common::AbstractModel
|
604
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
605
|
+
# @type RequestId: String
|
606
|
+
|
607
|
+
attr_accessor :RequestId
|
608
|
+
|
609
|
+
def initialize(requestid=nil)
|
610
|
+
@RequestId = requestid
|
611
|
+
end
|
612
|
+
|
613
|
+
def deserialize(params)
|
614
|
+
@RequestId = params['RequestId']
|
615
|
+
end
|
616
|
+
end
|
617
|
+
|
618
|
+
# SendSmsCode请求参数结构体
|
619
|
+
class SendSmsCodeRequest < TencentCloud::Common::AbstractModel
|
620
|
+
# @param Purpose: 验证码目的,当前仅支持换绑超级管理员账号,固定填写 BindSuperAdmin。
|
621
|
+
# @type Purpose: String
|
622
|
+
# @param InstanceId: 官方云盘实例 ID
|
623
|
+
# @type InstanceId: String
|
624
|
+
# @param PhoneNumber: 将作为超级管理员账号的手机号码,仅限中国境内手机号,无需国家代码“+86”。
|
625
|
+
# @type PhoneNumber: String
|
626
|
+
|
627
|
+
attr_accessor :Purpose, :InstanceId, :PhoneNumber
|
628
|
+
|
629
|
+
def initialize(purpose=nil, instanceid=nil, phonenumber=nil)
|
630
|
+
@Purpose = purpose
|
631
|
+
@InstanceId = instanceid
|
632
|
+
@PhoneNumber = phonenumber
|
633
|
+
end
|
634
|
+
|
635
|
+
def deserialize(params)
|
636
|
+
@Purpose = params['Purpose']
|
637
|
+
@InstanceId = params['InstanceId']
|
638
|
+
@PhoneNumber = params['PhoneNumber']
|
639
|
+
end
|
640
|
+
end
|
641
|
+
|
642
|
+
# SendSmsCode返回参数结构体
|
643
|
+
class SendSmsCodeResponse < TencentCloud::Common::AbstractModel
|
644
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
645
|
+
# @type RequestId: String
|
646
|
+
|
647
|
+
attr_accessor :RequestId
|
648
|
+
|
649
|
+
def initialize(requestid=nil)
|
650
|
+
@RequestId = requestid
|
651
|
+
end
|
652
|
+
|
653
|
+
def deserialize(params)
|
654
|
+
@RequestId = params['RequestId']
|
655
|
+
end
|
656
|
+
end
|
657
|
+
|
658
|
+
# 流量资源包信息
|
659
|
+
class TrafficPackage < TencentCloud::Common::AbstractModel
|
660
|
+
# @param InstanceId: 流量资源包所抵扣的实例 ID
|
661
|
+
# @type InstanceId: String
|
662
|
+
# @param Domain: 专属域名。如果实例无专属域名,则该属性为 null。
|
663
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
664
|
+
# @type Domain: String
|
665
|
+
# @param Type: 流量资源包来源类型,0 为付费购买,1 为赠送。
|
666
|
+
# @type Type: Integer
|
667
|
+
# @param Size: 总流量,单位为 Bytes,由于数字类型精度限制,该字段为 String 类型。
|
668
|
+
# @type Size: String
|
669
|
+
# @param SizeGB: 总流量,单位为 GB
|
670
|
+
# @type SizeGB: Integer
|
671
|
+
# @param Remain: 剩余流量,单位为 Bytes,由于数字类型精度限制,该字段为 String 类型。
|
672
|
+
# @type Remain: String
|
673
|
+
# @param Used: 已使用流量,单位为 Bytes,由于数字类型精度限制,该字段为 String 类型。
|
674
|
+
# @type Used: String
|
675
|
+
# @param UsedPercentage: 已使用百分比,由于数字类型精度限制,该字段为 String 类型。
|
676
|
+
# @type UsedPercentage: String
|
677
|
+
# @param EffectiveTime: 生效时间,即流量资源包的订购时间
|
678
|
+
# @type EffectiveTime: String
|
679
|
+
# @param ExpireTime: 过期时间,即所抵扣的实例的过期时间。如果流量资源包所抵扣的实例为按量计费或永久有效实例,该属性为 null。
|
680
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
681
|
+
# @type ExpireTime: String
|
682
|
+
|
683
|
+
attr_accessor :InstanceId, :Domain, :Type, :Size, :SizeGB, :Remain, :Used, :UsedPercentage, :EffectiveTime, :ExpireTime
|
684
|
+
|
685
|
+
def initialize(instanceid=nil, domain=nil, type=nil, size=nil, sizegb=nil, remain=nil, used=nil, usedpercentage=nil, effectivetime=nil, expiretime=nil)
|
686
|
+
@InstanceId = instanceid
|
687
|
+
@Domain = domain
|
688
|
+
@Type = type
|
689
|
+
@Size = size
|
690
|
+
@SizeGB = sizegb
|
691
|
+
@Remain = remain
|
692
|
+
@Used = used
|
693
|
+
@UsedPercentage = usedpercentage
|
694
|
+
@EffectiveTime = effectivetime
|
695
|
+
@ExpireTime = expiretime
|
696
|
+
end
|
697
|
+
|
698
|
+
def deserialize(params)
|
699
|
+
@InstanceId = params['InstanceId']
|
700
|
+
@Domain = params['Domain']
|
701
|
+
@Type = params['Type']
|
702
|
+
@Size = params['Size']
|
703
|
+
@SizeGB = params['SizeGB']
|
704
|
+
@Remain = params['Remain']
|
705
|
+
@Used = params['Used']
|
706
|
+
@UsedPercentage = params['UsedPercentage']
|
707
|
+
@EffectiveTime = params['EffectiveTime']
|
708
|
+
@ExpireTime = params['ExpireTime']
|
709
|
+
end
|
710
|
+
end
|
711
|
+
|
712
|
+
# VerifySmsCode请求参数结构体
|
713
|
+
class VerifySmsCodeRequest < TencentCloud::Common::AbstractModel
|
714
|
+
# @param Purpose: 验证码目的,当前仅支持换绑超级管理员账号,固定填写 BindSuperAdmin。
|
715
|
+
# @type Purpose: String
|
716
|
+
# @param InstanceId: 官方云盘实例 ID
|
717
|
+
# @type InstanceId: String
|
718
|
+
# @param PhoneNumber: 将作为超级管理员账号的手机号码,仅限中国境内手机号,无需国家代码“+86”。
|
719
|
+
# @type PhoneNumber: String
|
720
|
+
# @param Code: 短信验证码
|
721
|
+
# @type Code: String
|
722
|
+
|
723
|
+
attr_accessor :Purpose, :InstanceId, :PhoneNumber, :Code
|
724
|
+
|
725
|
+
def initialize(purpose=nil, instanceid=nil, phonenumber=nil, code=nil)
|
726
|
+
@Purpose = purpose
|
727
|
+
@InstanceId = instanceid
|
728
|
+
@PhoneNumber = phonenumber
|
729
|
+
@Code = code
|
730
|
+
end
|
731
|
+
|
732
|
+
def deserialize(params)
|
733
|
+
@Purpose = params['Purpose']
|
734
|
+
@InstanceId = params['InstanceId']
|
735
|
+
@PhoneNumber = params['PhoneNumber']
|
736
|
+
@Code = params['Code']
|
737
|
+
end
|
738
|
+
end
|
739
|
+
|
740
|
+
# VerifySmsCode返回参数结构体
|
741
|
+
class VerifySmsCodeResponse < TencentCloud::Common::AbstractModel
|
742
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
743
|
+
# @type RequestId: String
|
744
|
+
|
745
|
+
attr_accessor :RequestId
|
746
|
+
|
747
|
+
def initialize(requestid=nil)
|
748
|
+
@RequestId = requestid
|
749
|
+
end
|
750
|
+
|
751
|
+
def deserialize(params)
|
752
|
+
@RequestId = params['RequestId']
|
753
|
+
end
|
754
|
+
end
|
755
|
+
|
756
|
+
end
|
757
|
+
end
|
758
|
+
end
|
759
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-smh
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.254
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tencent Cloud
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-02-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
|
+
SMH.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/VERSION
|
37
|
+
- lib/tencentcloud-sdk-smh.rb
|
38
|
+
- lib/v20210712/client.rb
|
39
|
+
- lib/v20210712/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-smh
|
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 - SMH
|
66
|
+
test_files: []
|