tencentcloud-sdk-apigateway 3.0.388 → 3.0.395

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1191cd2aecaf743cc6567eee59187966323d7fd2
4
- data.tar.gz: ede498222559d4565e6c68a17978b794081572a2
3
+ metadata.gz: b102bd7af081db76957e9909139e2e9e044809de
4
+ data.tar.gz: ee849cd7439550d3817c199f5258ca1efed6914a
5
5
  SHA512:
6
- metadata.gz: 0728d2a751dc8b2f71db979cb49e86be7344d0cb7b09493a414e4dda54598c87007e9d4b2152d023309f1dd6946d20bf1736f711fb82a48cc6c404fcbd9105c3
7
- data.tar.gz: 4069429d5f2753f12ecc7ef1cf7a0560d315bfaac0fb73858d4d922d785a287f960b76d654b1c88405d5750107f3a3cf1bebe31d6faaef9de4c2d88003af8617
6
+ metadata.gz: f7518f223579825da1e8daa7f5a98859e4cfc341d3dc7a2e27fd6a911f5380b0e72c05114cf727403c0c7f80d097061182447521a45266285b5c861a119a074f
7
+ data.tar.gz: f970e2df83cbaa39eb07bdde18c3aa36eb4ea9fad335f21c4e1aa2080c2a17d6860af3d984d6ab9dddb747204a5218beb65574acc4dc68eb62e82adfd73dbe14
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.388
1
+ 3.0.395
@@ -1752,6 +1752,30 @@ module TencentCloud
1752
1752
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1753
1753
  end
1754
1754
 
1755
+ # 本接口(ImportOpenApi)用于将OpenAPI规范定义的API导入到API网关。
1756
+
1757
+ # @param request: Request instance for ImportOpenApi.
1758
+ # @type request: :class:`Tencentcloud::apigateway::V20180808::ImportOpenApiRequest`
1759
+ # @rtype: :class:`Tencentcloud::apigateway::V20180808::ImportOpenApiResponse`
1760
+ def ImportOpenApi(request)
1761
+ body = send_request('ImportOpenApi', request.serialize)
1762
+ response = JSON.parse(body)
1763
+ if response['Response'].key?('Error') == false
1764
+ model = ImportOpenApiResponse.new
1765
+ model.deserialize(response['Response'])
1766
+ model
1767
+ else
1768
+ code = response['Response']['Error']['Code']
1769
+ message = response['Response']['Error']['Message']
1770
+ reqid = response['Response']['RequestId']
1771
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1772
+ end
1773
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1774
+ raise e
1775
+ rescue StandardError => e
1776
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1777
+ end
1778
+
1755
1779
  # 修改 API 文档
1756
1780
 
1757
1781
  # @param request: Request instance for ModifyAPIDoc.
@@ -2144,6 +2144,33 @@ module TencentCloud
2144
2144
  end
2145
2145
  end
2146
2146
 
2147
+ # CreateApiRsp 返回加TotalCount
2148
+ class CreateApiRspSet < TencentCloud::Common::AbstractModel
2149
+ # @param TotalCount: 个数
2150
+ # @type TotalCount: Integer
2151
+ # @param ApiSet: 返回的数组
2152
+ # @type ApiSet: Array
2153
+
2154
+ attr_accessor :TotalCount, :ApiSet
2155
+
2156
+ def initialize(totalcount=nil, apiset=nil)
2157
+ @TotalCount = totalcount
2158
+ @ApiSet = apiset
2159
+ end
2160
+
2161
+ def deserialize(params)
2162
+ @TotalCount = params['TotalCount']
2163
+ unless params['ApiSet'].nil?
2164
+ @ApiSet = []
2165
+ params['ApiSet'].each do |i|
2166
+ createapirsp_tmp = CreateApiRsp.new
2167
+ createapirsp_tmp.deserialize(i)
2168
+ @ApiSet << createapirsp_tmp
2169
+ end
2170
+ end
2171
+ end
2172
+ end
2173
+
2147
2174
  # CreateIPStrategy请求参数结构体
2148
2175
  class CreateIPStrategyRequest < TencentCloud::Common::AbstractModel
2149
2176
  # @param ServiceId: 服务的唯一ID。
@@ -6024,6 +6051,57 @@ module TencentCloud
6024
6051
  end
6025
6052
  end
6026
6053
 
6054
+ # ImportOpenApi请求参数结构体
6055
+ class ImportOpenApiRequest < TencentCloud::Common::AbstractModel
6056
+ # @param ServiceId: API所在的服务唯一ID。
6057
+ # @type ServiceId: String
6058
+ # @param Content: openAPI正文内容。
6059
+ # @type Content: String
6060
+ # @param EncodeType: Content格式,只能是YAML或者JSON,默认是YAML。
6061
+ # @type EncodeType: String
6062
+ # @param ContentVersion: Content版本,默认是openAPI,目前只支持openAPI。
6063
+ # @type ContentVersion: String
6064
+
6065
+ attr_accessor :ServiceId, :Content, :EncodeType, :ContentVersion
6066
+
6067
+ def initialize(serviceid=nil, content=nil, encodetype=nil, contentversion=nil)
6068
+ @ServiceId = serviceid
6069
+ @Content = content
6070
+ @EncodeType = encodetype
6071
+ @ContentVersion = contentversion
6072
+ end
6073
+
6074
+ def deserialize(params)
6075
+ @ServiceId = params['ServiceId']
6076
+ @Content = params['Content']
6077
+ @EncodeType = params['EncodeType']
6078
+ @ContentVersion = params['ContentVersion']
6079
+ end
6080
+ end
6081
+
6082
+ # ImportOpenApi返回参数结构体
6083
+ class ImportOpenApiResponse < TencentCloud::Common::AbstractModel
6084
+ # @param Result: 导入OpenApi返回参数。
6085
+ # @type Result: :class:`Tencentcloud::Apigateway.v20180808.models.CreateApiRspSet`
6086
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6087
+ # @type RequestId: String
6088
+
6089
+ attr_accessor :Result, :RequestId
6090
+
6091
+ def initialize(result=nil, requestid=nil)
6092
+ @Result = result
6093
+ @RequestId = requestid
6094
+ end
6095
+
6096
+ def deserialize(params)
6097
+ unless params['Result'].nil?
6098
+ @Result = CreateApiRspSet.new
6099
+ @Result.deserialize(params['Result'])
6100
+ end
6101
+ @RequestId = params['RequestId']
6102
+ end
6103
+ end
6104
+
6027
6105
  # 独享实例预付费详情
6028
6106
  class InstanceChargePrepaid < TencentCloud::Common::AbstractModel
6029
6107
  # @param RenewFlag: 自动续费标示
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-apigateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.388
4
+ version: 3.0.395
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-16 00:00:00.000000000 Z
11
+ date: 2022-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common