tencentcloud-sdk-apigateway 3.0.389 → 3.0.396

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: 63a87c7085a80d86deb1d76240aeac623c59dc2c
4
- data.tar.gz: 02ea0e095d5d83f6d8ea2a17467a8815603ea31c
3
+ metadata.gz: 707bde035d66852157ec5447a6c29d91436f704e
4
+ data.tar.gz: 0832ab0ea3aa1b4de20feeba624c4814bf5d3111
5
5
  SHA512:
6
- metadata.gz: e9578e9e6b62f823c0e68a05602206f94c5c16ac5f29477f419d71b2500246e6be919c87066c71343f0b2e643c20295151f719f46b4aaf6c0db83835b39ff1fb
7
- data.tar.gz: db52727e433853ba012448428678a776228fcfa38ed24acae3601daadcb2c6da9d61b45d92996544ec14851112ac1d8c0d94c28f611367ea3fc3fb3a4626a351
6
+ metadata.gz: dea39a58c91120dceb37dd683ed9b9467c93194c9177370b055fda7c9657bf85fb45a7df207363bde0b41a78d97fec2e187445400c89a00fbc2cf44287a05dde
7
+ data.tar.gz: 06eacadfc2df406e407ac470f70f0890b4a9c2e566ead21c99b6f12e3658e720f9f558f67cc1ffe36d39ced86020dfc83d09c083171e0099132115840b1d7512
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.389
1
+ 3.0.396
@@ -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.389
4
+ version: 3.0.396
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-17 00:00:00.000000000 Z
11
+ date: 2022-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common