tencentcloud-sdk-evt 3.0.1176

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9801805f6bc474331e9acc6462374c30a7384ccd
4
+ data.tar.gz: 9519647066d733341f6dc1326f71ed068ead3ae8
5
+ SHA512:
6
+ metadata.gz: 3e9704f968f3a7b68015e9752ab2e423835274347954c6112da4fa2878ea4ae69fcfd2a42eb891d5629569edd7e2cf035c5d3ade8325a4c761e77d255cd9056c
7
+ data.tar.gz: 7e1f059aa6dcd4431d3794bf587993a09d10985ecc881bd7eeb56cf8ec543975a1b131721bc5bd5fba551b4d8fea3ddf7e41cb176c8c0ab6fedf085949489b97
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 3.0.1176
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20250217/client'
6
+ require_relative 'v20250217/models'
7
+
8
+ module TencentCloud
9
+ module Evt
10
+ end
11
+ end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2025 Tencent. 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 Evt
21
+ module V20250217
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2025-02-17'
26
+ api_endpoint = 'evt.tencentcloudapi.com'
27
+ sdk_version = 'EVT_' + 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 CreateRoleUser.
35
+ # @type request: :class:`Tencentcloud::evt::V20250217::CreateRoleUserRequest`
36
+ # @rtype: :class:`Tencentcloud::evt::V20250217::CreateRoleUserResponse`
37
+ def CreateRoleUser(request)
38
+ body = send_request('CreateRoleUser', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateRoleUserResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,106 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2025 Tencent. 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 Evt
19
+ module V20250217
20
+ # CreateRoleUser请求参数结构体
21
+ class CreateRoleUserRequest < TencentCloud::Common::AbstractModel
22
+ # @param RoleSystemId: 角色体系ID
23
+ # @type RoleSystemId: Integer
24
+ # @param UserId: 人员ID
25
+ # @type UserId: String
26
+ # @param Username: 人员名称
27
+ # @type Username: String
28
+ # @param Enabled: 是否启用
29
+ # @type Enabled: Integer
30
+ # @param Phone: 手机号
31
+ # @type Phone: String
32
+ # @param Attributes: 属性列表
33
+ # @type Attributes: Array
34
+
35
+ attr_accessor :RoleSystemId, :UserId, :Username, :Enabled, :Phone, :Attributes
36
+
37
+ def initialize(rolesystemid=nil, userid=nil, username=nil, enabled=nil, phone=nil, attributes=nil)
38
+ @RoleSystemId = rolesystemid
39
+ @UserId = userid
40
+ @Username = username
41
+ @Enabled = enabled
42
+ @Phone = phone
43
+ @Attributes = attributes
44
+ end
45
+
46
+ def deserialize(params)
47
+ @RoleSystemId = params['RoleSystemId']
48
+ @UserId = params['UserId']
49
+ @Username = params['Username']
50
+ @Enabled = params['Enabled']
51
+ @Phone = params['Phone']
52
+ unless params['Attributes'].nil?
53
+ @Attributes = []
54
+ params['Attributes'].each do |i|
55
+ userattribute_tmp = UserAttribute.new
56
+ userattribute_tmp.deserialize(i)
57
+ @Attributes << userattribute_tmp
58
+ end
59
+ end
60
+ end
61
+ end
62
+
63
+ # CreateRoleUser返回参数结构体
64
+ class CreateRoleUserResponse < TencentCloud::Common::AbstractModel
65
+ # @param UserId: 人员ID
66
+ # @type UserId: String
67
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
68
+ # @type RequestId: String
69
+
70
+ attr_accessor :UserId, :RequestId
71
+
72
+ def initialize(userid=nil, requestid=nil)
73
+ @UserId = userid
74
+ @RequestId = requestid
75
+ end
76
+
77
+ def deserialize(params)
78
+ @UserId = params['UserId']
79
+ @RequestId = params['RequestId']
80
+ end
81
+ end
82
+
83
+ # 人员属性
84
+ class UserAttribute < TencentCloud::Common::AbstractModel
85
+ # @param Key: 属性键名
86
+ # @type Key: String
87
+ # @param Value: 属性值
88
+ # @type Value: Array
89
+
90
+ attr_accessor :Key, :Value
91
+
92
+ def initialize(key=nil, value=nil)
93
+ @Key = key
94
+ @Value = value
95
+ end
96
+
97
+ def deserialize(params)
98
+ @Key = params['Key']
99
+ @Value = params['Value']
100
+ end
101
+ end
102
+
103
+ end
104
+ end
105
+ end
106
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-evt
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.1176
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2025-12-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tencentcloud-sdk-common
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ description: Tencent Cloud Ruby SDK is the official software development kit, which
28
+ allows Ruby developers to write software that makes use of Tencent Cloud service
29
+ EVT.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/tencentcloud-sdk-evt.rb
37
+ - lib/v20250217/models.rb
38
+ - lib/v20250217/client.rb
39
+ - lib/VERSION
40
+ homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
+ licenses:
42
+ - Apache-2.0
43
+ metadata:
44
+ source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-evt
45
+ changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.0.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - EVT
66
+ test_files: []