tencentcloud-sdk-csxg 3.0.574

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: c9074b051ca5b747c2800cb4e878533f01858430
4
+ data.tar.gz: 65dc04fdf16d710763f60ed5ff45099c8532b5ff
5
+ SHA512:
6
+ metadata.gz: 201ff10172abcfc88e65e9f97f30b098d0abbcf3ada054453d12e7fa813a612b9f768baf069df887492416df41c0fb7e4814e11c6baf0bf7ad7d7b89df522623
7
+ data.tar.gz: c26517f8b1a7d4fbb7050f0484dc760f8a91a9f7162fbc8421d9795b7990f1ae6938cba613227e6683a7e4b2f6ccc3338ab71841b311f9b12416eed01563cf73
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 3.0.574
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20230303/client'
6
+ require_relative 'v20230303/models'
7
+
8
+ module TencentCloud
9
+ module Csxg
10
+ end
11
+ end
@@ -0,0 +1,156 @@
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 Csxg
21
+ module V20230303
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2023-03-03'
26
+ api_endpoint = 'csxg.tencentcloudapi.com'
27
+ sdk_version = 'CSXG_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 创建5G入云服务接口
33
+
34
+ # @param request: Request instance for Create5GInstance.
35
+ # @type request: :class:`Tencentcloud::csxg::V20230303::Create5GInstanceRequest`
36
+ # @rtype: :class:`Tencentcloud::csxg::V20230303::Create5GInstanceResponse`
37
+ def Create5GInstance(request)
38
+ body = send_request('Create5GInstance', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = Create5GInstanceResponse.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
+ # 删除5G入云服务
57
+
58
+ # @param request: Request instance for Delete5GInstance.
59
+ # @type request: :class:`Tencentcloud::csxg::V20230303::Delete5GInstanceRequest`
60
+ # @rtype: :class:`Tencentcloud::csxg::V20230303::Delete5GInstanceResponse`
61
+ def Delete5GInstance(request)
62
+ body = send_request('Delete5GInstance', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = Delete5GInstanceResponse.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
+ # 查询APN信息
81
+
82
+ # @param request: Request instance for Describe5GAPNs.
83
+ # @type request: :class:`Tencentcloud::csxg::V20230303::Describe5GAPNsRequest`
84
+ # @rtype: :class:`Tencentcloud::csxg::V20230303::Describe5GAPNsResponse`
85
+ def Describe5GAPNs(request)
86
+ body = send_request('Describe5GAPNs', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = Describe5GAPNsResponse.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
+ # 查询5G入云服务
105
+
106
+ # @param request: Request instance for Describe5GInstances.
107
+ # @type request: :class:`Tencentcloud::csxg::V20230303::Describe5GInstancesRequest`
108
+ # @rtype: :class:`Tencentcloud::csxg::V20230303::Describe5GInstancesResponse`
109
+ def Describe5GInstances(request)
110
+ body = send_request('Describe5GInstances', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = Describe5GInstancesResponse.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
+ # 修改5G入云服务
129
+
130
+ # @param request: Request instance for Modify5GInstanceAttribute.
131
+ # @type request: :class:`Tencentcloud::csxg::V20230303::Modify5GInstanceAttributeRequest`
132
+ # @rtype: :class:`Tencentcloud::csxg::V20230303::Modify5GInstanceAttributeResponse`
133
+ def Modify5GInstanceAttribute(request)
134
+ body = send_request('Modify5GInstanceAttribute', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = Modify5GInstanceAttributeResponse.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
+ end
154
+ end
155
+ end
156
+ end
@@ -0,0 +1,158 @@
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 Csxg
19
+ module V20230303
20
+ # Create5GInstance请求参数结构体
21
+ class Create5GInstanceRequest < TencentCloud::Common::AbstractModel
22
+
23
+
24
+ def initialize()
25
+ end
26
+
27
+ def deserialize(params)
28
+ end
29
+ end
30
+
31
+ # Create5GInstance返回参数结构体
32
+ class Create5GInstanceResponse < TencentCloud::Common::AbstractModel
33
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
34
+ # @type RequestId: String
35
+
36
+ attr_accessor :RequestId
37
+
38
+ def initialize(requestid=nil)
39
+ @RequestId = requestid
40
+ end
41
+
42
+ def deserialize(params)
43
+ @RequestId = params['RequestId']
44
+ end
45
+ end
46
+
47
+ # Delete5GInstance请求参数结构体
48
+ class Delete5GInstanceRequest < TencentCloud::Common::AbstractModel
49
+
50
+
51
+ def initialize()
52
+ end
53
+
54
+ def deserialize(params)
55
+ end
56
+ end
57
+
58
+ # Delete5GInstance返回参数结构体
59
+ class Delete5GInstanceResponse < TencentCloud::Common::AbstractModel
60
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
61
+ # @type RequestId: String
62
+
63
+ attr_accessor :RequestId
64
+
65
+ def initialize(requestid=nil)
66
+ @RequestId = requestid
67
+ end
68
+
69
+ def deserialize(params)
70
+ @RequestId = params['RequestId']
71
+ end
72
+ end
73
+
74
+ # Describe5GAPNs请求参数结构体
75
+ class Describe5GAPNsRequest < TencentCloud::Common::AbstractModel
76
+
77
+
78
+ def initialize()
79
+ end
80
+
81
+ def deserialize(params)
82
+ end
83
+ end
84
+
85
+ # Describe5GAPNs返回参数结构体
86
+ class Describe5GAPNsResponse < TencentCloud::Common::AbstractModel
87
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
88
+ # @type RequestId: String
89
+
90
+ attr_accessor :RequestId
91
+
92
+ def initialize(requestid=nil)
93
+ @RequestId = requestid
94
+ end
95
+
96
+ def deserialize(params)
97
+ @RequestId = params['RequestId']
98
+ end
99
+ end
100
+
101
+ # Describe5GInstances请求参数结构体
102
+ class Describe5GInstancesRequest < TencentCloud::Common::AbstractModel
103
+
104
+
105
+ def initialize()
106
+ end
107
+
108
+ def deserialize(params)
109
+ end
110
+ end
111
+
112
+ # Describe5GInstances返回参数结构体
113
+ class Describe5GInstancesResponse < TencentCloud::Common::AbstractModel
114
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
115
+ # @type RequestId: String
116
+
117
+ attr_accessor :RequestId
118
+
119
+ def initialize(requestid=nil)
120
+ @RequestId = requestid
121
+ end
122
+
123
+ def deserialize(params)
124
+ @RequestId = params['RequestId']
125
+ end
126
+ end
127
+
128
+ # Modify5GInstanceAttribute请求参数结构体
129
+ class Modify5GInstanceAttributeRequest < TencentCloud::Common::AbstractModel
130
+
131
+
132
+ def initialize()
133
+ end
134
+
135
+ def deserialize(params)
136
+ end
137
+ end
138
+
139
+ # Modify5GInstanceAttribute返回参数结构体
140
+ class Modify5GInstanceAttributeResponse < TencentCloud::Common::AbstractModel
141
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
142
+ # @type RequestId: String
143
+
144
+ attr_accessor :RequestId
145
+
146
+ def initialize(requestid=nil)
147
+ @RequestId = requestid
148
+ end
149
+
150
+ def deserialize(params)
151
+ @RequestId = params['RequestId']
152
+ end
153
+ end
154
+
155
+ end
156
+ end
157
+ end
158
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-csxg
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.574
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-05-22 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
+ CSXG.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/v20230303/client.rb
37
+ - lib/v20230303/models.rb
38
+ - lib/tencentcloud-sdk-csxg.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-csxg
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 - CSXG
66
+ test_files: []