tencentcloud-sdk-smh 3.0.881 → 3.0.883
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210712/client.rb +120 -0
- data/lib/v20210712/models.rb +475 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc1a58ff64815f2428ea936d06da75fe2c57529c
|
4
|
+
data.tar.gz: 3313ecde8307e12d9884ab044dbf524a8955dc28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40eb51465577df355ba2c7dfefa63c496810ead320f65744c72cdaf27100d3197170caa299489d78f5888ad0e90104d1afdf2f9ae1e4f910531a1685cf6aff2a
|
7
|
+
data.tar.gz: 96468b7c629094e70e608e4c8fd4d7a7df45a92b4557e7add74405c92ea2947ad147e44950513add1e88373ba56086fb24b92f5609cae79b42d48332bfeff5a9
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.883
|
data/lib/v20210712/client.rb
CHANGED
@@ -53,6 +53,54 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
+
# 新建用户。
|
57
|
+
|
58
|
+
# @param request: Request instance for CreateUser.
|
59
|
+
# @type request: :class:`Tencentcloud::smh::V20210712::CreateUserRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::smh::V20210712::CreateUserResponse`
|
61
|
+
def CreateUser(request)
|
62
|
+
body = send_request('CreateUser', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = CreateUserResponse.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 CreateUserLifecycle.
|
83
|
+
# @type request: :class:`Tencentcloud::smh::V20210712::CreateUserLifecycleRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::smh::V20210712::CreateUserLifecycleResponse`
|
85
|
+
def CreateUserLifecycle(request)
|
86
|
+
body = send_request('CreateUserLifecycle', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = CreateUserLifecycleResponse.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
|
+
|
56
104
|
# 删除 PaaS 服务媒体库
|
57
105
|
|
58
106
|
# @param request: Request instance for DeleteLibrary.
|
@@ -77,6 +125,30 @@ module TencentCloud
|
|
77
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
126
|
end
|
79
127
|
|
128
|
+
# 一次删除多个用户。
|
129
|
+
|
130
|
+
# @param request: Request instance for DeleteUser.
|
131
|
+
# @type request: :class:`Tencentcloud::smh::V20210712::DeleteUserRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::smh::V20210712::DeleteUserResponse`
|
133
|
+
def DeleteUser(request)
|
134
|
+
body = send_request('DeleteUser', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = DeleteUserResponse.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
|
+
|
80
152
|
# 查询 PaaS 服务媒体库列表
|
81
153
|
|
82
154
|
# @param request: Request instance for DescribeLibraries.
|
@@ -197,6 +269,30 @@ module TencentCloud
|
|
197
269
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
270
|
end
|
199
271
|
|
272
|
+
# 查询用户生命周期。
|
273
|
+
|
274
|
+
# @param request: Request instance for DescribeUserLifecycle.
|
275
|
+
# @type request: :class:`Tencentcloud::smh::V20210712::DescribeUserLifecycleRequest`
|
276
|
+
# @rtype: :class:`Tencentcloud::smh::V20210712::DescribeUserLifecycleResponse`
|
277
|
+
def DescribeUserLifecycle(request)
|
278
|
+
body = send_request('DescribeUserLifecycle', request.serialize)
|
279
|
+
response = JSON.parse(body)
|
280
|
+
if response['Response'].key?('Error') == false
|
281
|
+
model = DescribeUserLifecycleResponse.new
|
282
|
+
model.deserialize(response['Response'])
|
283
|
+
model
|
284
|
+
else
|
285
|
+
code = response['Response']['Error']['Code']
|
286
|
+
message = response['Response']['Error']['Message']
|
287
|
+
reqid = response['Response']['RequestId']
|
288
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
289
|
+
end
|
290
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
291
|
+
raise e
|
292
|
+
rescue StandardError => e
|
293
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
|
+
end
|
295
|
+
|
200
296
|
# 修改 PaaS 服务媒体库配置项
|
201
297
|
|
202
298
|
# @param request: Request instance for ModifyLibrary.
|
@@ -221,6 +317,30 @@ module TencentCloud
|
|
221
317
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
318
|
end
|
223
319
|
|
320
|
+
# 更新用户信息。
|
321
|
+
|
322
|
+
# @param request: Request instance for ModifyUser.
|
323
|
+
# @type request: :class:`Tencentcloud::smh::V20210712::ModifyUserRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::smh::V20210712::ModifyUserResponse`
|
325
|
+
def ModifyUser(request)
|
326
|
+
body = send_request('ModifyUser', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = ModifyUserResponse.new
|
330
|
+
model.deserialize(response['Response'])
|
331
|
+
model
|
332
|
+
else
|
333
|
+
code = response['Response']['Error']['Code']
|
334
|
+
message = response['Response']['Error']['Message']
|
335
|
+
reqid = response['Response']['RequestId']
|
336
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
337
|
+
end
|
338
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
339
|
+
raise e
|
340
|
+
rescue StandardError => e
|
341
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
|
+
end
|
343
|
+
|
224
344
|
# 发送用于换绑官方云盘实例的超级管理员账号的短信验证码
|
225
345
|
|
226
346
|
# @param request: Request instance for SendSmsCode.
|
data/lib/v20210712/models.rb
CHANGED
@@ -72,6 +72,212 @@ module TencentCloud
|
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
75
|
+
# CreateUserLifecycle请求参数结构体
|
76
|
+
class CreateUserLifecycleRequest < TencentCloud::Common::AbstractModel
|
77
|
+
# @param LibraryId: 媒体库 ID。
|
78
|
+
# @type LibraryId: String
|
79
|
+
# @param Filter: 用于唯一查找用户的过滤器。
|
80
|
+
# @type Filter: :class:`Tencentcloud::Smh.v20210712.models.UserFilter`
|
81
|
+
# @param IsolateTime: 隔离时间,当时间超过该时间点后,指定用户将无法登录,但他的账号信息、文件资源会被保留,可以通过再次调用本接口更新隔离时间,恢复登录。如不指定,则代表不设置隔离时间,且当前用户已经设置的隔离时间会被删除。
|
82
|
+
# @type IsolateTime: String
|
83
|
+
# @param DestroyTime: 销毁时间,当时间超过该时间点后,指定用户的资源将被销毁且无法通过再次调用此接口更新时间。如果同时指定了 IsolateTime 则不能早于 IsolateTime 指定的时间。如不指定,则代表不设置销毁时间,且当前用户已经设置的销毁时间会被删除。
|
84
|
+
# @type DestroyTime: String
|
85
|
+
|
86
|
+
attr_accessor :LibraryId, :Filter, :IsolateTime, :DestroyTime
|
87
|
+
|
88
|
+
def initialize(libraryid=nil, filter=nil, isolatetime=nil, destroytime=nil)
|
89
|
+
@LibraryId = libraryid
|
90
|
+
@Filter = filter
|
91
|
+
@IsolateTime = isolatetime
|
92
|
+
@DestroyTime = destroytime
|
93
|
+
end
|
94
|
+
|
95
|
+
def deserialize(params)
|
96
|
+
@LibraryId = params['LibraryId']
|
97
|
+
unless params['Filter'].nil?
|
98
|
+
@Filter = UserFilter.new
|
99
|
+
@Filter.deserialize(params['Filter'])
|
100
|
+
end
|
101
|
+
@IsolateTime = params['IsolateTime']
|
102
|
+
@DestroyTime = params['DestroyTime']
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
# CreateUserLifecycle返回参数结构体
|
107
|
+
class CreateUserLifecycleResponse < TencentCloud::Common::AbstractModel
|
108
|
+
# @param UserId: 用户 ID。
|
109
|
+
# @type UserId: String
|
110
|
+
# @param IsolateTime: 设置的隔离时间。
|
111
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
112
|
+
# @type IsolateTime: String
|
113
|
+
# @param DestroyTime: 设置的销毁时间。
|
114
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
115
|
+
# @type DestroyTime: String
|
116
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
117
|
+
# @type RequestId: String
|
118
|
+
|
119
|
+
attr_accessor :UserId, :IsolateTime, :DestroyTime, :RequestId
|
120
|
+
|
121
|
+
def initialize(userid=nil, isolatetime=nil, destroytime=nil, requestid=nil)
|
122
|
+
@UserId = userid
|
123
|
+
@IsolateTime = isolatetime
|
124
|
+
@DestroyTime = destroytime
|
125
|
+
@RequestId = requestid
|
126
|
+
end
|
127
|
+
|
128
|
+
def deserialize(params)
|
129
|
+
@UserId = params['UserId']
|
130
|
+
@IsolateTime = params['IsolateTime']
|
131
|
+
@DestroyTime = params['DestroyTime']
|
132
|
+
@RequestId = params['RequestId']
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
# CreateUser请求参数结构体
|
137
|
+
class CreateUserRequest < TencentCloud::Common::AbstractModel
|
138
|
+
# @param LibraryId: 媒体库 ID。
|
139
|
+
# @type LibraryId: String
|
140
|
+
# @param Role: 用户角色,当只支持 user。
|
141
|
+
# @type Role: String
|
142
|
+
# @param Enabled: 是否启用。
|
143
|
+
# @type Enabled: Boolean
|
144
|
+
# @param CountryCode: 手机号国家码,不传默认为 null,此时无法使用该登录方式进行登录。
|
145
|
+
# @type CountryCode: String
|
146
|
+
# @param PhoneNumber: 手机号码,不传默认为 null,此时无法使用该登录方式进行登录。如果与同一媒体库内已有手机号重复则报错。CountryCode 和 PhoneNumber 必须同时传入或同时不传入。
|
147
|
+
# @type PhoneNumber: String
|
148
|
+
# @param Email: 邮箱,不传默认为 null,此时无法使用该登录方式进行登录。如果与同一媒体库内已有邮箱重复则报错。
|
149
|
+
# @type Email: String
|
150
|
+
# @param AccountName: 账号,不传默认为 null,此时无法使用该登录方式进行登录。如果与同一媒体库内已有账号重复则报错。只能使用大小写字母、数字、中划线、下划线、小数点,长度不超过 50 个字符。
|
151
|
+
# @type AccountName: String
|
152
|
+
# @param AccountPassword: 密码的 base64 形式,不传默认为 null,此时无法使用该登录方式进行登录。AccountName 和 AccountPassword 必须同时传入或同时不传入。
|
153
|
+
# @type AccountPassword: String
|
154
|
+
# @param AccountUserId: 第三方账号 ID,用于关联第三方账号体系,不传默认为 null,此时无法使用该登录方式进行登录。如果与同一媒体库内已有第三方账号重复则报错。只能使用大小写字母、数字、中划线、下划线、小数点,长度不超过 200 个字符。
|
155
|
+
# @type AccountUserId: String
|
156
|
+
# @param Comment: 备注。不超过 255 个字符。
|
157
|
+
# @type Comment: String
|
158
|
+
# @param Nickname: 昵称。不超过 100 个字符。
|
159
|
+
# @type Nickname: String
|
160
|
+
# @param Avatar: 用户头像地址。不超过 255 个字符。
|
161
|
+
# @type Avatar: String
|
162
|
+
# @param Customize: 自定义信息。不超过 255 个字符。
|
163
|
+
# @type Customize: String
|
164
|
+
|
165
|
+
attr_accessor :LibraryId, :Role, :Enabled, :CountryCode, :PhoneNumber, :Email, :AccountName, :AccountPassword, :AccountUserId, :Comment, :Nickname, :Avatar, :Customize
|
166
|
+
|
167
|
+
def initialize(libraryid=nil, role=nil, enabled=nil, countrycode=nil, phonenumber=nil, email=nil, accountname=nil, accountpassword=nil, accountuserid=nil, comment=nil, nickname=nil, avatar=nil, customize=nil)
|
168
|
+
@LibraryId = libraryid
|
169
|
+
@Role = role
|
170
|
+
@Enabled = enabled
|
171
|
+
@CountryCode = countrycode
|
172
|
+
@PhoneNumber = phonenumber
|
173
|
+
@Email = email
|
174
|
+
@AccountName = accountname
|
175
|
+
@AccountPassword = accountpassword
|
176
|
+
@AccountUserId = accountuserid
|
177
|
+
@Comment = comment
|
178
|
+
@Nickname = nickname
|
179
|
+
@Avatar = avatar
|
180
|
+
@Customize = customize
|
181
|
+
end
|
182
|
+
|
183
|
+
def deserialize(params)
|
184
|
+
@LibraryId = params['LibraryId']
|
185
|
+
@Role = params['Role']
|
186
|
+
@Enabled = params['Enabled']
|
187
|
+
@CountryCode = params['CountryCode']
|
188
|
+
@PhoneNumber = params['PhoneNumber']
|
189
|
+
@Email = params['Email']
|
190
|
+
@AccountName = params['AccountName']
|
191
|
+
@AccountPassword = params['AccountPassword']
|
192
|
+
@AccountUserId = params['AccountUserId']
|
193
|
+
@Comment = params['Comment']
|
194
|
+
@Nickname = params['Nickname']
|
195
|
+
@Avatar = params['Avatar']
|
196
|
+
@Customize = params['Customize']
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
# CreateUser返回参数结构体
|
201
|
+
class CreateUserResponse < TencentCloud::Common::AbstractModel
|
202
|
+
# @param LibraryId: 用户所在的媒体库 ID。
|
203
|
+
# @type LibraryId: String
|
204
|
+
# @param UserId: 用户 ID。
|
205
|
+
# @type UserId: String
|
206
|
+
# @param CreationTime: 用户创建时间。
|
207
|
+
# @type CreationTime: String
|
208
|
+
# @param Role: 用户角色.
|
209
|
+
# @type Role: String
|
210
|
+
# @param Enabled: 是否启用。
|
211
|
+
# @type Enabled: Boolean
|
212
|
+
# @param CountryCode: 手机号国家码,如未指定则为 null。
|
213
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
214
|
+
# @type CountryCode: String
|
215
|
+
# @param PhoneNumber: 手机号码,如未指定则为 null。
|
216
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
217
|
+
# @type PhoneNumber: String
|
218
|
+
# @param Email: 邮箱,如未指定则为 null。
|
219
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
220
|
+
# @type Email: String
|
221
|
+
# @param AccountName: 账号,如未指定则为 null。
|
222
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
223
|
+
# @type AccountName: String
|
224
|
+
# @param AccountUserId: 第三方账号 ID,用于关联第三方账号体系,如未指定则为 null。
|
225
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
226
|
+
# @type AccountUserId: String
|
227
|
+
# @param Comment: 备注。
|
228
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
229
|
+
# @type Comment: String
|
230
|
+
# @param Nickname: 昵称。
|
231
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
232
|
+
# @type Nickname: String
|
233
|
+
# @param Avatar: 用户头像地址。
|
234
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
235
|
+
# @type Avatar: String
|
236
|
+
# @param Customize: 自定义信息。
|
237
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
238
|
+
# @type Customize: String
|
239
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
240
|
+
# @type RequestId: String
|
241
|
+
|
242
|
+
attr_accessor :LibraryId, :UserId, :CreationTime, :Role, :Enabled, :CountryCode, :PhoneNumber, :Email, :AccountName, :AccountUserId, :Comment, :Nickname, :Avatar, :Customize, :RequestId
|
243
|
+
|
244
|
+
def initialize(libraryid=nil, userid=nil, creationtime=nil, role=nil, enabled=nil, countrycode=nil, phonenumber=nil, email=nil, accountname=nil, accountuserid=nil, comment=nil, nickname=nil, avatar=nil, customize=nil, requestid=nil)
|
245
|
+
@LibraryId = libraryid
|
246
|
+
@UserId = userid
|
247
|
+
@CreationTime = creationtime
|
248
|
+
@Role = role
|
249
|
+
@Enabled = enabled
|
250
|
+
@CountryCode = countrycode
|
251
|
+
@PhoneNumber = phonenumber
|
252
|
+
@Email = email
|
253
|
+
@AccountName = accountname
|
254
|
+
@AccountUserId = accountuserid
|
255
|
+
@Comment = comment
|
256
|
+
@Nickname = nickname
|
257
|
+
@Avatar = avatar
|
258
|
+
@Customize = customize
|
259
|
+
@RequestId = requestid
|
260
|
+
end
|
261
|
+
|
262
|
+
def deserialize(params)
|
263
|
+
@LibraryId = params['LibraryId']
|
264
|
+
@UserId = params['UserId']
|
265
|
+
@CreationTime = params['CreationTime']
|
266
|
+
@Role = params['Role']
|
267
|
+
@Enabled = params['Enabled']
|
268
|
+
@CountryCode = params['CountryCode']
|
269
|
+
@PhoneNumber = params['PhoneNumber']
|
270
|
+
@Email = params['Email']
|
271
|
+
@AccountName = params['AccountName']
|
272
|
+
@AccountUserId = params['AccountUserId']
|
273
|
+
@Comment = params['Comment']
|
274
|
+
@Nickname = params['Nickname']
|
275
|
+
@Avatar = params['Avatar']
|
276
|
+
@Customize = params['Customize']
|
277
|
+
@RequestId = params['RequestId']
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
75
281
|
# DeleteLibrary请求参数结构体
|
76
282
|
class DeleteLibraryRequest < TencentCloud::Common::AbstractModel
|
77
283
|
# @param LibraryId: 媒体库 ID
|
@@ -104,6 +310,49 @@ module TencentCloud
|
|
104
310
|
end
|
105
311
|
end
|
106
312
|
|
313
|
+
# DeleteUser请求参数结构体
|
314
|
+
class DeleteUserRequest < TencentCloud::Common::AbstractModel
|
315
|
+
# @param LibraryId: 媒体库 ID。
|
316
|
+
# @type LibraryId: String
|
317
|
+
# @param Filters: 用于唯一查找用户的过滤器数组,数组之间为 **或** 的关系,即满足任意一个过滤器的用户,都将被删除,单次传入的过滤器最多为 100 个。
|
318
|
+
# @type Filters: Array
|
319
|
+
|
320
|
+
attr_accessor :LibraryId, :Filters
|
321
|
+
|
322
|
+
def initialize(libraryid=nil, filters=nil)
|
323
|
+
@LibraryId = libraryid
|
324
|
+
@Filters = filters
|
325
|
+
end
|
326
|
+
|
327
|
+
def deserialize(params)
|
328
|
+
@LibraryId = params['LibraryId']
|
329
|
+
unless params['Filters'].nil?
|
330
|
+
@Filters = []
|
331
|
+
params['Filters'].each do |i|
|
332
|
+
userfilter_tmp = UserFilter.new
|
333
|
+
userfilter_tmp.deserialize(i)
|
334
|
+
@Filters << userfilter_tmp
|
335
|
+
end
|
336
|
+
end
|
337
|
+
end
|
338
|
+
end
|
339
|
+
|
340
|
+
# DeleteUser返回参数结构体
|
341
|
+
class DeleteUserResponse < TencentCloud::Common::AbstractModel
|
342
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
343
|
+
# @type RequestId: String
|
344
|
+
|
345
|
+
attr_accessor :RequestId
|
346
|
+
|
347
|
+
def initialize(requestid=nil)
|
348
|
+
@RequestId = requestid
|
349
|
+
end
|
350
|
+
|
351
|
+
def deserialize(params)
|
352
|
+
@RequestId = params['RequestId']
|
353
|
+
end
|
354
|
+
end
|
355
|
+
|
107
356
|
# DescribeLibraries请求参数结构体
|
108
357
|
class DescribeLibrariesRequest < TencentCloud::Common::AbstractModel
|
109
358
|
# @param LibraryIds: 按照一个或者多个媒体库 ID 查询,每次请求的上限为 100 个。
|
@@ -384,6 +633,59 @@ module TencentCloud
|
|
384
633
|
end
|
385
634
|
end
|
386
635
|
|
636
|
+
# DescribeUserLifecycle请求参数结构体
|
637
|
+
class DescribeUserLifecycleRequest < TencentCloud::Common::AbstractModel
|
638
|
+
# @param LibraryId: 媒体库 ID。
|
639
|
+
# @type LibraryId: String
|
640
|
+
# @param Filter: 用于唯一查找用户的过滤器。
|
641
|
+
# @type Filter: :class:`Tencentcloud::Smh.v20210712.models.UserFilter`
|
642
|
+
|
643
|
+
attr_accessor :LibraryId, :Filter
|
644
|
+
|
645
|
+
def initialize(libraryid=nil, filter=nil)
|
646
|
+
@LibraryId = libraryid
|
647
|
+
@Filter = filter
|
648
|
+
end
|
649
|
+
|
650
|
+
def deserialize(params)
|
651
|
+
@LibraryId = params['LibraryId']
|
652
|
+
unless params['Filter'].nil?
|
653
|
+
@Filter = UserFilter.new
|
654
|
+
@Filter.deserialize(params['Filter'])
|
655
|
+
end
|
656
|
+
end
|
657
|
+
end
|
658
|
+
|
659
|
+
# DescribeUserLifecycle返回参数结构体
|
660
|
+
class DescribeUserLifecycleResponse < TencentCloud::Common::AbstractModel
|
661
|
+
# @param UserId: 用户 ID。
|
662
|
+
# @type UserId: String
|
663
|
+
# @param IsolateTime: 设置的隔离时间。
|
664
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
665
|
+
# @type IsolateTime: String
|
666
|
+
# @param DestroyTime: 设置的销毁时间。
|
667
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
668
|
+
# @type DestroyTime: String
|
669
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
670
|
+
# @type RequestId: String
|
671
|
+
|
672
|
+
attr_accessor :UserId, :IsolateTime, :DestroyTime, :RequestId
|
673
|
+
|
674
|
+
def initialize(userid=nil, isolatetime=nil, destroytime=nil, requestid=nil)
|
675
|
+
@UserId = userid
|
676
|
+
@IsolateTime = isolatetime
|
677
|
+
@DestroyTime = destroytime
|
678
|
+
@RequestId = requestid
|
679
|
+
end
|
680
|
+
|
681
|
+
def deserialize(params)
|
682
|
+
@UserId = params['UserId']
|
683
|
+
@IsolateTime = params['IsolateTime']
|
684
|
+
@DestroyTime = params['DestroyTime']
|
685
|
+
@RequestId = params['RequestId']
|
686
|
+
end
|
687
|
+
end
|
688
|
+
|
387
689
|
# 官方云盘实例信息
|
388
690
|
class Instance < TencentCloud::Common::AbstractModel
|
389
691
|
# @param InstanceId: 实例 ID
|
@@ -643,6 +945,154 @@ module TencentCloud
|
|
643
945
|
end
|
644
946
|
end
|
645
947
|
|
948
|
+
# ModifyUser请求参数结构体
|
949
|
+
class ModifyUserRequest < TencentCloud::Common::AbstractModel
|
950
|
+
# @param LibraryId: 媒体库 ID。
|
951
|
+
# @type LibraryId: String
|
952
|
+
# @param Filter: 用于唯一查找用户的过滤器。
|
953
|
+
# @type Filter: :class:`Tencentcloud::Smh.v20210712.models.UserFilter`
|
954
|
+
# @param Role: 用户角色,当只支持 user。
|
955
|
+
# @type Role: String
|
956
|
+
# @param Enabled: 是否启用。
|
957
|
+
# @type Enabled: Boolean
|
958
|
+
# @param CountryCode: 手机号国家码,不传默认为 null,此时无法使用该登录方式进行登录。
|
959
|
+
# @type CountryCode: String
|
960
|
+
# @param PhoneNumber: 手机号码,不传默认为 null,此时无法使用该登录方式进行登录。如果与同一媒体库内已有手机号重复则报错。CountryCode 和 PhoneNumber 必须同时传入或同时不传入。
|
961
|
+
# @type PhoneNumber: String
|
962
|
+
# @param Email: 邮箱,不传默认为 null,此时无法使用该登录方式进行登录。如果与同一媒体库内已有邮箱重复则报错。
|
963
|
+
# @type Email: String
|
964
|
+
# @param AccountName: 账号,不传默认为 null,此时无法使用该登录方式进行登录。如果与同一媒体库内已有账号重复则报错。只能使用大小写字母、数字、中划线、下划线、小数点,长度不超过 50 个字符。
|
965
|
+
# @type AccountName: String
|
966
|
+
# @param AccountPassword: 密码的 base64 形式,不传默认为 null,此时无法使用该登录方式进行登录。AccountName 和 AccountPassword 必须同时传入或同时不传入。
|
967
|
+
# @type AccountPassword: String
|
968
|
+
# @param AccountUserId: 第三方账号 ID,用于关联第三方账号体系,不传默认为 null,此时无法使用该登录方式进行登录。如果与同一媒体库内已有第三方账号重复则报错。只能使用大小写字母、数字、中划线、下划线、小数点,长度不超过 200 个字符。
|
969
|
+
# @type AccountUserId: String
|
970
|
+
# @param Comment: 备注。不超过 255 个字符。
|
971
|
+
# @type Comment: String
|
972
|
+
# @param Nickname: 昵称。不超过 100 个字符。
|
973
|
+
# @type Nickname: String
|
974
|
+
# @param Avatar: 用户头像地址。不超过 255 个字符。
|
975
|
+
# @type Avatar: String
|
976
|
+
# @param Customize: 自定义信息。不超过 255 个字符。
|
977
|
+
# @type Customize: String
|
978
|
+
|
979
|
+
attr_accessor :LibraryId, :Filter, :Role, :Enabled, :CountryCode, :PhoneNumber, :Email, :AccountName, :AccountPassword, :AccountUserId, :Comment, :Nickname, :Avatar, :Customize
|
980
|
+
|
981
|
+
def initialize(libraryid=nil, filter=nil, role=nil, enabled=nil, countrycode=nil, phonenumber=nil, email=nil, accountname=nil, accountpassword=nil, accountuserid=nil, comment=nil, nickname=nil, avatar=nil, customize=nil)
|
982
|
+
@LibraryId = libraryid
|
983
|
+
@Filter = filter
|
984
|
+
@Role = role
|
985
|
+
@Enabled = enabled
|
986
|
+
@CountryCode = countrycode
|
987
|
+
@PhoneNumber = phonenumber
|
988
|
+
@Email = email
|
989
|
+
@AccountName = accountname
|
990
|
+
@AccountPassword = accountpassword
|
991
|
+
@AccountUserId = accountuserid
|
992
|
+
@Comment = comment
|
993
|
+
@Nickname = nickname
|
994
|
+
@Avatar = avatar
|
995
|
+
@Customize = customize
|
996
|
+
end
|
997
|
+
|
998
|
+
def deserialize(params)
|
999
|
+
@LibraryId = params['LibraryId']
|
1000
|
+
unless params['Filter'].nil?
|
1001
|
+
@Filter = UserFilter.new
|
1002
|
+
@Filter.deserialize(params['Filter'])
|
1003
|
+
end
|
1004
|
+
@Role = params['Role']
|
1005
|
+
@Enabled = params['Enabled']
|
1006
|
+
@CountryCode = params['CountryCode']
|
1007
|
+
@PhoneNumber = params['PhoneNumber']
|
1008
|
+
@Email = params['Email']
|
1009
|
+
@AccountName = params['AccountName']
|
1010
|
+
@AccountPassword = params['AccountPassword']
|
1011
|
+
@AccountUserId = params['AccountUserId']
|
1012
|
+
@Comment = params['Comment']
|
1013
|
+
@Nickname = params['Nickname']
|
1014
|
+
@Avatar = params['Avatar']
|
1015
|
+
@Customize = params['Customize']
|
1016
|
+
end
|
1017
|
+
end
|
1018
|
+
|
1019
|
+
# ModifyUser返回参数结构体
|
1020
|
+
class ModifyUserResponse < TencentCloud::Common::AbstractModel
|
1021
|
+
# @param LibraryId: 用户所在的媒体库 ID。
|
1022
|
+
# @type LibraryId: String
|
1023
|
+
# @param UserId: 用户 ID。
|
1024
|
+
# @type UserId: String
|
1025
|
+
# @param CreationTime: 用户创建时间。
|
1026
|
+
# @type CreationTime: String
|
1027
|
+
# @param Role: 用户角色.
|
1028
|
+
# @type Role: String
|
1029
|
+
# @param Enabled: 是否启用。
|
1030
|
+
# @type Enabled: Boolean
|
1031
|
+
# @param CountryCode: 手机号国家码,如未指定则为 null。
|
1032
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1033
|
+
# @type CountryCode: String
|
1034
|
+
# @param PhoneNumber: 手机号码,如未指定则为 null。
|
1035
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1036
|
+
# @type PhoneNumber: String
|
1037
|
+
# @param Email: 邮箱,如未指定则为 null。
|
1038
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1039
|
+
# @type Email: String
|
1040
|
+
# @param AccountName: 账号,如未指定则为 null。
|
1041
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1042
|
+
# @type AccountName: String
|
1043
|
+
# @param AccountUserId: 第三方账号 ID,用于关联第三方账号体系,如未指定则为 null。
|
1044
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1045
|
+
# @type AccountUserId: String
|
1046
|
+
# @param Comment: 备注。
|
1047
|
+
# @type Comment: String
|
1048
|
+
# @param Nickname: 昵称。
|
1049
|
+
# @type Nickname: String
|
1050
|
+
# @param Avatar: 用户头像地址。
|
1051
|
+
# @type Avatar: String
|
1052
|
+
# @param Customize: 自定义信息。
|
1053
|
+
# @type Customize: String
|
1054
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1055
|
+
# @type RequestId: String
|
1056
|
+
|
1057
|
+
attr_accessor :LibraryId, :UserId, :CreationTime, :Role, :Enabled, :CountryCode, :PhoneNumber, :Email, :AccountName, :AccountUserId, :Comment, :Nickname, :Avatar, :Customize, :RequestId
|
1058
|
+
|
1059
|
+
def initialize(libraryid=nil, userid=nil, creationtime=nil, role=nil, enabled=nil, countrycode=nil, phonenumber=nil, email=nil, accountname=nil, accountuserid=nil, comment=nil, nickname=nil, avatar=nil, customize=nil, requestid=nil)
|
1060
|
+
@LibraryId = libraryid
|
1061
|
+
@UserId = userid
|
1062
|
+
@CreationTime = creationtime
|
1063
|
+
@Role = role
|
1064
|
+
@Enabled = enabled
|
1065
|
+
@CountryCode = countrycode
|
1066
|
+
@PhoneNumber = phonenumber
|
1067
|
+
@Email = email
|
1068
|
+
@AccountName = accountname
|
1069
|
+
@AccountUserId = accountuserid
|
1070
|
+
@Comment = comment
|
1071
|
+
@Nickname = nickname
|
1072
|
+
@Avatar = avatar
|
1073
|
+
@Customize = customize
|
1074
|
+
@RequestId = requestid
|
1075
|
+
end
|
1076
|
+
|
1077
|
+
def deserialize(params)
|
1078
|
+
@LibraryId = params['LibraryId']
|
1079
|
+
@UserId = params['UserId']
|
1080
|
+
@CreationTime = params['CreationTime']
|
1081
|
+
@Role = params['Role']
|
1082
|
+
@Enabled = params['Enabled']
|
1083
|
+
@CountryCode = params['CountryCode']
|
1084
|
+
@PhoneNumber = params['PhoneNumber']
|
1085
|
+
@Email = params['Email']
|
1086
|
+
@AccountName = params['AccountName']
|
1087
|
+
@AccountUserId = params['AccountUserId']
|
1088
|
+
@Comment = params['Comment']
|
1089
|
+
@Nickname = params['Nickname']
|
1090
|
+
@Avatar = params['Avatar']
|
1091
|
+
@Customize = params['Customize']
|
1092
|
+
@RequestId = params['RequestId']
|
1093
|
+
end
|
1094
|
+
end
|
1095
|
+
|
646
1096
|
# SendSmsCode请求参数结构体
|
647
1097
|
class SendSmsCodeRequest < TencentCloud::Common::AbstractModel
|
648
1098
|
# @param Purpose: 验证码目的,当前支持换绑超级管理员账号, BindSuperAdmin;体验版企业升级,ChannelUpdateVerify等
|
@@ -741,6 +1191,31 @@ module TencentCloud
|
|
741
1191
|
end
|
742
1192
|
end
|
743
1193
|
|
1194
|
+
# 用于唯一查找用户的过滤器。
|
1195
|
+
class UserFilter < TencentCloud::Common::AbstractModel
|
1196
|
+
# @param Key: 过滤类型,当前支持:UserId、PhoneNumber、Email、AccountName、AccountUserId。
|
1197
|
+
# @type Key: String
|
1198
|
+
# @param Value: 过滤值,只支持完全匹配,不支持模糊搜索。针对不同的 Key,Value 的取值如下:
|
1199
|
+
# UserId: user12345678abcde
|
1200
|
+
# PhoneNumber: +86-13800000000(格式为:{CountryCode}-{PhoneNumber})
|
1201
|
+
# Email: admin@mail.foobar.com
|
1202
|
+
# AccountName: account_name
|
1203
|
+
# AccountUserId: x53mYVqykfPqTCqekbNwwa4aXk4
|
1204
|
+
# @type Value: String
|
1205
|
+
|
1206
|
+
attr_accessor :Key, :Value
|
1207
|
+
|
1208
|
+
def initialize(key=nil, value=nil)
|
1209
|
+
@Key = key
|
1210
|
+
@Value = value
|
1211
|
+
end
|
1212
|
+
|
1213
|
+
def deserialize(params)
|
1214
|
+
@Key = params['Key']
|
1215
|
+
@Value = params['Value']
|
1216
|
+
end
|
1217
|
+
end
|
1218
|
+
|
744
1219
|
# VerifySmsCode请求参数结构体
|
745
1220
|
class VerifySmsCodeRequest < TencentCloud::Common::AbstractModel
|
746
1221
|
# @param Purpose: 验证码目的,当前支持换绑超级管理员账号,BindSuperAdmin;体验版企业升级验证ChannelUpdateVerify,等
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-smh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.883
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|