kb-cloud-client-typescript 2.3.0-alpha.185 → 2.3.0-alpha.186
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.
- package/dist/adminapi/apis/environment-api.d.ts +56 -0
- package/dist/adminapi/apis/environment-api.d.ts.map +1 -1
- package/dist/adminapi/apis/environment-api.js +69 -0
- package/dist/adminapi/apis/environment-api.js.map +1 -1
- package/dist/adminapi/models/component-item-create.d.ts +7 -0
- package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
- package/dist/adminapi/models/component-item.d.ts +7 -0
- package/dist/adminapi/models/component-item.d.ts.map +1 -1
- package/dist/adminapi/models/component-network.d.ts +26 -0
- package/dist/adminapi/models/component-network.d.ts.map +1 -0
- package/dist/adminapi/models/component-network.js +16 -0
- package/dist/adminapi/models/component-network.js.map +1 -0
- package/dist/adminapi/models/environment-create.d.ts +7 -0
- package/dist/adminapi/models/environment-create.d.ts.map +1 -1
- package/dist/adminapi/models/environment-update.d.ts +7 -0
- package/dist/adminapi/models/environment-update.d.ts.map +1 -1
- package/dist/adminapi/models/environment.d.ts +7 -0
- package/dist/adminapi/models/environment.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +9 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +9 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/ip-pool-ipfamily.d.ts +22 -0
- package/dist/adminapi/models/ip-pool-ipfamily.d.ts.map +1 -0
- package/dist/adminapi/models/ip-pool-ipfamily.js +26 -0
- package/dist/adminapi/models/ip-pool-ipfamily.js.map +1 -0
- package/dist/adminapi/models/ip-pool-list.d.ts +26 -0
- package/dist/adminapi/models/ip-pool-list.d.ts.map +1 -0
- package/dist/adminapi/models/ip-pool-list.js +16 -0
- package/dist/adminapi/models/ip-pool-list.js.map +1 -0
- package/dist/adminapi/models/ip-pool-provider-list.d.ts +40 -0
- package/dist/adminapi/models/ip-pool-provider-list.d.ts.map +1 -0
- package/dist/adminapi/models/ip-pool-provider-list.js +16 -0
- package/dist/adminapi/models/ip-pool-provider-list.js.map +1 -0
- package/dist/adminapi/models/ip-pool-provider.d.ts +21 -0
- package/dist/adminapi/models/ip-pool-provider.d.ts.map +1 -0
- package/dist/adminapi/models/ip-pool-provider.js +25 -0
- package/dist/adminapi/models/ip-pool-provider.js.map +1 -0
- package/dist/adminapi/models/ip-pool-selection-policy.d.ts +32 -0
- package/dist/adminapi/models/ip-pool-selection-policy.d.ts.map +1 -0
- package/dist/adminapi/models/ip-pool-selection-policy.js +16 -0
- package/dist/adminapi/models/ip-pool-selection-policy.js.map +1 -0
- package/dist/adminapi/models/ip-pool-selection-requirement.d.ts +23 -0
- package/dist/adminapi/models/ip-pool-selection-requirement.d.ts.map +1 -0
- package/dist/adminapi/models/ip-pool-selection-requirement.js +27 -0
- package/dist/adminapi/models/ip-pool-selection-requirement.js.map +1 -0
- package/dist/adminapi/models/ip-pool-selection.d.ts +38 -0
- package/dist/adminapi/models/ip-pool-selection.d.ts.map +1 -0
- package/dist/adminapi/models/ip-pool-selection.js +16 -0
- package/dist/adminapi/models/ip-pool-selection.js.map +1 -0
- package/dist/adminapi/models/ip-pool.d.ts +80 -0
- package/dist/adminapi/models/ip-pool.d.ts.map +1 -0
- package/dist/adminapi/models/ip-pool.js +16 -0
- package/dist/adminapi/models/ip-pool.js.map +1 -0
- package/dist/internalapi/models/component-item.d.ts +7 -0
- package/dist/internalapi/models/component-item.d.ts.map +1 -1
- package/dist/internalapi/models/component-network.d.ts +26 -0
- package/dist/internalapi/models/component-network.d.ts.map +1 -0
- package/dist/internalapi/models/component-network.js +16 -0
- package/dist/internalapi/models/component-network.js.map +1 -0
- package/dist/internalapi/models/index.d.ts +3 -0
- package/dist/internalapi/models/index.d.ts.map +1 -1
- package/dist/internalapi/models/index.js +3 -0
- package/dist/internalapi/models/index.js.map +1 -1
- package/dist/internalapi/models/ip-pool-provider.d.ts +21 -0
- package/dist/internalapi/models/ip-pool-provider.d.ts.map +1 -0
- package/dist/internalapi/models/ip-pool-provider.js +25 -0
- package/dist/internalapi/models/ip-pool-provider.js.map +1 -0
- package/dist/internalapi/models/ip-pool-selection.d.ts +38 -0
- package/dist/internalapi/models/ip-pool-selection.d.ts.map +1 -0
- package/dist/internalapi/models/ip-pool-selection.js +16 -0
- package/dist/internalapi/models/ip-pool-selection.js.map +1 -0
- package/dist/openapi/apis/environment-api.d.ts +64 -0
- package/dist/openapi/apis/environment-api.d.ts.map +1 -1
- package/dist/openapi/apis/environment-api.js +74 -0
- package/dist/openapi/apis/environment-api.js.map +1 -1
- package/dist/openapi/models/component-item-create.d.ts +7 -0
- package/dist/openapi/models/component-item-create.d.ts.map +1 -1
- package/dist/openapi/models/component-item.d.ts +7 -0
- package/dist/openapi/models/component-item.d.ts.map +1 -1
- package/dist/openapi/models/component-network.d.ts +26 -0
- package/dist/openapi/models/component-network.d.ts.map +1 -0
- package/dist/openapi/models/component-network.js +16 -0
- package/dist/openapi/models/component-network.js.map +1 -0
- package/dist/openapi/models/environment.d.ts +7 -0
- package/dist/openapi/models/environment.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +9 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +9 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/ip-pool-ipfamily.d.ts +22 -0
- package/dist/openapi/models/ip-pool-ipfamily.d.ts.map +1 -0
- package/dist/openapi/models/ip-pool-ipfamily.js +26 -0
- package/dist/openapi/models/ip-pool-ipfamily.js.map +1 -0
- package/dist/openapi/models/ip-pool-list.d.ts +26 -0
- package/dist/openapi/models/ip-pool-list.d.ts.map +1 -0
- package/dist/openapi/models/ip-pool-list.js +16 -0
- package/dist/openapi/models/ip-pool-list.js.map +1 -0
- package/dist/openapi/models/ip-pool-provider-list.d.ts +40 -0
- package/dist/openapi/models/ip-pool-provider-list.d.ts.map +1 -0
- package/dist/openapi/models/ip-pool-provider-list.js +16 -0
- package/dist/openapi/models/ip-pool-provider-list.js.map +1 -0
- package/dist/openapi/models/ip-pool-provider.d.ts +21 -0
- package/dist/openapi/models/ip-pool-provider.d.ts.map +1 -0
- package/dist/openapi/models/ip-pool-provider.js +25 -0
- package/dist/openapi/models/ip-pool-provider.js.map +1 -0
- package/dist/openapi/models/ip-pool-selection-policy.d.ts +32 -0
- package/dist/openapi/models/ip-pool-selection-policy.d.ts.map +1 -0
- package/dist/openapi/models/ip-pool-selection-policy.js +16 -0
- package/dist/openapi/models/ip-pool-selection-policy.js.map +1 -0
- package/dist/openapi/models/ip-pool-selection-requirement.d.ts +23 -0
- package/dist/openapi/models/ip-pool-selection-requirement.d.ts.map +1 -0
- package/dist/openapi/models/ip-pool-selection-requirement.js +27 -0
- package/dist/openapi/models/ip-pool-selection-requirement.js.map +1 -0
- package/dist/openapi/models/ip-pool-selection.d.ts +38 -0
- package/dist/openapi/models/ip-pool-selection.d.ts.map +1 -0
- package/dist/openapi/models/ip-pool-selection.js +16 -0
- package/dist/openapi/models/ip-pool-selection.js.map +1 -0
- package/dist/openapi/models/ip-pool.d.ts +80 -0
- package/dist/openapi/models/ip-pool.d.ts.map +1 -0
- package/dist/openapi/models/ip-pool.js +16 -0
- package/dist/openapi/models/ip-pool.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +9 -0
- package/src/adminapi/apis/environment-api.ts +102 -0
- package/src/adminapi/models/component-item-create.ts +9 -0
- package/src/adminapi/models/component-item.ts +9 -0
- package/src/adminapi/models/component-network.ts +33 -0
- package/src/adminapi/models/environment-create.ts +9 -0
- package/src/adminapi/models/environment-update.ts +9 -0
- package/src/adminapi/models/environment.ts +9 -0
- package/src/adminapi/models/index.ts +9 -0
- package/src/adminapi/models/ip-pool-ipfamily.ts +31 -0
- package/src/adminapi/models/ip-pool-list.ts +33 -0
- package/src/adminapi/models/ip-pool-provider-list.ts +53 -0
- package/src/adminapi/models/ip-pool-provider.ts +30 -0
- package/src/adminapi/models/ip-pool-selection-policy.ts +41 -0
- package/src/adminapi/models/ip-pool-selection-requirement.ts +32 -0
- package/src/adminapi/models/ip-pool-selection.ts +47 -0
- package/src/adminapi/models/ip-pool.ts +89 -0
- package/src/adminapi.yaml +155 -0
- package/src/internalapi/.openapi-generator/FILES +3 -0
- package/src/internalapi/models/component-item.ts +9 -0
- package/src/internalapi/models/component-network.ts +33 -0
- package/src/internalapi/models/index.ts +3 -0
- package/src/internalapi/models/ip-pool-provider.ts +30 -0
- package/src/internalapi/models/ip-pool-selection.ts +47 -0
- package/src/internalapi.yaml +31 -0
- package/src/openapi/.openapi-generator/FILES +9 -0
- package/src/openapi/apis/environment-api.ts +114 -0
- package/src/openapi/models/component-item-create.ts +9 -0
- package/src/openapi/models/component-item.ts +9 -0
- package/src/openapi/models/component-network.ts +33 -0
- package/src/openapi/models/environment.ts +9 -0
- package/src/openapi/models/index.ts +9 -0
- package/src/openapi/models/ip-pool-ipfamily.ts +31 -0
- package/src/openapi/models/ip-pool-list.ts +33 -0
- package/src/openapi/models/ip-pool-provider-list.ts +53 -0
- package/src/openapi/models/ip-pool-provider.ts +30 -0
- package/src/openapi/models/ip-pool-selection-policy.ts +41 -0
- package/src/openapi/models/ip-pool-selection-requirement.ts +32 -0
- package/src/openapi/models/ip-pool-selection.ts +47 -0
- package/src/openapi/models/ip-pool.ts +89 -0
- package/src/openapi.yaml +154 -2
package/src/adminapi.yaml
CHANGED
|
@@ -11011,6 +11011,34 @@ paths:
|
|
|
11011
11011
|
$ref: '#/components/responses/403'
|
|
11012
11012
|
'404':
|
|
11013
11013
|
$ref: '#/components/responses/404'
|
|
11014
|
+
/admin/v1/environments/{environmentName}/network/ipPools:
|
|
11015
|
+
get:
|
|
11016
|
+
tags:
|
|
11017
|
+
- environment
|
|
11018
|
+
operationId: listEnvironmentIPPools
|
|
11019
|
+
summary: Discover Pod IP pools and explicit selection policy in an environment
|
|
11020
|
+
parameters:
|
|
11021
|
+
- description: name of the Environment
|
|
11022
|
+
in: path
|
|
11023
|
+
name: environmentName
|
|
11024
|
+
required: true
|
|
11025
|
+
schema:
|
|
11026
|
+
type: string
|
|
11027
|
+
responses:
|
|
11028
|
+
'200':
|
|
11029
|
+
description: OK
|
|
11030
|
+
content:
|
|
11031
|
+
application/json:
|
|
11032
|
+
schema:
|
|
11033
|
+
$ref: '#/components/schemas/ipPoolList'
|
|
11034
|
+
'400':
|
|
11035
|
+
$ref: '#/components/responses/400'
|
|
11036
|
+
'401':
|
|
11037
|
+
$ref: '#/components/responses/401'
|
|
11038
|
+
'403':
|
|
11039
|
+
$ref: '#/components/responses/403'
|
|
11040
|
+
'404':
|
|
11041
|
+
$ref: '#/components/responses/404'
|
|
11014
11042
|
/admin/v1/environmentObjectStorage:
|
|
11015
11043
|
post:
|
|
11016
11044
|
operationId: listEnvironmentObjectStorage
|
|
@@ -24880,6 +24908,35 @@ components:
|
|
|
24880
24908
|
$ref: '#/components/schemas/ioQuantity'
|
|
24881
24909
|
ioReserves:
|
|
24882
24910
|
$ref: '#/components/schemas/ioQuantity'
|
|
24911
|
+
ipPoolProvider:
|
|
24912
|
+
type: string
|
|
24913
|
+
description: KBE provider used for Pod IP pool discovery and explicit selection.
|
|
24914
|
+
enum:
|
|
24915
|
+
- spiderpool
|
|
24916
|
+
ipPoolSelection:
|
|
24917
|
+
type: object
|
|
24918
|
+
description: Provider-qualified Pod IP pool selection for component pod IP allocation.
|
|
24919
|
+
required:
|
|
24920
|
+
- provider
|
|
24921
|
+
properties:
|
|
24922
|
+
provider:
|
|
24923
|
+
$ref: '#/components/schemas/ipPoolProvider'
|
|
24924
|
+
ipv4Pools:
|
|
24925
|
+
type: array
|
|
24926
|
+
items:
|
|
24927
|
+
type: string
|
|
24928
|
+
description: IPv4 pool names resolved within the selected provider.
|
|
24929
|
+
ipv6Pools:
|
|
24930
|
+
type: array
|
|
24931
|
+
items:
|
|
24932
|
+
type: string
|
|
24933
|
+
description: IPv6 pool names resolved within the selected provider.
|
|
24934
|
+
componentNetwork:
|
|
24935
|
+
type: object
|
|
24936
|
+
description: Per-component network configuration.
|
|
24937
|
+
properties:
|
|
24938
|
+
ipPool:
|
|
24939
|
+
$ref: '#/components/schemas/ipPoolSelection'
|
|
24883
24940
|
componentItemCreate:
|
|
24884
24941
|
type: object
|
|
24885
24942
|
description: ComponentItem is the information of a component
|
|
@@ -24928,6 +24985,8 @@ components:
|
|
|
24928
24985
|
systemAccountSecretName:
|
|
24929
24986
|
description: The name of the secret that contains the system account credentials
|
|
24930
24987
|
type: string
|
|
24988
|
+
network:
|
|
24989
|
+
$ref: '#/components/schemas/componentNetwork'
|
|
24931
24990
|
componentsCreate:
|
|
24932
24991
|
type: array
|
|
24933
24992
|
description: Components is the list of components
|
|
@@ -25244,6 +25303,8 @@ components:
|
|
|
25244
25303
|
systemAccountSecretName:
|
|
25245
25304
|
description: The name of the secret that contains the system account credentials
|
|
25246
25305
|
type: string
|
|
25306
|
+
network:
|
|
25307
|
+
$ref: '#/components/schemas/componentNetwork'
|
|
25247
25308
|
components:
|
|
25248
25309
|
type: array
|
|
25249
25310
|
description: Components is the list of components
|
|
@@ -30587,6 +30648,7 @@ components:
|
|
|
30587
30648
|
- provisionConfig
|
|
30588
30649
|
- createdAt
|
|
30589
30650
|
- updatedAt
|
|
30651
|
+
- ipPoolProviders
|
|
30590
30652
|
properties:
|
|
30591
30653
|
provider:
|
|
30592
30654
|
description: Cloud Provider
|
|
@@ -30662,6 +30724,11 @@ components:
|
|
|
30662
30724
|
description: Whether this environment has Koordinator installed and can use Koordinator scheduler and reservations.
|
|
30663
30725
|
type: boolean
|
|
30664
30726
|
default: false
|
|
30727
|
+
ipPoolProviders:
|
|
30728
|
+
description: KBE Pod IP pool providers enabled for discovery and explicit pool selection.
|
|
30729
|
+
type: array
|
|
30730
|
+
items:
|
|
30731
|
+
$ref: '#/components/schemas/ipPoolProvider'
|
|
30665
30732
|
environmentList:
|
|
30666
30733
|
description: EnvironmentList is a list of Environments
|
|
30667
30734
|
properties:
|
|
@@ -30745,6 +30812,12 @@ components:
|
|
|
30745
30812
|
description: Whether this environment has Koordinator installed and can use Koordinator scheduler and reservations.
|
|
30746
30813
|
type: boolean
|
|
30747
30814
|
default: false
|
|
30815
|
+
ipPoolProviders:
|
|
30816
|
+
description: KBE Pod IP pool providers enabled for discovery and explicit pool selection.
|
|
30817
|
+
type: array
|
|
30818
|
+
default: []
|
|
30819
|
+
items:
|
|
30820
|
+
$ref: '#/components/schemas/ipPoolProvider'
|
|
30748
30821
|
preflight:
|
|
30749
30822
|
title: Preflight results
|
|
30750
30823
|
description: The result of preflight check
|
|
@@ -30877,6 +30950,11 @@ components:
|
|
|
30877
30950
|
description: Whether this environment has Koordinator installed and can use Koordinator scheduler and reservations.
|
|
30878
30951
|
type: boolean
|
|
30879
30952
|
default: false
|
|
30953
|
+
ipPoolProviders:
|
|
30954
|
+
description: KBE Pod IP pool providers enabled for discovery and explicit pool selection. An empty array disables this capability.
|
|
30955
|
+
type: array
|
|
30956
|
+
items:
|
|
30957
|
+
$ref: '#/components/schemas/ipPoolProvider'
|
|
30880
30958
|
clusterSchedulingPolicy:
|
|
30881
30959
|
$ref: '#/components/schemas/clusterSchedulingPolicy'
|
|
30882
30960
|
environmentStateEvent:
|
|
@@ -31704,6 +31782,83 @@ components:
|
|
|
31704
31782
|
items:
|
|
31705
31783
|
type: string
|
|
31706
31784
|
type: array
|
|
31785
|
+
ipPoolSelectionRequirement:
|
|
31786
|
+
type: string
|
|
31787
|
+
enum:
|
|
31788
|
+
- required
|
|
31789
|
+
- optional
|
|
31790
|
+
- unsupported
|
|
31791
|
+
ipPoolSelectionPolicy:
|
|
31792
|
+
type: object
|
|
31793
|
+
description: Per-address-family requirements for explicit IP pool selection.
|
|
31794
|
+
properties:
|
|
31795
|
+
ipv4:
|
|
31796
|
+
$ref: '#/components/schemas/ipPoolSelectionRequirement'
|
|
31797
|
+
ipv6:
|
|
31798
|
+
$ref: '#/components/schemas/ipPoolSelectionRequirement'
|
|
31799
|
+
required:
|
|
31800
|
+
- ipv4
|
|
31801
|
+
- ipv6
|
|
31802
|
+
ipPoolIPFamily:
|
|
31803
|
+
type: string
|
|
31804
|
+
enum:
|
|
31805
|
+
- IPv4
|
|
31806
|
+
- IPv6
|
|
31807
|
+
ipPool:
|
|
31808
|
+
type: object
|
|
31809
|
+
description: Provider-neutral Pod IP pool summary.
|
|
31810
|
+
properties:
|
|
31811
|
+
name:
|
|
31812
|
+
type: string
|
|
31813
|
+
ipFamily:
|
|
31814
|
+
$ref: '#/components/schemas/ipPoolIPFamily'
|
|
31815
|
+
subnet:
|
|
31816
|
+
type: string
|
|
31817
|
+
disabled:
|
|
31818
|
+
type: boolean
|
|
31819
|
+
default:
|
|
31820
|
+
type: boolean
|
|
31821
|
+
allocatedIPCount:
|
|
31822
|
+
type: integer
|
|
31823
|
+
format: int64
|
|
31824
|
+
totalIPCount:
|
|
31825
|
+
type: integer
|
|
31826
|
+
format: int64
|
|
31827
|
+
availableIPCount:
|
|
31828
|
+
type: integer
|
|
31829
|
+
format: int64
|
|
31830
|
+
capacityReliable:
|
|
31831
|
+
type: boolean
|
|
31832
|
+
affinitySummary:
|
|
31833
|
+
type: array
|
|
31834
|
+
items:
|
|
31835
|
+
type: string
|
|
31836
|
+
ipPoolProviderList:
|
|
31837
|
+
type: object
|
|
31838
|
+
description: Pod IP pools and selection policy reported by one provider.
|
|
31839
|
+
properties:
|
|
31840
|
+
name:
|
|
31841
|
+
$ref: '#/components/schemas/ipPoolProvider'
|
|
31842
|
+
selectionPolicy:
|
|
31843
|
+
$ref: '#/components/schemas/ipPoolSelectionPolicy'
|
|
31844
|
+
items:
|
|
31845
|
+
type: array
|
|
31846
|
+
items:
|
|
31847
|
+
$ref: '#/components/schemas/ipPool'
|
|
31848
|
+
required:
|
|
31849
|
+
- name
|
|
31850
|
+
- selectionPolicy
|
|
31851
|
+
- items
|
|
31852
|
+
ipPoolList:
|
|
31853
|
+
type: object
|
|
31854
|
+
description: Pod IP pool discovery result for an environment.
|
|
31855
|
+
properties:
|
|
31856
|
+
providers:
|
|
31857
|
+
type: array
|
|
31858
|
+
items:
|
|
31859
|
+
$ref: '#/components/schemas/ipPoolProviderList'
|
|
31860
|
+
required:
|
|
31861
|
+
- providers
|
|
31707
31862
|
rawCluster:
|
|
31708
31863
|
type: object
|
|
31709
31864
|
description: cluster info
|
|
@@ -41,6 +41,7 @@ models/cluster-type.ts
|
|
|
41
41
|
models/cluster-update.ts
|
|
42
42
|
models/cluster.ts
|
|
43
43
|
models/component-item.ts
|
|
44
|
+
models/component-network.ts
|
|
44
45
|
models/component-volume-item.ts
|
|
45
46
|
models/dbdoctor-response.ts
|
|
46
47
|
models/endpoint-list.ts
|
|
@@ -59,6 +60,8 @@ models/image-registry.ts
|
|
|
59
60
|
models/index.ts
|
|
60
61
|
models/init-option-item.ts
|
|
61
62
|
models/io-quantity.ts
|
|
63
|
+
models/ip-pool-provider.ts
|
|
64
|
+
models/ip-pool-selection.ts
|
|
62
65
|
models/koordinator-reservation-resource-class.ts
|
|
63
66
|
models/localized-description.ts
|
|
64
67
|
models/network-mode.ts
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { ComponentNetwork } from './component-network';
|
|
16
19
|
// May contain unused imports in some cases
|
|
17
20
|
// @ts-ignore
|
|
18
21
|
import type { ComponentVolumeItem } from './component-volume-item';
|
|
@@ -89,5 +92,11 @@ export interface ComponentItem {
|
|
|
89
92
|
* @memberof ComponentItem
|
|
90
93
|
*/
|
|
91
94
|
'systemAccountSecretName'?: string;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {ComponentNetwork}
|
|
98
|
+
* @memberof ComponentItem
|
|
99
|
+
*/
|
|
100
|
+
'network'?: ComponentNetwork;
|
|
92
101
|
}
|
|
93
102
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { IpPoolSelection } from './ip-pool-selection';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Per-component network configuration.
|
|
22
|
+
* @export
|
|
23
|
+
* @interface ComponentNetwork
|
|
24
|
+
*/
|
|
25
|
+
export interface ComponentNetwork {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {IpPoolSelection}
|
|
29
|
+
* @memberof ComponentNetwork
|
|
30
|
+
*/
|
|
31
|
+
'ipPool'?: IpPoolSelection;
|
|
32
|
+
}
|
|
33
|
+
|
|
@@ -17,6 +17,7 @@ export * from './cluster-termination-policy';
|
|
|
17
17
|
export * from './cluster-type';
|
|
18
18
|
export * from './cluster-update';
|
|
19
19
|
export * from './component-item';
|
|
20
|
+
export * from './component-network';
|
|
20
21
|
export * from './component-volume-item';
|
|
21
22
|
export * from './dbdoctor-response';
|
|
22
23
|
export * from './endpoint';
|
|
@@ -34,6 +35,8 @@ export * from './http-body';
|
|
|
34
35
|
export * from './image-registry';
|
|
35
36
|
export * from './init-option-item';
|
|
36
37
|
export * from './io-quantity';
|
|
38
|
+
export * from './ip-pool-provider';
|
|
39
|
+
export * from './ip-pool-selection';
|
|
37
40
|
export * from './koordinator-reservation-resource-class';
|
|
38
41
|
export * from './localized-description';
|
|
39
42
|
export * from './network-mode';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* KBE provider used for Pod IP pool discovery and explicit selection.
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const IpPoolProvider = {
|
|
24
|
+
spiderpool: 'spiderpool'
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
27
|
+
export type IpPoolProvider = typeof IpPoolProvider[keyof typeof IpPoolProvider];
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { IpPoolProvider } from './ip-pool-provider';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Provider-qualified Pod IP pool selection for component pod IP allocation.
|
|
22
|
+
* @export
|
|
23
|
+
* @interface IpPoolSelection
|
|
24
|
+
*/
|
|
25
|
+
export interface IpPoolSelection {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {IpPoolProvider}
|
|
29
|
+
* @memberof IpPoolSelection
|
|
30
|
+
*/
|
|
31
|
+
'provider': IpPoolProvider;
|
|
32
|
+
/**
|
|
33
|
+
* IPv4 pool names resolved within the selected provider.
|
|
34
|
+
* @type {Array<string>}
|
|
35
|
+
* @memberof IpPoolSelection
|
|
36
|
+
*/
|
|
37
|
+
'ipv4Pools'?: Array<string>;
|
|
38
|
+
/**
|
|
39
|
+
* IPv6 pool names resolved within the selected provider.
|
|
40
|
+
* @type {Array<string>}
|
|
41
|
+
* @memberof IpPoolSelection
|
|
42
|
+
*/
|
|
43
|
+
'ipv6Pools'?: Array<string>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
package/src/internalapi.yaml
CHANGED
|
@@ -1315,6 +1315,35 @@ components:
|
|
|
1315
1315
|
$ref: '#/components/schemas/ioQuantity'
|
|
1316
1316
|
ioReserves:
|
|
1317
1317
|
$ref: '#/components/schemas/ioQuantity'
|
|
1318
|
+
ipPoolProvider:
|
|
1319
|
+
type: string
|
|
1320
|
+
description: KBE provider used for Pod IP pool discovery and explicit selection.
|
|
1321
|
+
enum:
|
|
1322
|
+
- spiderpool
|
|
1323
|
+
ipPoolSelection:
|
|
1324
|
+
type: object
|
|
1325
|
+
description: Provider-qualified Pod IP pool selection for component pod IP allocation.
|
|
1326
|
+
required:
|
|
1327
|
+
- provider
|
|
1328
|
+
properties:
|
|
1329
|
+
provider:
|
|
1330
|
+
$ref: '#/components/schemas/ipPoolProvider'
|
|
1331
|
+
ipv4Pools:
|
|
1332
|
+
type: array
|
|
1333
|
+
items:
|
|
1334
|
+
type: string
|
|
1335
|
+
description: IPv4 pool names resolved within the selected provider.
|
|
1336
|
+
ipv6Pools:
|
|
1337
|
+
type: array
|
|
1338
|
+
items:
|
|
1339
|
+
type: string
|
|
1340
|
+
description: IPv6 pool names resolved within the selected provider.
|
|
1341
|
+
componentNetwork:
|
|
1342
|
+
type: object
|
|
1343
|
+
description: Per-component network configuration.
|
|
1344
|
+
properties:
|
|
1345
|
+
ipPool:
|
|
1346
|
+
$ref: '#/components/schemas/ipPoolSelection'
|
|
1318
1347
|
componentItem:
|
|
1319
1348
|
type: object
|
|
1320
1349
|
description: ComponentItem is the information of a component
|
|
@@ -1359,6 +1388,8 @@ components:
|
|
|
1359
1388
|
systemAccountSecretName:
|
|
1360
1389
|
description: The name of the secret that contains the system account credentials
|
|
1361
1390
|
type: string
|
|
1391
|
+
network:
|
|
1392
|
+
$ref: '#/components/schemas/componentNetwork'
|
|
1362
1393
|
components:
|
|
1363
1394
|
type: array
|
|
1364
1395
|
description: Components is the list of components
|
|
@@ -272,6 +272,7 @@ models/cluster-validation-policy.ts
|
|
|
272
272
|
models/cluster.ts
|
|
273
273
|
models/component-item-create.ts
|
|
274
274
|
models/component-item.ts
|
|
275
|
+
models/component-network.ts
|
|
275
276
|
models/component-ops-option-backup-method.ts
|
|
276
277
|
models/component-ops-option-dependent-custom-ops-params-inner.ts
|
|
277
278
|
models/component-ops-option-dependent-custom-ops.ts
|
|
@@ -535,6 +536,14 @@ models/instance.ts
|
|
|
535
536
|
models/integer-option.ts
|
|
536
537
|
models/international-desc.ts
|
|
537
538
|
models/io-quantity.ts
|
|
539
|
+
models/ip-pool-ipfamily.ts
|
|
540
|
+
models/ip-pool-list.ts
|
|
541
|
+
models/ip-pool-provider-list.ts
|
|
542
|
+
models/ip-pool-provider.ts
|
|
543
|
+
models/ip-pool-selection-policy.ts
|
|
544
|
+
models/ip-pool-selection-requirement.ts
|
|
545
|
+
models/ip-pool-selection.ts
|
|
546
|
+
models/ip-pool.ts
|
|
538
547
|
models/ip-whitelist-list.ts
|
|
539
548
|
models/ip-whitelist.ts
|
|
540
549
|
models/key-list.ts
|
|
@@ -30,6 +30,8 @@ import type { EnvironmentList } from '../models';
|
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
import type { EnvironmentModuleInfo } from '../models';
|
|
32
32
|
// @ts-ignore
|
|
33
|
+
import type { IpPoolList } from '../models';
|
|
34
|
+
// @ts-ignore
|
|
33
35
|
import type { KoordinatorReservationSummary } from '../models';
|
|
34
36
|
// @ts-ignore
|
|
35
37
|
import type { NodeGroup } from '../models';
|
|
@@ -212,6 +214,51 @@ export const EnvironmentApiAxiosParamCreator = function (configuration?: Configu
|
|
|
212
214
|
|
|
213
215
|
|
|
214
216
|
|
|
217
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
218
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
219
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
220
|
+
|
|
221
|
+
return {
|
|
222
|
+
url: toPathString(localVarUrlObj),
|
|
223
|
+
options: localVarRequestOptions,
|
|
224
|
+
};
|
|
225
|
+
},
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @summary Discover Pod IP pools and explicit selection policy in an environment
|
|
229
|
+
* @param {string} orgName name of the Org
|
|
230
|
+
* @param {string} environmentName name of the Environment
|
|
231
|
+
* @param {*} [options] Override http request option.
|
|
232
|
+
* @throws {RequiredError}
|
|
233
|
+
*/
|
|
234
|
+
listEnvironmentIPPools: async (orgName: string, environmentName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
235
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
236
|
+
assertParamExists('listEnvironmentIPPools', 'orgName', orgName)
|
|
237
|
+
// verify required parameter 'environmentName' is not null or undefined
|
|
238
|
+
assertParamExists('listEnvironmentIPPools', 'environmentName', environmentName)
|
|
239
|
+
const localVarPath = `/api/v1/organizations/{orgName}/environments/{environmentName}/network/ipPools`
|
|
240
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
241
|
+
.replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)));
|
|
242
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
243
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
244
|
+
let baseOptions;
|
|
245
|
+
if (configuration) {
|
|
246
|
+
baseOptions = configuration.baseOptions;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
250
|
+
const localVarHeaderParameter = {} as any;
|
|
251
|
+
const localVarQueryParameter = {} as any;
|
|
252
|
+
|
|
253
|
+
// authentication BearerToken required
|
|
254
|
+
// http bearer authentication required
|
|
255
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
256
|
+
|
|
257
|
+
// authentication DigestAuth required
|
|
258
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
215
262
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
216
263
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
217
264
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -378,6 +425,20 @@ export const EnvironmentApiFp = function(configuration?: Configuration) {
|
|
|
378
425
|
const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.listEnvironment']?.[localVarOperationServerIndex]?.url;
|
|
379
426
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
380
427
|
},
|
|
428
|
+
/**
|
|
429
|
+
*
|
|
430
|
+
* @summary Discover Pod IP pools and explicit selection policy in an environment
|
|
431
|
+
* @param {string} orgName name of the Org
|
|
432
|
+
* @param {string} environmentName name of the Environment
|
|
433
|
+
* @param {*} [options] Override http request option.
|
|
434
|
+
* @throws {RequiredError}
|
|
435
|
+
*/
|
|
436
|
+
async listEnvironmentIPPools(orgName: string, environmentName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IpPoolList>> {
|
|
437
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listEnvironmentIPPools(orgName, environmentName, options);
|
|
438
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
439
|
+
const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.listEnvironmentIPPools']?.[localVarOperationServerIndex]?.url;
|
|
440
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
441
|
+
},
|
|
381
442
|
/**
|
|
382
443
|
* Get Koordinator Reservation summary for the cluster creation page.
|
|
383
444
|
* @summary List Koordinator Reservations
|
|
@@ -456,6 +517,16 @@ export const EnvironmentApiFactory = function (configuration?: Configuration, ba
|
|
|
456
517
|
listEnvironment(requestParameters: EnvironmentApiListEnvironmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<EnvironmentList> {
|
|
457
518
|
return localVarFp.listEnvironment(requestParameters.orgName, requestParameters.engine, requestParameters.version, options).then((request) => request(axios, basePath));
|
|
458
519
|
},
|
|
520
|
+
/**
|
|
521
|
+
*
|
|
522
|
+
* @summary Discover Pod IP pools and explicit selection policy in an environment
|
|
523
|
+
* @param {EnvironmentApiListEnvironmentIPPoolsRequest} requestParameters Request parameters.
|
|
524
|
+
* @param {*} [options] Override http request option.
|
|
525
|
+
* @throws {RequiredError}
|
|
526
|
+
*/
|
|
527
|
+
listEnvironmentIPPools(requestParameters: EnvironmentApiListEnvironmentIPPoolsRequest, options?: RawAxiosRequestConfig): AxiosPromise<IpPoolList> {
|
|
528
|
+
return localVarFp.listEnvironmentIPPools(requestParameters.orgName, requestParameters.environmentName, options).then((request) => request(axios, basePath));
|
|
529
|
+
},
|
|
459
530
|
/**
|
|
460
531
|
* Get Koordinator Reservation summary for the cluster creation page.
|
|
461
532
|
* @summary List Koordinator Reservations
|
|
@@ -525,6 +596,16 @@ export interface EnvironmentApiInterface {
|
|
|
525
596
|
*/
|
|
526
597
|
listEnvironment(requestParameters: EnvironmentApiListEnvironmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<EnvironmentList>;
|
|
527
598
|
|
|
599
|
+
/**
|
|
600
|
+
*
|
|
601
|
+
* @summary Discover Pod IP pools and explicit selection policy in an environment
|
|
602
|
+
* @param {EnvironmentApiListEnvironmentIPPoolsRequest} requestParameters Request parameters.
|
|
603
|
+
* @param {*} [options] Override http request option.
|
|
604
|
+
* @throws {RequiredError}
|
|
605
|
+
* @memberof EnvironmentApiInterface
|
|
606
|
+
*/
|
|
607
|
+
listEnvironmentIPPools(requestParameters: EnvironmentApiListEnvironmentIPPoolsRequest, options?: RawAxiosRequestConfig): AxiosPromise<IpPoolList>;
|
|
608
|
+
|
|
528
609
|
/**
|
|
529
610
|
* Get Koordinator Reservation summary for the cluster creation page.
|
|
530
611
|
* @summary List Koordinator Reservations
|
|
@@ -631,6 +712,27 @@ export interface EnvironmentApiListEnvironmentRequest {
|
|
|
631
712
|
readonly version?: string
|
|
632
713
|
}
|
|
633
714
|
|
|
715
|
+
/**
|
|
716
|
+
* Request parameters for listEnvironmentIPPools operation in EnvironmentApi.
|
|
717
|
+
* @export
|
|
718
|
+
* @interface EnvironmentApiListEnvironmentIPPoolsRequest
|
|
719
|
+
*/
|
|
720
|
+
export interface EnvironmentApiListEnvironmentIPPoolsRequest {
|
|
721
|
+
/**
|
|
722
|
+
* name of the Org
|
|
723
|
+
* @type {string}
|
|
724
|
+
* @memberof EnvironmentApiListEnvironmentIPPools
|
|
725
|
+
*/
|
|
726
|
+
readonly orgName: string
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* name of the Environment
|
|
730
|
+
* @type {string}
|
|
731
|
+
* @memberof EnvironmentApiListEnvironmentIPPools
|
|
732
|
+
*/
|
|
733
|
+
readonly environmentName: string
|
|
734
|
+
}
|
|
735
|
+
|
|
634
736
|
/**
|
|
635
737
|
* Request parameters for listKoordinatorReservations operation in EnvironmentApi.
|
|
636
738
|
* @export
|
|
@@ -728,6 +830,18 @@ export class EnvironmentApi extends BaseAPI implements EnvironmentApiInterface {
|
|
|
728
830
|
return EnvironmentApiFp(this.configuration).listEnvironment(requestParameters.orgName, requestParameters.engine, requestParameters.version, options).then((request) => request(this.axios, this.basePath));
|
|
729
831
|
}
|
|
730
832
|
|
|
833
|
+
/**
|
|
834
|
+
*
|
|
835
|
+
* @summary Discover Pod IP pools and explicit selection policy in an environment
|
|
836
|
+
* @param {EnvironmentApiListEnvironmentIPPoolsRequest} requestParameters Request parameters.
|
|
837
|
+
* @param {*} [options] Override http request option.
|
|
838
|
+
* @throws {RequiredError}
|
|
839
|
+
* @memberof EnvironmentApi
|
|
840
|
+
*/
|
|
841
|
+
public listEnvironmentIPPools(requestParameters: EnvironmentApiListEnvironmentIPPoolsRequest, options?: RawAxiosRequestConfig) {
|
|
842
|
+
return EnvironmentApiFp(this.configuration).listEnvironmentIPPools(requestParameters.orgName, requestParameters.environmentName, options).then((request) => request(this.axios, this.basePath));
|
|
843
|
+
}
|
|
844
|
+
|
|
731
845
|
/**
|
|
732
846
|
* Get Koordinator Reservation summary for the cluster creation page.
|
|
733
847
|
* @summary List Koordinator Reservations
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { ComponentNetwork } from './component-network';
|
|
16
19
|
// May contain unused imports in some cases
|
|
17
20
|
// @ts-ignore
|
|
18
21
|
import type { ComponentVolumeItem } from './component-volume-item';
|
|
@@ -83,5 +86,11 @@ export interface ComponentItemCreate {
|
|
|
83
86
|
* @memberof ComponentItemCreate
|
|
84
87
|
*/
|
|
85
88
|
'systemAccountSecretName'?: string;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {ComponentNetwork}
|
|
92
|
+
* @memberof ComponentItemCreate
|
|
93
|
+
*/
|
|
94
|
+
'network'?: ComponentNetwork;
|
|
86
95
|
}
|
|
87
96
|
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { ComponentNetwork } from './component-network';
|
|
16
19
|
// May contain unused imports in some cases
|
|
17
20
|
// @ts-ignore
|
|
18
21
|
import type { ComponentVolumeItem } from './component-volume-item';
|
|
@@ -89,5 +92,11 @@ export interface ComponentItem {
|
|
|
89
92
|
* @memberof ComponentItem
|
|
90
93
|
*/
|
|
91
94
|
'systemAccountSecretName'?: string;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {ComponentNetwork}
|
|
98
|
+
* @memberof ComponentItem
|
|
99
|
+
*/
|
|
100
|
+
'network'?: ComponentNetwork;
|
|
92
101
|
}
|
|
93
102
|
|