Skip to content

Commit e0a6933

Browse files
authored
docs: update swaggers api (#568)
Signed-off-by: Jack Yu <[email protected]>
1 parent ad44f90 commit e0a6933

File tree

3 files changed

+156
-194
lines changed

3 files changed

+156
-194
lines changed

api/dev-swagger.json

Lines changed: 74 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -7798,9 +7798,9 @@
77987798
"tags": [
77997799
"Networks"
78007800
],
7801-
"summary": "List Namespaced Cluster Networks",
7802-
"description": "Get a list of ClusterNetwork objects in a namespace.",
7803-
"operationId": "listNamespacedClusterNetwork",
7801+
"summary": "List Cluster Networks",
7802+
"description": "Get a list of all ClusterNetwork objects.",
7803+
"operationId": "listClusterNetwork",
78047804
"parameters": [
78057805
{
78067806
"name": "continue",
@@ -7842,16 +7842,6 @@
78427842
"type": "integer"
78437843
}
78447844
},
7845-
{
7846-
"name": "namespace",
7847-
"in": "path",
7848-
"description": "Object name and auth scope, such as for teams and projects",
7849-
"required": true,
7850-
"schema": {
7851-
"type": "string",
7852-
"pattern": "[a-z0-9][a-z0-9\\-]*"
7853-
}
7854-
},
78557845
{
78567846
"name": "resourceVersion",
78577847
"in": "query",
@@ -7924,21 +7914,9 @@
79247914
"tags": [
79257915
"Networks"
79267916
],
7927-
"summary": "Create a Namespaced Cluster Network",
7917+
"summary": "Create a Cluster Network",
79287918
"description": "Create a ClusterNetwork object.",
7929-
"operationId": "createNamespacedClusterNetwork",
7930-
"parameters": [
7931-
{
7932-
"name": "namespace",
7933-
"in": "path",
7934-
"description": "Object name and auth scope, such as for teams and projects",
7935-
"required": true,
7936-
"schema": {
7937-
"type": "string",
7938-
"pattern": "[a-z0-9][a-z0-9\\-]*"
7939-
}
7940-
}
7941-
],
7919+
"operationId": "createClusterNetwork",
79427920
"requestBody": {
79437921
"content": {
79447922
"application/json": {
@@ -8023,9 +8001,9 @@
80238001
"tags": [
80248002
"Networks"
80258003
],
8026-
"summary": "Read a Namespaced Cluster Network",
8004+
"summary": "Read a Cluster Network",
80278005
"description": "Get a ClusterNetwork object.",
8028-
"operationId": "readNamespacedClusterNetwork",
8006+
"operationId": "readClusterNetwork",
80298007
"parameters": [
80308008
{
80318009
"name": "exact",
@@ -8091,9 +8069,9 @@
80918069
"tags": [
80928070
"Networks"
80938071
],
8094-
"summary": "Replace a Namespaced Cluster Network",
8072+
"summary": "Replace a Cluster Network",
80958073
"description": "Update a ClusterNetwork object.",
8096-
"operationId": "replaceNamespacedClusterNetwork",
8074+
"operationId": "replaceClusterNetwork",
80978075
"requestBody": {
80988076
"content": {
80998077
"application/json": {
@@ -8161,9 +8139,9 @@
81618139
"tags": [
81628140
"Networks"
81638141
],
8164-
"summary": "Delete a Namespaced Cluster Network",
8142+
"summary": "Delete a Cluster Network",
81658143
"description": "Delete a ClusterNetwork object.",
8166-
"operationId": "deleteNamespacedClusterNetwork",
8144+
"operationId": "deleteClusterNetwork",
81678145
"parameters": [
81688146
{
81698147
"name": "gracePeriodSeconds",
@@ -8242,9 +8220,9 @@
82428220
"tags": [
82438221
"Networks"
82448222
],
8245-
"summary": "Patch a Namespaced Cluster Network",
8223+
"summary": "Patch a Cluster Network",
82468224
"description": "Patch a ClusterNetwork object.",
8247-
"operationId": "patchNamespacedClusterNetwork",
8225+
"operationId": "patchClusterNetwork",
82488226
"requestBody": {
82498227
"content": {
82508228
"application/json-patch+json": {
@@ -8293,16 +8271,6 @@
82938271
"type": "string",
82948272
"pattern": "[a-z0-9][a-z0-9\\-]*"
82958273
}
8296-
},
8297-
{
8298-
"name": "namespace",
8299-
"in": "path",
8300-
"description": "Object name and auth scope, such as for teams and projects",
8301-
"required": true,
8302-
"schema": {
8303-
"type": "string",
8304-
"pattern": "[a-z0-9][a-z0-9\\-]*"
8305-
}
83068274
}
83078275
]
83088276
},
@@ -8311,9 +8279,9 @@
83118279
"tags": [
83128280
"Networks"
83138281
],
8314-
"summary": "List Namespaced Node Networks",
8315-
"description": "Get a list of NodeNetwork objects in a namespace.",
8316-
"operationId": "listNamespacedNodeNetwork",
8282+
"summary": "List Node Networks",
8283+
"description": "Get a list of all NodeNetwork objects.",
8284+
"operationId": "listNodeNetwork",
83178285
"parameters": [
83188286
{
83198287
"name": "continue",
@@ -8355,16 +8323,6 @@
83558323
"type": "integer"
83568324
}
83578325
},
8358-
{
8359-
"name": "namespace",
8360-
"in": "path",
8361-
"description": "Object name and auth scope, such as for teams and projects",
8362-
"required": true,
8363-
"schema": {
8364-
"type": "string",
8365-
"pattern": "[a-z0-9][a-z0-9\\-]*"
8366-
}
8367-
},
83688326
{
83698327
"name": "resourceVersion",
83708328
"in": "query",
@@ -8437,21 +8395,9 @@
84378395
"tags": [
84388396
"Networks"
84398397
],
8440-
"summary": "Create a Namespaced Node Network",
8398+
"summary": "Create a Node Network",
84418399
"description": "Create a NodeNetwork object.",
8442-
"operationId": "createNamespacedNodeNetwork",
8443-
"parameters": [
8444-
{
8445-
"name": "namespace",
8446-
"in": "path",
8447-
"description": "Object name and auth scope, such as for teams and projects",
8448-
"required": true,
8449-
"schema": {
8450-
"type": "string",
8451-
"pattern": "[a-z0-9][a-z0-9\\-]*"
8452-
}
8453-
}
8454-
],
8400+
"operationId": "createNodeNetwork",
84558401
"requestBody": {
84568402
"content": {
84578403
"application/json": {
@@ -8536,9 +8482,9 @@
85368482
"tags": [
85378483
"Networks"
85388484
],
8539-
"summary": "Read a Namespaced Node Network",
8485+
"summary": "Read a Node Network",
85408486
"description": "Get a NodeNetwork object.",
8541-
"operationId": "readNamespacedNodeNetwork",
8487+
"operationId": "readNodeNetwork",
85428488
"parameters": [
85438489
{
85448490
"name": "exact",
@@ -8604,9 +8550,9 @@
86048550
"tags": [
86058551
"Networks"
86068552
],
8607-
"summary": "Replace a Namespaced Node Network",
8553+
"summary": "Replace a Node Network",
86088554
"description": "Update a NodeNetwork object.",
8609-
"operationId": "replaceNamespacedNodeNetwork",
8555+
"operationId": "replaceNodeNetwork",
86108556
"requestBody": {
86118557
"content": {
86128558
"application/json": {
@@ -8674,9 +8620,9 @@
86748620
"tags": [
86758621
"Networks"
86768622
],
8677-
"summary": "Delete a Namespaced Node Network",
8623+
"summary": "Delete a Node Network",
86788624
"description": "Delete a NodeNetwork object.",
8679-
"operationId": "deleteNamespacedNodeNetwork",
8625+
"operationId": "deleteNodeNetwork",
86808626
"parameters": [
86818627
{
86828628
"name": "gracePeriodSeconds",
@@ -8755,9 +8701,9 @@
87558701
"tags": [
87568702
"Networks"
87578703
],
8758-
"summary": "Patch a Namespaced Node Network",
8704+
"summary": "Patch a Node Network",
87598705
"description": "Patch a NodeNetwork object.",
8760-
"operationId": "patchNamespacedNodeNetwork",
8706+
"operationId": "patchNodeNetwork",
87618707
"requestBody": {
87628708
"content": {
87638709
"application/json-patch+json": {
@@ -8806,16 +8752,6 @@
88068752
"type": "string",
88078753
"pattern": "[a-z0-9][a-z0-9\\-]*"
88088754
}
8809-
},
8810-
{
8811-
"name": "namespace",
8812-
"in": "path",
8813-
"description": "Object name and auth scope, such as for teams and projects",
8814-
"required": true,
8815-
"schema": {
8816-
"type": "string",
8817-
"pattern": "[a-z0-9][a-z0-9\\-]*"
8818-
}
88198755
}
88208756
]
88218757
}
@@ -9526,7 +9462,8 @@
95269462
"harvesterhci.io.v1beta1.VirtualMachineImageSpec": {
95279463
"type": "object",
95289464
"required": [
9529-
"displayName"
9465+
"displayName",
9466+
"sourceType"
95309467
],
95319468
"properties": {
95329469
"checksum": {
@@ -9555,6 +9492,7 @@
95559492
},
95569493
"sourceType": {
95579494
"type": "string",
9495+
"default": "",
95589496
"enum": [
95599497
"download",
95609498
"export-from-volume",
@@ -11583,6 +11521,15 @@
1158311521
}
1158411522
}
1158511523
},
11524+
"kubevirt.io.api.core.v1.ContainerDiskInfo": {
11525+
"type": "object",
11526+
"properties": {
11527+
"checksum": {
11528+
"type": "integer",
11529+
"format": "int64"
11530+
}
11531+
}
11532+
},
1158611533
"kubevirt.io.api.core.v1.ContainerDiskSource": {
1158711534
"type": "object",
1158811535
"required": [
@@ -12336,6 +12283,15 @@
1233612283
}
1233712284
}
1233812285
},
12286+
"kubevirt.io.api.core.v1.InitrdInfo": {
12287+
"type": "object",
12288+
"properties": {
12289+
"checksum": {
12290+
"type": "integer",
12291+
"format": "int64"
12292+
}
12293+
}
12294+
},
1233912295
"kubevirt.io.api.core.v1.Input": {
1234012296
"type": "object",
1234112297
"required": [
@@ -12512,6 +12468,26 @@
1251212468
}
1251312469
}
1251412470
},
12471+
"kubevirt.io.api.core.v1.KernelBootStatus": {
12472+
"type": "object",
12473+
"properties": {
12474+
"initrdInfo": {
12475+
"$ref": "#/components/schemas/kubevirt.io.api.core.v1.InitrdInfo"
12476+
},
12477+
"kernelInfo": {
12478+
"$ref": "#/components/schemas/kubevirt.io.api.core.v1.KernelInfo"
12479+
}
12480+
}
12481+
},
12482+
"kubevirt.io.api.core.v1.KernelInfo": {
12483+
"type": "object",
12484+
"properties": {
12485+
"checksum": {
12486+
"type": "integer",
12487+
"format": "int64"
12488+
}
12489+
}
12490+
},
1251512491
"kubevirt.io.api.core.v1.LaunchSecurity": {
1251612492
"type": "object",
1251712493
"properties": {
@@ -13914,6 +13890,9 @@
1391413890
]
1391513891
}
1391613892
},
13893+
"kernelBootStatus": {
13894+
"$ref": "#/components/schemas/kubevirt.io.api.core.v1.KernelBootStatus"
13895+
},
1391713896
"launcherContainerImageVersion": {
1391813897
"type": "string"
1391913898
},
@@ -14320,6 +14299,9 @@
1432014299
"target"
1432114300
],
1432214301
"properties": {
14302+
"containerDiskVolume": {
14303+
"$ref": "#/components/schemas/kubevirt.io.api.core.v1.ContainerDiskInfo"
14304+
},
1432314305
"hotplugVolume": {
1432414306
"$ref": "#/components/schemas/kubevirt.io.api.core.v1.HotplugVolumeStatus"
1432514307
},
@@ -15019,4 +15001,4 @@
1501915001
}
1502015002
}
1502115003
}
15022-
}
15004+
}

0 commit comments

Comments
 (0)