diff --git a/api-docs/openapi/v3_0/aggregated.json b/api-docs/openapi/v3_0/aggregated.json new file mode 100644 index 000000000..a78e92727 --- /dev/null +++ b/api-docs/openapi/v3_0/aggregated.json @@ -0,0 +1,19862 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Halo Next API", + "version": "2.0.0" + }, + "servers": [ + { + "url": "http://localhost:8091", + "description": "Generated server url" + } + ], + "security": [ + { + "BasicAuth": [], + "BearerAuth": [] + } + ], + "paths": { + "/api/v1alpha1/annotationsettings": { + "get": { + "description": "List v1alpha1/AnnotationSetting", + "operationId": "Listv1alpha1/AnnotationSetting", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/AnnotationSettingList" + } + } + }, + "description": "Response annotationsettings" + } + }, + "tags": [ + "v1alpha1/AnnotationSetting" + ] + }, + "post": { + "description": "Create v1alpha1/AnnotationSetting", + "operationId": "Createv1alpha1/AnnotationSetting", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/AnnotationSetting" + } + } + }, + "description": "Fresh annotationsetting" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/AnnotationSetting" + } + } + }, + "description": "Response annotationsettings created just now" + } + }, + "tags": [ + "v1alpha1/AnnotationSetting" + ] + } + }, + "/api/v1alpha1/annotationsettings/{name}": { + "delete": { + "description": "Delete v1alpha1/AnnotationSetting", + "operationId": "Deletev1alpha1/AnnotationSetting", + "parameters": [ + { + "description": "Name of annotationsetting", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response annotationsetting deleted just now" + } + }, + "tags": [ + "v1alpha1/AnnotationSetting" + ] + }, + "get": { + "description": "Get v1alpha1/AnnotationSetting", + "operationId": "Getv1alpha1/AnnotationSetting", + "parameters": [ + { + "description": "Name of annotationsetting", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/AnnotationSetting" + } + } + }, + "description": "Response single annotationsetting" + } + }, + "tags": [ + "v1alpha1/AnnotationSetting" + ] + }, + "put": { + "description": "Update v1alpha1/AnnotationSetting", + "operationId": "Updatev1alpha1/AnnotationSetting", + "parameters": [ + { + "description": "Name of annotationsetting", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/AnnotationSetting" + } + } + }, + "description": "Updated annotationsetting" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/AnnotationSetting" + } + } + }, + "description": "Response annotationsettings updated just now" + } + }, + "tags": [ + "v1alpha1/AnnotationSetting" + ] + } + }, + "/api/v1alpha1/configmaps": { + "get": { + "description": "List v1alpha1/ConfigMap", + "operationId": "Listv1alpha1/ConfigMap", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ConfigMapList" + } + } + }, + "description": "Response configmaps" + } + }, + "tags": [ + "v1alpha1/ConfigMap" + ] + }, + "post": { + "description": "Create v1alpha1/ConfigMap", + "operationId": "Createv1alpha1/ConfigMap", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ConfigMap" + } + } + }, + "description": "Fresh configmap" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ConfigMap" + } + } + }, + "description": "Response configmaps created just now" + } + }, + "tags": [ + "v1alpha1/ConfigMap" + ] + } + }, + "/api/v1alpha1/configmaps/{name}": { + "delete": { + "description": "Delete v1alpha1/ConfigMap", + "operationId": "Deletev1alpha1/ConfigMap", + "parameters": [ + { + "description": "Name of configmap", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response configmap deleted just now" + } + }, + "tags": [ + "v1alpha1/ConfigMap" + ] + }, + "get": { + "description": "Get v1alpha1/ConfigMap", + "operationId": "Getv1alpha1/ConfigMap", + "parameters": [ + { + "description": "Name of configmap", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ConfigMap" + } + } + }, + "description": "Response single configmap" + } + }, + "tags": [ + "v1alpha1/ConfigMap" + ] + }, + "put": { + "description": "Update v1alpha1/ConfigMap", + "operationId": "Updatev1alpha1/ConfigMap", + "parameters": [ + { + "description": "Name of configmap", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ConfigMap" + } + } + }, + "description": "Updated configmap" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ConfigMap" + } + } + }, + "description": "Response configmaps updated just now" + } + }, + "tags": [ + "v1alpha1/ConfigMap" + ] + } + }, + "/api/v1alpha1/menuitems": { + "get": { + "description": "List v1alpha1/MenuItem", + "operationId": "Listv1alpha1/MenuItem", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/MenuItemList" + } + } + }, + "description": "Response menuitems" + } + }, + "tags": [ + "v1alpha1/MenuItem" + ] + }, + "post": { + "description": "Create v1alpha1/MenuItem", + "operationId": "Createv1alpha1/MenuItem", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/MenuItem" + } + } + }, + "description": "Fresh menuitem" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/MenuItem" + } + } + }, + "description": "Response menuitems created just now" + } + }, + "tags": [ + "v1alpha1/MenuItem" + ] + } + }, + "/api/v1alpha1/menuitems/{name}": { + "delete": { + "description": "Delete v1alpha1/MenuItem", + "operationId": "Deletev1alpha1/MenuItem", + "parameters": [ + { + "description": "Name of menuitem", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response menuitem deleted just now" + } + }, + "tags": [ + "v1alpha1/MenuItem" + ] + }, + "get": { + "description": "Get v1alpha1/MenuItem", + "operationId": "Getv1alpha1/MenuItem", + "parameters": [ + { + "description": "Name of menuitem", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/MenuItem" + } + } + }, + "description": "Response single menuitem" + } + }, + "tags": [ + "v1alpha1/MenuItem" + ] + }, + "put": { + "description": "Update v1alpha1/MenuItem", + "operationId": "Updatev1alpha1/MenuItem", + "parameters": [ + { + "description": "Name of menuitem", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/MenuItem" + } + } + }, + "description": "Updated menuitem" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/MenuItem" + } + } + }, + "description": "Response menuitems updated just now" + } + }, + "tags": [ + "v1alpha1/MenuItem" + ] + } + }, + "/api/v1alpha1/menus": { + "get": { + "description": "List v1alpha1/Menu", + "operationId": "Listv1alpha1/Menu", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/MenuList" + } + } + }, + "description": "Response menus" + } + }, + "tags": [ + "v1alpha1/Menu" + ] + }, + "post": { + "description": "Create v1alpha1/Menu", + "operationId": "Createv1alpha1/Menu", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Menu" + } + } + }, + "description": "Fresh menu" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Menu" + } + } + }, + "description": "Response menus created just now" + } + }, + "tags": [ + "v1alpha1/Menu" + ] + } + }, + "/api/v1alpha1/menus/{name}": { + "delete": { + "description": "Delete v1alpha1/Menu", + "operationId": "Deletev1alpha1/Menu", + "parameters": [ + { + "description": "Name of menu", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response menu deleted just now" + } + }, + "tags": [ + "v1alpha1/Menu" + ] + }, + "get": { + "description": "Get v1alpha1/Menu", + "operationId": "Getv1alpha1/Menu", + "parameters": [ + { + "description": "Name of menu", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Menu" + } + } + }, + "description": "Response single menu" + } + }, + "tags": [ + "v1alpha1/Menu" + ] + }, + "put": { + "description": "Update v1alpha1/Menu", + "operationId": "Updatev1alpha1/Menu", + "parameters": [ + { + "description": "Name of menu", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Menu" + } + } + }, + "description": "Updated menu" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Menu" + } + } + }, + "description": "Response menus updated just now" + } + }, + "tags": [ + "v1alpha1/Menu" + ] + } + }, + "/api/v1alpha1/rolebindings": { + "get": { + "description": "List v1alpha1/RoleBinding", + "operationId": "Listv1alpha1/RoleBinding", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/RoleBindingList" + } + } + }, + "description": "Response rolebindings" + } + }, + "tags": [ + "v1alpha1/RoleBinding" + ] + }, + "post": { + "description": "Create v1alpha1/RoleBinding", + "operationId": "Createv1alpha1/RoleBinding", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/RoleBinding" + } + } + }, + "description": "Fresh rolebinding" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/RoleBinding" + } + } + }, + "description": "Response rolebindings created just now" + } + }, + "tags": [ + "v1alpha1/RoleBinding" + ] + } + }, + "/api/v1alpha1/rolebindings/{name}": { + "delete": { + "description": "Delete v1alpha1/RoleBinding", + "operationId": "Deletev1alpha1/RoleBinding", + "parameters": [ + { + "description": "Name of rolebinding", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response rolebinding deleted just now" + } + }, + "tags": [ + "v1alpha1/RoleBinding" + ] + }, + "get": { + "description": "Get v1alpha1/RoleBinding", + "operationId": "Getv1alpha1/RoleBinding", + "parameters": [ + { + "description": "Name of rolebinding", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/RoleBinding" + } + } + }, + "description": "Response single rolebinding" + } + }, + "tags": [ + "v1alpha1/RoleBinding" + ] + }, + "put": { + "description": "Update v1alpha1/RoleBinding", + "operationId": "Updatev1alpha1/RoleBinding", + "parameters": [ + { + "description": "Name of rolebinding", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/RoleBinding" + } + } + }, + "description": "Updated rolebinding" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/RoleBinding" + } + } + }, + "description": "Response rolebindings updated just now" + } + }, + "tags": [ + "v1alpha1/RoleBinding" + ] + } + }, + "/api/v1alpha1/roles": { + "get": { + "description": "List v1alpha1/Role", + "operationId": "Listv1alpha1/Role", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/RoleList" + } + } + }, + "description": "Response roles" + } + }, + "tags": [ + "v1alpha1/Role" + ] + }, + "post": { + "description": "Create v1alpha1/Role", + "operationId": "Createv1alpha1/Role", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Role" + } + } + }, + "description": "Fresh role" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Role" + } + } + }, + "description": "Response roles created just now" + } + }, + "tags": [ + "v1alpha1/Role" + ] + } + }, + "/api/v1alpha1/roles/{name}": { + "delete": { + "description": "Delete v1alpha1/Role", + "operationId": "Deletev1alpha1/Role", + "parameters": [ + { + "description": "Name of role", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response role deleted just now" + } + }, + "tags": [ + "v1alpha1/Role" + ] + }, + "get": { + "description": "Get v1alpha1/Role", + "operationId": "Getv1alpha1/Role", + "parameters": [ + { + "description": "Name of role", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Role" + } + } + }, + "description": "Response single role" + } + }, + "tags": [ + "v1alpha1/Role" + ] + }, + "put": { + "description": "Update v1alpha1/Role", + "operationId": "Updatev1alpha1/Role", + "parameters": [ + { + "description": "Name of role", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Role" + } + } + }, + "description": "Updated role" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Role" + } + } + }, + "description": "Response roles updated just now" + } + }, + "tags": [ + "v1alpha1/Role" + ] + } + }, + "/api/v1alpha1/secrets": { + "get": { + "description": "List v1alpha1/Secret", + "operationId": "Listv1alpha1/Secret", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SecretList" + } + } + }, + "description": "Response secrets" + } + }, + "tags": [ + "v1alpha1/Secret" + ] + }, + "post": { + "description": "Create v1alpha1/Secret", + "operationId": "Createv1alpha1/Secret", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Secret" + } + } + }, + "description": "Fresh secret" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Secret" + } + } + }, + "description": "Response secrets created just now" + } + }, + "tags": [ + "v1alpha1/Secret" + ] + } + }, + "/api/v1alpha1/secrets/{name}": { + "delete": { + "description": "Delete v1alpha1/Secret", + "operationId": "Deletev1alpha1/Secret", + "parameters": [ + { + "description": "Name of secret", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response secret deleted just now" + } + }, + "tags": [ + "v1alpha1/Secret" + ] + }, + "get": { + "description": "Get v1alpha1/Secret", + "operationId": "Getv1alpha1/Secret", + "parameters": [ + { + "description": "Name of secret", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Secret" + } + } + }, + "description": "Response single secret" + } + }, + "tags": [ + "v1alpha1/Secret" + ] + }, + "put": { + "description": "Update v1alpha1/Secret", + "operationId": "Updatev1alpha1/Secret", + "parameters": [ + { + "description": "Name of secret", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Secret" + } + } + }, + "description": "Updated secret" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Secret" + } + } + }, + "description": "Response secrets updated just now" + } + }, + "tags": [ + "v1alpha1/Secret" + ] + } + }, + "/api/v1alpha1/settings": { + "get": { + "description": "List v1alpha1/Setting", + "operationId": "Listv1alpha1/Setting", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SettingList" + } + } + }, + "description": "Response settings" + } + }, + "tags": [ + "v1alpha1/Setting" + ] + }, + "post": { + "description": "Create v1alpha1/Setting", + "operationId": "Createv1alpha1/Setting", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Setting" + } + } + }, + "description": "Fresh setting" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Setting" + } + } + }, + "description": "Response settings created just now" + } + }, + "tags": [ + "v1alpha1/Setting" + ] + } + }, + "/api/v1alpha1/settings/{name}": { + "delete": { + "description": "Delete v1alpha1/Setting", + "operationId": "Deletev1alpha1/Setting", + "parameters": [ + { + "description": "Name of setting", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response setting deleted just now" + } + }, + "tags": [ + "v1alpha1/Setting" + ] + }, + "get": { + "description": "Get v1alpha1/Setting", + "operationId": "Getv1alpha1/Setting", + "parameters": [ + { + "description": "Name of setting", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Setting" + } + } + }, + "description": "Response single setting" + } + }, + "tags": [ + "v1alpha1/Setting" + ] + }, + "put": { + "description": "Update v1alpha1/Setting", + "operationId": "Updatev1alpha1/Setting", + "parameters": [ + { + "description": "Name of setting", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Setting" + } + } + }, + "description": "Updated setting" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Setting" + } + } + }, + "description": "Response settings updated just now" + } + }, + "tags": [ + "v1alpha1/Setting" + ] + } + }, + "/api/v1alpha1/users": { + "get": { + "description": "List v1alpha1/User", + "operationId": "Listv1alpha1/User", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/UserList" + } + } + }, + "description": "Response users" + } + }, + "tags": [ + "v1alpha1/User" + ] + }, + "post": { + "description": "Create v1alpha1/User", + "operationId": "Createv1alpha1/User", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + }, + "description": "Fresh user" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + }, + "description": "Response users created just now" + } + }, + "tags": [ + "v1alpha1/User" + ] + } + }, + "/api/v1alpha1/users/{name}": { + "delete": { + "description": "Delete v1alpha1/User", + "operationId": "Deletev1alpha1/User", + "parameters": [ + { + "description": "Name of user", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response user deleted just now" + } + }, + "tags": [ + "v1alpha1/User" + ] + }, + "get": { + "description": "Get v1alpha1/User", + "operationId": "Getv1alpha1/User", + "parameters": [ + { + "description": "Name of user", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + }, + "description": "Response single user" + } + }, + "tags": [ + "v1alpha1/User" + ] + }, + "put": { + "description": "Update v1alpha1/User", + "operationId": "Updatev1alpha1/User", + "parameters": [ + { + "description": "Name of user", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + }, + "description": "Updated user" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + }, + "description": "Response users updated just now" + } + }, + "tags": [ + "v1alpha1/User" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/attachments": { + "get": { + "operationId": "SearchAttachments", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Filter attachments without group. This parameter will ignore group parameter.", + "in": "query", + "name": "ungrouped", + "schema": { + "type": "boolean" + } + }, + { + "description": "Keyword for searching.", + "in": "query", + "name": "keyword", + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/AttachmentList" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Attachment" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/attachments/upload": { + "post": { + "operationId": "UploadAttachment", + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/IUploadRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Attachment" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Attachment" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/auth-providers": { + "get": { + "description": "Lists all auth providers", + "operationId": "listAuthProviders", + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ListedAuthProvider" + } + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/AuthProvider" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/auth-providers/{name}/disable": { + "put": { + "description": "Disables an auth provider", + "operationId": "disableAuthProvider", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/AuthProvider" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/AuthProvider" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/auth-providers/{name}/enable": { + "put": { + "description": "Enables an auth provider", + "operationId": "enableAuthProvider", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/AuthProvider" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/AuthProvider" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/caches/{name}": { + "delete": { + "description": "Evict a cache.", + "operationId": "EvictCache", + "parameters": [ + { + "description": "Cache name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + }, + "tags": [ + "v1alpha1/Cache" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/comments": { + "get": { + "description": "List comments.", + "operationId": "ListComments", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Comments filtered by keyword.", + "in": "query", + "name": "keyword", + "schema": { + "type": "string" + } + }, + { + "description": "Commenter kind.", + "in": "query", + "name": "ownerKind", + "schema": { + "type": "string" + } + }, + { + "description": "Commenter name.", + "in": "query", + "name": "ownerName", + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ListedCommentList" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Comment" + ] + }, + "post": { + "description": "Create a comment.", + "operationId": "CreateComment", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommentRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Comment" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Comment" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/comments/{name}/reply": { + "post": { + "description": "Create a reply.", + "operationId": "CreateReply", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReplyRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Reply" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Comment" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/indices/post": { + "post": { + "description": "Build or rebuild post indices for full text search", + "operationId": "BuildPostIndices", + "responses": {}, + "tags": [ + "api.console.halo.run/v1alpha1/Indices" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/notifiers/{name}/sender-config": { + "get": { + "description": "Fetch sender config of notifier", + "operationId": "FetchSenderConfig", + "parameters": [ + { + "description": "Notifier name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "type": "object" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Notifier" + ] + }, + "post": { + "description": "Save sender config of notifier", + "operationId": "SaveSenderConfig", + "parameters": [ + { + "description": "Notifier name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": {}, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Notifier" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/plugin-presets": { + "get": { + "description": "List all plugin presets in the system.", + "operationId": "ListPluginPresets", + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Plugin" + } + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Plugin" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/plugins": { + "get": { + "description": "List plugins using query criteria and sort params", + "operationId": "ListPlugins", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Keyword of plugin name or description", + "in": "query", + "name": "keyword", + "schema": { + "type": "string" + } + }, + { + "description": "Whether the plugin is enabled", + "in": "query", + "name": "enabled", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PluginList" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Plugin" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/plugins/-/bundle.css": { + "get": { + "description": "Merge all CSS bundles of enabled plugins into one.", + "operationId": "fetchCssBundle", + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "type": "string" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Plugin" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/plugins/-/bundle.js": { + "get": { + "description": "Merge all JS bundles of enabled plugins into one.", + "operationId": "fetchJsBundle", + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "type": "string" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Plugin" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/plugins/-/install-from-uri": { + "post": { + "description": "Install a plugin from uri.", + "operationId": "InstallPluginFromUri", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InstallFromUriRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Plugin" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Plugin" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/plugins/install": { + "post": { + "description": "Install a plugin by uploading a Jar file.", + "operationId": "InstallPlugin", + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/PluginInstallRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Plugin" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Plugin" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/plugins/{name}/config": { + "get": { + "description": "Fetch configMap of plugin by configured configMapName.", + "operationId": "fetchPluginConfig", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ConfigMap" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Plugin" + ] + }, + "put": { + "description": "Update the configMap of plugin setting.", + "operationId": "updatePluginConfig", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ConfigMap" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ConfigMap" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Plugin" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/plugins/{name}/plugin-state": { + "put": { + "description": "Change the running state of a plugin by name.", + "operationId": "ChangePluginRunningState", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PluginRunningStateRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Plugin" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Plugin" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/plugins/{name}/reload": { + "put": { + "description": "Reload a plugin by name.", + "operationId": "reloadPlugin", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Plugin" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Plugin" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/plugins/{name}/reset-config": { + "put": { + "description": "Reset the configMap of plugin setting.", + "operationId": "ResetPluginConfig", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ConfigMap" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Plugin" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/plugins/{name}/setting": { + "get": { + "description": "Fetch setting of plugin.", + "operationId": "fetchPluginSetting", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Setting" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Plugin" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/plugins/{name}/upgrade": { + "post": { + "description": "Upgrade a plugin by uploading a Jar file", + "operationId": "UpgradePlugin", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/PluginInstallRequest" + } + } + }, + "required": true + }, + "responses": {}, + "tags": [ + "api.console.halo.run/v1alpha1/Plugin" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/plugins/{name}/upgrade-from-uri": { + "post": { + "description": "Upgrade a plugin from uri.", + "operationId": "UpgradePluginFromUri", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpgradeFromUriRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Plugin" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Plugin" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/posts": { + "get": { + "description": "List posts.", + "operationId": "ListPosts", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Posts filtered by publish phase.", + "in": "query", + "name": "publishPhase", + "schema": { + "type": "string", + "enum": [ + "DRAFT", + "PENDING_APPROVAL", + "PUBLISHED", + "FAILED" + ] + } + }, + { + "description": "Posts filtered by keyword.", + "in": "query", + "name": "keyword", + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ListedPostList" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Post" + ] + }, + "post": { + "description": "Draft a post.", + "operationId": "DraftPost", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PostRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Post" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Post" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/posts/{name}": { + "put": { + "description": "Update a post.", + "operationId": "UpdateDraftPost", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PostRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Post" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Post" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/posts/{name}/content": { + "put": { + "description": "Update a post\u0027s content.", + "operationId": "UpdatePostContent", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Content" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Post" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Post" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/posts/{name}/head-content": { + "get": { + "description": "Fetch head content of post.", + "operationId": "fetchPostHeadContent", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ContentWrapper" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Post" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/posts/{name}/publish": { + "put": { + "description": "Publish a post.", + "operationId": "PublishPost", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Head snapshot name of content.", + "in": "query", + "name": "headSnapshot", + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Post" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Post" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/posts/{name}/recycle": { + "put": { + "description": "Recycle a post.", + "operationId": "RecyclePost", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": {}, + "tags": [ + "api.console.halo.run/v1alpha1/Post" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/posts/{name}/release-content": { + "get": { + "description": "Fetch release content of post.", + "operationId": "fetchPostReleaseContent", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ContentWrapper" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Post" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/posts/{name}/unpublish": { + "put": { + "description": "Publish a post.", + "operationId": "UnpublishPost", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Post" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Post" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/replies": { + "get": { + "description": "List replies.", + "operationId": "ListReplies", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Replies filtered by commentName.", + "in": "query", + "name": "commentName", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ListedReplyList" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Reply" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/singlepages": { + "get": { + "description": "List single pages.", + "operationId": "ListSinglePages", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "SinglePages filtered by contributor.", + "in": "query", + "name": "contributor", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "SinglePages filtered by publish phase.", + "in": "query", + "name": "publishPhase", + "schema": { + "type": "string", + "enum": [ + "DRAFT", + "PENDING_APPROVAL", + "PUBLISHED", + "FAILED" + ] + } + }, + { + "description": "SinglePages filtered by visibility.", + "in": "query", + "name": "visible", + "schema": { + "type": "string", + "enum": [ + "PUBLIC", + "INTERNAL", + "PRIVATE" + ] + } + }, + { + "description": "SinglePages filtered by keyword.", + "in": "query", + "name": "keyword", + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ListedSinglePageList" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/SinglePage" + ] + }, + "post": { + "description": "Draft a single page.", + "operationId": "DraftSinglePage", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SinglePageRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SinglePage" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/SinglePage" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/singlepages/{name}": { + "put": { + "description": "Update a single page.", + "operationId": "UpdateDraftSinglePage", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SinglePageRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SinglePage" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/SinglePage" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content": { + "put": { + "description": "Update a single page\u0027s content.", + "operationId": "UpdateSinglePageContent", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Content" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Post" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/SinglePage" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/singlepages/{name}/head-content": { + "get": { + "description": "Fetch head content of single page.", + "operationId": "fetchSinglePageHeadContent", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ContentWrapper" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/SinglePage" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/singlepages/{name}/publish": { + "put": { + "description": "Publish a single page.", + "operationId": "PublishSinglePage", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SinglePage" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/SinglePage" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/singlepages/{name}/release-content": { + "get": { + "description": "Fetch release content of single page.", + "operationId": "fetchSinglePageReleaseContent", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ContentWrapper" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/SinglePage" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/stats": { + "get": { + "description": "Get stats.", + "operationId": "getStats", + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/DashboardStats" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Stats" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/system/initialize": { + "post": { + "description": "Initialize system", + "operationId": "initialize", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SystemInitializationRequest" + } + } + } + }, + "responses": { + "201": { + "description": "System initialization successfully.", + "headers": { + "Location": { + "description": "Redirect URL.", + "schema": { + "type": "string" + }, + "style": "simple" + } + } + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/System" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/themes": { + "get": { + "description": "List themes.", + "operationId": "ListThemes", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Whether to list uninstalled themes.", + "in": "query", + "name": "uninstalled", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ThemeList" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Theme" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/themes/-/activation": { + "get": { + "description": "Fetch the activated theme.", + "operationId": "fetchActivatedTheme", + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Theme" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Theme" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/themes/-/install-from-uri": { + "post": { + "description": "Install a theme from uri.", + "operationId": "InstallThemeFromUri", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InstallFromUriRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Theme" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Theme" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/themes/install": { + "post": { + "description": "Install a theme by uploading a zip file.", + "operationId": "InstallTheme", + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/ThemeInstallRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Theme" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Theme" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/themes/{name}/activation": { + "put": { + "description": "Activate a theme by name.", + "operationId": "activateTheme", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Theme" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Theme" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/themes/{name}/config": { + "get": { + "description": "Fetch configMap of theme by configured configMapName.", + "operationId": "fetchThemeConfig", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ConfigMap" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Theme" + ] + }, + "put": { + "description": "Update the configMap of theme setting.", + "operationId": "updateThemeConfig", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ConfigMap" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ConfigMap" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Theme" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/themes/{name}/reload": { + "put": { + "description": "Reload theme setting.", + "operationId": "Reload", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Theme" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Theme" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/themes/{name}/reset-config": { + "put": { + "description": "Reset the configMap of theme setting.", + "operationId": "ResetThemeConfig", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ConfigMap" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Theme" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/themes/{name}/setting": { + "get": { + "description": "Fetch setting of theme.", + "operationId": "fetchThemeSetting", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Setting" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Theme" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/themes/{name}/upgrade": { + "post": { + "description": "Upgrade theme", + "operationId": "UpgradeTheme", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/UpgradeRequest" + } + } + }, + "required": true + }, + "responses": {}, + "tags": [ + "api.console.halo.run/v1alpha1/Theme" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/themes/{name}/upgrade-from-uri": { + "post": { + "description": "Upgrade a theme from uri.", + "operationId": "UpgradeThemeFromUri", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpgradeFromUriRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Theme" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/Theme" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/users": { + "get": { + "description": "List users", + "operationId": "ListUsers", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Keyword to search", + "in": "query", + "name": "keyword", + "schema": { + "type": "string" + } + }, + { + "description": "Role name", + "in": "query", + "name": "role", + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/UserEndpoint.ListedUserList" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/User" + ] + }, + "post": { + "description": "Creates a new user.", + "operationId": "CreateUser", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/CreateUserRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/User" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/users/-": { + "get": { + "description": "Get current user detail", + "operationId": "GetCurrentUserDetail", + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/DetailedUser" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/User" + ] + }, + "put": { + "description": "Update current user profile, but password.", + "operationId": "UpdateCurrentUser", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/User" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/users/-/send-email-verification-code": { + "post": { + "description": "Send email verification code for user", + "operationId": "SendEmailVerificationCode", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/EmailVerifyRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": {}, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/User" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/users/-/verify-email": { + "post": { + "description": "Verify email for user by code.", + "operationId": "VerifyEmail", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/VerifyCodeRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": {}, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/User" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/users/{name}": { + "get": { + "description": "Get user detail by name", + "operationId": "GetUserDetail", + "parameters": [ + { + "description": "User name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/DetailedUser" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/User" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/users/{name}/avatar": { + "delete": { + "description": "delete user avatar", + "operationId": "DeleteUserAvatar", + "parameters": [ + { + "description": "User name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/User" + ] + }, + "post": { + "description": "upload user avatar", + "operationId": "UploadUserAvatar", + "parameters": [ + { + "description": "User name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/IAvatarUploadRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/User" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/users/{name}/password": { + "put": { + "description": "Change password of user.", + "operationId": "ChangePassword", + "parameters": [ + { + "description": "Name of user. If the name is equal to \u0027-\u0027, it will change the password of current user.", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ChangePasswordRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/User" + ] + } + }, + "/apis/api.console.halo.run/v1alpha1/users/{name}/permissions": { + "get": { + "description": "Get permissions of user", + "operationId": "GetPermissions", + "parameters": [ + { + "description": "User name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/UserPermission" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/User" + ] + }, + "post": { + "description": "Grant permissions to user", + "operationId": "GrantPermission", + "parameters": [ + { + "description": "User name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/GrantRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.console.halo.run/v1alpha1/User" + ] + } + }, + "/apis/api.console.migration.halo.run/v1alpha1/backups/{name}/files/{filename}": { + "get": { + "operationId": "DownloadBackups", + "parameters": [ + { + "description": "Backup name.", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Backup filename.", + "in": "path", + "name": "filename", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": {}, + "tags": [ + "api.console.migration.halo.run/v1alpha1/Migration" + ] + } + }, + "/apis/api.console.migration.halo.run/v1alpha1/restorations": { + "post": { + "description": "Restore backup by uploading file or providing download link or backup name.", + "operationId": "RestoreBackup", + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/RestoreRequest" + } + } + }, + "required": true + }, + "responses": {}, + "tags": [ + "api.console.migration.halo.run/v1alpha1/Migration" + ] + } + }, + "/apis/api.content.halo.run/v1alpha1/categories": { + "get": { + "description": "Lists categories.", + "operationId": "queryCategories", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/CategoryVoList" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.content.halo.run/v1alpha1/Category" + ] + } + }, + "/apis/api.content.halo.run/v1alpha1/categories/{name}": { + "get": { + "description": "Gets category by name.", + "operationId": "queryCategoryByName", + "parameters": [ + { + "description": "Category name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/CategoryVo" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.content.halo.run/v1alpha1/Category" + ] + } + }, + "/apis/api.content.halo.run/v1alpha1/categories/{name}/posts": { + "get": { + "description": "Lists posts by category name.", + "operationId": "queryPostsByCategoryName", + "parameters": [ + { + "description": "Category name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ListedPostVoList" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.content.halo.run/v1alpha1/Category" + ] + } + }, + "/apis/api.content.halo.run/v1alpha1/posts": { + "get": { + "description": "Lists posts.", + "operationId": "queryPosts", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ListedPostVoList" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.content.halo.run/v1alpha1/Post" + ] + } + }, + "/apis/api.content.halo.run/v1alpha1/posts/{name}": { + "get": { + "description": "Gets a post by name.", + "operationId": "queryPostByName", + "parameters": [ + { + "description": "Post name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PostVo" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.content.halo.run/v1alpha1/Post" + ] + } + }, + "/apis/api.content.halo.run/v1alpha1/posts/{name}/navigation": { + "get": { + "description": "Gets a post navigation by name.", + "operationId": "queryPostNavigationByName", + "parameters": [ + { + "description": "Post name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/NavigationPostVo" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.content.halo.run/v1alpha1/Post" + ] + } + }, + "/apis/api.content.halo.run/v1alpha1/singlepages": { + "get": { + "description": "Lists single pages", + "operationId": "querySinglePages", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ListedSinglePageVoList" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.content.halo.run/v1alpha1/SinglePage" + ] + } + }, + "/apis/api.content.halo.run/v1alpha1/singlepages/{name}": { + "get": { + "description": "Gets single page by name", + "operationId": "querySinglePageByName", + "parameters": [ + { + "description": "SinglePage name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SinglePageVo" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.content.halo.run/v1alpha1/SinglePage" + ] + } + }, + "/apis/api.content.halo.run/v1alpha1/tags": { + "get": { + "description": "Lists tags", + "operationId": "queryTags", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/TagVoList" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.content.halo.run/v1alpha1/Tag" + ] + } + }, + "/apis/api.content.halo.run/v1alpha1/tags/{name}": { + "get": { + "description": "Gets tag by name", + "operationId": "queryTagByName", + "parameters": [ + { + "description": "Tag name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/TagVo" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.content.halo.run/v1alpha1/Tag" + ] + } + }, + "/apis/api.content.halo.run/v1alpha1/tags/{name}/posts": { + "get": { + "description": "Lists posts by tag name", + "operationId": "queryPostsByTagName", + "parameters": [ + { + "description": "Tag name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ListedPostVo" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.content.halo.run/v1alpha1/Tag" + ] + } + }, + "/apis/api.halo.run/v1alpha1/comments": { + "get": { + "description": "List comments.", + "operationId": "ListComments_1", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "The comment subject group.", + "in": "query", + "name": "group", + "schema": { + "type": "string" + } + }, + { + "description": "The comment subject version.", + "in": "query", + "name": "version", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "The comment subject kind.", + "in": "query", + "name": "kind", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "The comment subject name.", + "in": "query", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Whether to include replies. Default is false.", + "in": "query", + "name": "withReplies", + "schema": { + "type": "boolean" + } + }, + { + "description": "Reply size of the comment, default is 10, only works when withReplies is true.", + "in": "query", + "name": "replySize", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/CommentWithReplyVoList" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.halo.run/v1alpha1/Comment" + ] + }, + "post": { + "description": "Create a comment.", + "operationId": "CreateComment_1", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommentRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Comment" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.halo.run/v1alpha1/Comment" + ] + } + }, + "/apis/api.halo.run/v1alpha1/comments/{name}": { + "get": { + "description": "Get a comment.", + "operationId": "GetComment", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/CommentVoList" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.halo.run/v1alpha1/Comment" + ] + } + }, + "/apis/api.halo.run/v1alpha1/comments/{name}/reply": { + "get": { + "description": "List comment replies.", + "operationId": "ListCommentReplies", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ReplyVoList" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.halo.run/v1alpha1/Comment" + ] + }, + "post": { + "description": "Create a reply.", + "operationId": "CreateReply_1", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReplyRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Reply" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.halo.run/v1alpha1/Comment" + ] + } + }, + "/apis/api.halo.run/v1alpha1/indices/post": { + "get": { + "description": "Search posts with fuzzy query", + "operationId": "SearchPost", + "parameters": [ + { + "description": "Keyword to search", + "in": "query", + "name": "keyword", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Limit of search results", + "in": "query", + "name": "limit", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Highlight pre tag", + "in": "query", + "name": "highlightPreTag", + "schema": { + "type": "string" + } + }, + { + "description": "Highlight post tag", + "in": "query", + "name": "highlightPostTag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PostHits" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.halo.run/v1alpha1/Post" + ] + } + }, + "/apis/api.halo.run/v1alpha1/menus/-": { + "get": { + "description": "Gets primary menu.", + "operationId": "queryPrimaryMenu", + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/MenuVo" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.halo.run/v1alpha1/Menu" + ] + } + }, + "/apis/api.halo.run/v1alpha1/menus/{name}": { + "get": { + "description": "Gets menu by name.", + "operationId": "queryMenuByName", + "parameters": [ + { + "description": "Menu name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/MenuVo" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.halo.run/v1alpha1/Menu" + ] + } + }, + "/apis/api.halo.run/v1alpha1/stats/-": { + "get": { + "description": "Gets site stats", + "operationId": "queryStats", + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SiteStatsVo" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.halo.run/v1alpha1/Stats" + ] + } + }, + "/apis/api.halo.run/v1alpha1/trackers/counter": { + "post": { + "description": "Count an extension resource visits.", + "operationId": "count", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CounterRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": {}, + "description": "default response" + } + }, + "tags": [ + "api.halo.run/v1alpha1/Tracker" + ] + } + }, + "/apis/api.halo.run/v1alpha1/trackers/downvote": { + "post": { + "description": "Downvote an extension resource.", + "operationId": "downvote", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VoteRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": {}, + "description": "default response" + } + }, + "tags": [ + "api.halo.run/v1alpha1/Tracker" + ] + } + }, + "/apis/api.halo.run/v1alpha1/trackers/upvote": { + "post": { + "description": "Upvote an extension resource.", + "operationId": "upvote", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VoteRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": {}, + "description": "default response" + } + }, + "tags": [ + "api.halo.run/v1alpha1/Tracker" + ] + } + }, + "/apis/api.halo.run/v1alpha1/users/-/send-password-reset-email": { + "post": { + "description": "Send password reset email when forgot password", + "operationId": "SendPasswordResetEmail", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PasswordResetEmailRequest" + } + } + }, + "required": true + }, + "responses": { + "204 NO_CONTENT": { + "content": {}, + "description": "default response" + } + }, + "tags": [ + "api.halo.run/v1alpha1/User" + ] + } + }, + "/apis/api.halo.run/v1alpha1/users/-/send-register-verify-email": { + "post": { + "description": "Send registration verification email, which can be called when mustVerifyEmailOnRegistration in user settings is true", + "operationId": "SendRegisterVerifyEmail", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/RegisterVerifyEmailRequest" + } + } + }, + "required": true + }, + "responses": { + "204 NO_CONTENT": { + "content": {}, + "description": "default response" + } + }, + "tags": [ + "api.halo.run/v1alpha1/User" + ] + } + }, + "/apis/api.halo.run/v1alpha1/users/-/signup": { + "post": { + "description": "Sign up a new user", + "operationId": "SignUp", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SignUpRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.halo.run/v1alpha1/User" + ] + } + }, + "/apis/api.halo.run/v1alpha1/users/{name}/reset-password": { + "put": { + "description": "Reset password by token", + "operationId": "ResetPasswordByToken", + "parameters": [ + { + "description": "The name of the user", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ResetPasswordRequest" + } + } + }, + "required": true + }, + "responses": { + "204 NO_CONTENT": { + "content": {}, + "description": "default response" + } + }, + "tags": [ + "api.halo.run/v1alpha1/User" + ] + } + }, + "/apis/api.notification.halo.run/v1alpha1/notifiers/{name}/receiver-config": { + "get": { + "description": "Fetch receiver config of notifier", + "operationId": "FetchReceiverConfig", + "parameters": [ + { + "description": "Notifier name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "type": "object" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.notification.halo.run/v1alpha1/Notifier" + ] + }, + "post": { + "description": "Save receiver config of notifier", + "operationId": "SaveReceiverConfig", + "parameters": [ + { + "description": "Notifier name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": {}, + "description": "default response" + } + }, + "tags": [ + "api.notification.halo.run/v1alpha1/Notifier" + ] + } + }, + "/apis/api.notification.halo.run/v1alpha1/subscriptions/{name}/unsubscribe": { + "get": { + "description": "Unsubscribe a subscription", + "operationId": "Unsubscribe", + "parameters": [ + { + "description": "Subscription name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Unsubscribe token", + "in": "query", + "name": "token", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "type": "string" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.notification.halo.run/v1alpha1/Subscription" + ] + } + }, + "/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notification-preferences": { + "get": { + "description": "List notification preferences for the authenticated user.", + "operationId": "ListUserNotificationPreferences", + "parameters": [ + { + "description": "Username", + "in": "path", + "name": "username", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ReasonTypeNotifierMatrix" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.notification.halo.run/v1alpha1/Notification" + ] + }, + "post": { + "description": "Save notification preferences for the authenticated user.", + "operationId": "SaveUserNotificationPreferences", + "parameters": [ + { + "description": "Username", + "in": "path", + "name": "username", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ReasonTypeNotifierCollectionRequest" + } + } + } + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ReasonTypeNotifierMatrix" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.notification.halo.run/v1alpha1/Notification" + ] + } + }, + "/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications": { + "get": { + "description": "List notifications for the authenticated user.", + "operationId": "ListUserNotifications", + "parameters": [ + { + "description": "Username", + "in": "path", + "name": "username", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Keyword", + "in": "query", + "name": "keyword", + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/NotificationList" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.notification.halo.run/v1alpha1/Notification" + ] + } + }, + "/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/-/mark-specified-as-read": { + "put": { + "description": "Mark the specified notifications as read.", + "operationId": "MarkNotificationsAsRead", + "parameters": [ + { + "description": "Username", + "in": "path", + "name": "username", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MarkSpecifiedRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.notification.halo.run/v1alpha1/Notification" + ] + } + }, + "/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/{name}": { + "delete": { + "description": "Delete the specified notification.", + "operationId": "DeleteSpecifiedNotification", + "parameters": [ + { + "description": "Username", + "in": "path", + "name": "username", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Notification name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Notification" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.notification.halo.run/v1alpha1/Notification" + ] + } + }, + "/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/{name}/mark-as-read": { + "put": { + "description": "Mark the specified notification as read.", + "operationId": "MarkNotificationAsRead", + "parameters": [ + { + "description": "Username", + "in": "path", + "name": "username", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Notification name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Notification" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.notification.halo.run/v1alpha1/Notification" + ] + } + }, + "/apis/api.plugin.halo.run/v1alpha1/plugins/{name}/available": { + "get": { + "description": "Gets plugin available by name.", + "operationId": "queryPluginAvailableByName", + "parameters": [ + { + "description": "Plugin name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "type": "boolean" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.plugin.halo.run/v1alpha1/Plugin" + ] + } + }, + "/apis/api.security.halo.run/v1alpha1/authentications/two-factor/settings": { + "get": { + "description": "Get Two-factor authentication settings.", + "operationId": "GetTwoFactorAuthenticationSettings", + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/TwoFactorAuthSettings" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.security.halo.run/v1alpha1/Authentication/TwoFactor" + ] + } + }, + "/apis/api.security.halo.run/v1alpha1/authentications/two-factor/settings/disabled": { + "put": { + "description": "Disable Two-factor authentication", + "operationId": "DisableTwoFactor", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PasswordRequest" + } + } + } + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/TwoFactorAuthSettings" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.security.halo.run/v1alpha1/Authentication/TwoFactor" + ] + } + }, + "/apis/api.security.halo.run/v1alpha1/authentications/two-factor/settings/enabled": { + "put": { + "description": "Enable Two-factor authentication", + "operationId": "EnableTwoFactor", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PasswordRequest" + } + } + } + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/TwoFactorAuthSettings" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.security.halo.run/v1alpha1/Authentication/TwoFactor" + ] + } + }, + "/apis/api.security.halo.run/v1alpha1/authentications/two-factor/totp": { + "post": { + "description": "Configure a TOTP", + "operationId": "ConfigurerTotp", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/TotpRequest" + } + } + } + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/TwoFactorAuthSettings" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.security.halo.run/v1alpha1/Authentication/TwoFactor" + ] + } + }, + "/apis/api.security.halo.run/v1alpha1/authentications/two-factor/totp/-": { + "delete": { + "operationId": "DeleteTotp", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PasswordRequest" + } + } + } + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/TwoFactorAuthSettings" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.security.halo.run/v1alpha1/Authentication/TwoFactor" + ] + } + }, + "/apis/api.security.halo.run/v1alpha1/authentications/two-factor/totp/auth-link": { + "get": { + "description": "Get TOTP auth link, including secret", + "operationId": "GetTotpAuthLink", + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/TotpAuthLinkResponse" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.security.halo.run/v1alpha1/Authentication/TwoFactor" + ] + } + }, + "/apis/api.security.halo.run/v1alpha1/personalaccesstokens": { + "get": { + "description": "Obtain PAT list.", + "operationId": "ObtainPats", + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PersonalAccessToken" + } + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.security.halo.run/v1alpha1/PersonalAccessToken" + ] + }, + "post": { + "description": "Generate a PAT.", + "operationId": "GeneratePat", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PersonalAccessToken" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PersonalAccessToken" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "api.security.halo.run/v1alpha1/PersonalAccessToken" + ] + } + }, + "/apis/api.security.halo.run/v1alpha1/personalaccesstokens/{name}": { + "delete": { + "description": "Delete a PAT", + "operationId": "DeletePat", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": {}, + "tags": [ + "api.security.halo.run/v1alpha1/PersonalAccessToken" + ] + }, + "get": { + "description": "Obtain a PAT.", + "operationId": "ObtainPat", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": {}, + "tags": [ + "api.security.halo.run/v1alpha1/PersonalAccessToken" + ] + } + }, + "/apis/api.security.halo.run/v1alpha1/personalaccesstokens/{name}/actions/restoration": { + "put": { + "description": "Restore a PAT.", + "operationId": "RestorePat", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": {}, + "tags": [ + "api.security.halo.run/v1alpha1/PersonalAccessToken" + ] + } + }, + "/apis/api.security.halo.run/v1alpha1/personalaccesstokens/{name}/actions/revocation": { + "put": { + "description": "Revoke a PAT", + "operationId": "RevokePat", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": {}, + "tags": [ + "api.security.halo.run/v1alpha1/PersonalAccessToken" + ] + } + }, + "/apis/auth.halo.run/v1alpha1/authproviders": { + "get": { + "description": "List auth.halo.run/v1alpha1/AuthProvider", + "operationId": "Listauth.halo.run/v1alpha1/AuthProvider", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/AuthProviderList" + } + } + }, + "description": "Response authproviders" + } + }, + "tags": [ + "auth.halo.run/v1alpha1/AuthProvider" + ] + }, + "post": { + "description": "Create auth.halo.run/v1alpha1/AuthProvider", + "operationId": "Createauth.halo.run/v1alpha1/AuthProvider", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/AuthProvider" + } + } + }, + "description": "Fresh authprovider" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/AuthProvider" + } + } + }, + "description": "Response authproviders created just now" + } + }, + "tags": [ + "auth.halo.run/v1alpha1/AuthProvider" + ] + } + }, + "/apis/auth.halo.run/v1alpha1/authproviders/{name}": { + "delete": { + "description": "Delete auth.halo.run/v1alpha1/AuthProvider", + "operationId": "Deleteauth.halo.run/v1alpha1/AuthProvider", + "parameters": [ + { + "description": "Name of authprovider", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response authprovider deleted just now" + } + }, + "tags": [ + "auth.halo.run/v1alpha1/AuthProvider" + ] + }, + "get": { + "description": "Get auth.halo.run/v1alpha1/AuthProvider", + "operationId": "Getauth.halo.run/v1alpha1/AuthProvider", + "parameters": [ + { + "description": "Name of authprovider", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/AuthProvider" + } + } + }, + "description": "Response single authprovider" + } + }, + "tags": [ + "auth.halo.run/v1alpha1/AuthProvider" + ] + }, + "put": { + "description": "Update auth.halo.run/v1alpha1/AuthProvider", + "operationId": "Updateauth.halo.run/v1alpha1/AuthProvider", + "parameters": [ + { + "description": "Name of authprovider", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/AuthProvider" + } + } + }, + "description": "Updated authprovider" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/AuthProvider" + } + } + }, + "description": "Response authproviders updated just now" + } + }, + "tags": [ + "auth.halo.run/v1alpha1/AuthProvider" + ] + } + }, + "/apis/auth.halo.run/v1alpha1/userconnections": { + "get": { + "description": "List auth.halo.run/v1alpha1/UserConnection", + "operationId": "Listauth.halo.run/v1alpha1/UserConnection", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/UserConnectionList" + } + } + }, + "description": "Response userconnections" + } + }, + "tags": [ + "auth.halo.run/v1alpha1/UserConnection" + ] + }, + "post": { + "description": "Create auth.halo.run/v1alpha1/UserConnection", + "operationId": "Createauth.halo.run/v1alpha1/UserConnection", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/UserConnection" + } + } + }, + "description": "Fresh userconnection" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/UserConnection" + } + } + }, + "description": "Response userconnections created just now" + } + }, + "tags": [ + "auth.halo.run/v1alpha1/UserConnection" + ] + } + }, + "/apis/auth.halo.run/v1alpha1/userconnections/{name}": { + "delete": { + "description": "Delete auth.halo.run/v1alpha1/UserConnection", + "operationId": "Deleteauth.halo.run/v1alpha1/UserConnection", + "parameters": [ + { + "description": "Name of userconnection", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response userconnection deleted just now" + } + }, + "tags": [ + "auth.halo.run/v1alpha1/UserConnection" + ] + }, + "get": { + "description": "Get auth.halo.run/v1alpha1/UserConnection", + "operationId": "Getauth.halo.run/v1alpha1/UserConnection", + "parameters": [ + { + "description": "Name of userconnection", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/UserConnection" + } + } + }, + "description": "Response single userconnection" + } + }, + "tags": [ + "auth.halo.run/v1alpha1/UserConnection" + ] + }, + "put": { + "description": "Update auth.halo.run/v1alpha1/UserConnection", + "operationId": "Updateauth.halo.run/v1alpha1/UserConnection", + "parameters": [ + { + "description": "Name of userconnection", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/UserConnection" + } + } + }, + "description": "Updated userconnection" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/UserConnection" + } + } + }, + "description": "Response userconnections updated just now" + } + }, + "tags": [ + "auth.halo.run/v1alpha1/UserConnection" + ] + } + }, + "/apis/console.api.notification.halo.run/v1alpha1/notifiers/default-email-notifier/verify-connection": { + "post": { + "description": "Verify email sender config.", + "operationId": "VerifyEmailSenderConfig", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/EmailConfigValidationRequest" + } + } + }, + "required": true + }, + "responses": { + "default": { + "content": {}, + "description": "default response" + } + }, + "tags": [ + "console.api.notification.halo.run/v1alpha1/Notifier" + ] + } + }, + "/apis/content.halo.run/v1alpha1/categories": { + "get": { + "description": "List content.halo.run/v1alpha1/Category", + "operationId": "Listcontent.halo.run/v1alpha1/Category", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/CategoryList" + } + } + }, + "description": "Response categories" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Category" + ] + }, + "post": { + "description": "Create content.halo.run/v1alpha1/Category", + "operationId": "Createcontent.halo.run/v1alpha1/Category", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Category" + } + } + }, + "description": "Fresh category" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Category" + } + } + }, + "description": "Response categories created just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Category" + ] + } + }, + "/apis/content.halo.run/v1alpha1/categories/{name}": { + "delete": { + "description": "Delete content.halo.run/v1alpha1/Category", + "operationId": "Deletecontent.halo.run/v1alpha1/Category", + "parameters": [ + { + "description": "Name of category", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response category deleted just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Category" + ] + }, + "get": { + "description": "Get content.halo.run/v1alpha1/Category", + "operationId": "Getcontent.halo.run/v1alpha1/Category", + "parameters": [ + { + "description": "Name of category", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Category" + } + } + }, + "description": "Response single category" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Category" + ] + }, + "put": { + "description": "Update content.halo.run/v1alpha1/Category", + "operationId": "Updatecontent.halo.run/v1alpha1/Category", + "parameters": [ + { + "description": "Name of category", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Category" + } + } + }, + "description": "Updated category" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Category" + } + } + }, + "description": "Response categories updated just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Category" + ] + } + }, + "/apis/content.halo.run/v1alpha1/comments": { + "get": { + "description": "List content.halo.run/v1alpha1/Comment", + "operationId": "Listcontent.halo.run/v1alpha1/Comment", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/CommentList" + } + } + }, + "description": "Response comments" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Comment" + ] + }, + "post": { + "description": "Create content.halo.run/v1alpha1/Comment", + "operationId": "Createcontent.halo.run/v1alpha1/Comment", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Comment" + } + } + }, + "description": "Fresh comment" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Comment" + } + } + }, + "description": "Response comments created just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Comment" + ] + } + }, + "/apis/content.halo.run/v1alpha1/comments/{name}": { + "delete": { + "description": "Delete content.halo.run/v1alpha1/Comment", + "operationId": "Deletecontent.halo.run/v1alpha1/Comment", + "parameters": [ + { + "description": "Name of comment", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response comment deleted just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Comment" + ] + }, + "get": { + "description": "Get content.halo.run/v1alpha1/Comment", + "operationId": "Getcontent.halo.run/v1alpha1/Comment", + "parameters": [ + { + "description": "Name of comment", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Comment" + } + } + }, + "description": "Response single comment" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Comment" + ] + }, + "put": { + "description": "Update content.halo.run/v1alpha1/Comment", + "operationId": "Updatecontent.halo.run/v1alpha1/Comment", + "parameters": [ + { + "description": "Name of comment", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Comment" + } + } + }, + "description": "Updated comment" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Comment" + } + } + }, + "description": "Response comments updated just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Comment" + ] + } + }, + "/apis/content.halo.run/v1alpha1/posts": { + "get": { + "description": "List content.halo.run/v1alpha1/Post", + "operationId": "Listcontent.halo.run/v1alpha1/Post", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PostList" + } + } + }, + "description": "Response posts" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Post" + ] + }, + "post": { + "description": "Create content.halo.run/v1alpha1/Post", + "operationId": "Createcontent.halo.run/v1alpha1/Post", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Post" + } + } + }, + "description": "Fresh post" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Post" + } + } + }, + "description": "Response posts created just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Post" + ] + } + }, + "/apis/content.halo.run/v1alpha1/posts/{name}": { + "delete": { + "description": "Delete content.halo.run/v1alpha1/Post", + "operationId": "Deletecontent.halo.run/v1alpha1/Post", + "parameters": [ + { + "description": "Name of post", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response post deleted just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Post" + ] + }, + "get": { + "description": "Get content.halo.run/v1alpha1/Post", + "operationId": "Getcontent.halo.run/v1alpha1/Post", + "parameters": [ + { + "description": "Name of post", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Post" + } + } + }, + "description": "Response single post" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Post" + ] + }, + "put": { + "description": "Update content.halo.run/v1alpha1/Post", + "operationId": "Updatecontent.halo.run/v1alpha1/Post", + "parameters": [ + { + "description": "Name of post", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Post" + } + } + }, + "description": "Updated post" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Post" + } + } + }, + "description": "Response posts updated just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Post" + ] + } + }, + "/apis/content.halo.run/v1alpha1/replies": { + "get": { + "description": "List content.halo.run/v1alpha1/Reply", + "operationId": "Listcontent.halo.run/v1alpha1/Reply", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ReplyList" + } + } + }, + "description": "Response replies" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Reply" + ] + }, + "post": { + "description": "Create content.halo.run/v1alpha1/Reply", + "operationId": "Createcontent.halo.run/v1alpha1/Reply", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Reply" + } + } + }, + "description": "Fresh reply" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Reply" + } + } + }, + "description": "Response replies created just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Reply" + ] + } + }, + "/apis/content.halo.run/v1alpha1/replies/{name}": { + "delete": { + "description": "Delete content.halo.run/v1alpha1/Reply", + "operationId": "Deletecontent.halo.run/v1alpha1/Reply", + "parameters": [ + { + "description": "Name of reply", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response reply deleted just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Reply" + ] + }, + "get": { + "description": "Get content.halo.run/v1alpha1/Reply", + "operationId": "Getcontent.halo.run/v1alpha1/Reply", + "parameters": [ + { + "description": "Name of reply", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Reply" + } + } + }, + "description": "Response single reply" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Reply" + ] + }, + "put": { + "description": "Update content.halo.run/v1alpha1/Reply", + "operationId": "Updatecontent.halo.run/v1alpha1/Reply", + "parameters": [ + { + "description": "Name of reply", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Reply" + } + } + }, + "description": "Updated reply" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Reply" + } + } + }, + "description": "Response replies updated just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Reply" + ] + } + }, + "/apis/content.halo.run/v1alpha1/singlepages": { + "get": { + "description": "List content.halo.run/v1alpha1/SinglePage", + "operationId": "Listcontent.halo.run/v1alpha1/SinglePage", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SinglePageList" + } + } + }, + "description": "Response singlepages" + } + }, + "tags": [ + "content.halo.run/v1alpha1/SinglePage" + ] + }, + "post": { + "description": "Create content.halo.run/v1alpha1/SinglePage", + "operationId": "Createcontent.halo.run/v1alpha1/SinglePage", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SinglePage" + } + } + }, + "description": "Fresh singlepage" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SinglePage" + } + } + }, + "description": "Response singlepages created just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/SinglePage" + ] + } + }, + "/apis/content.halo.run/v1alpha1/singlepages/{name}": { + "delete": { + "description": "Delete content.halo.run/v1alpha1/SinglePage", + "operationId": "Deletecontent.halo.run/v1alpha1/SinglePage", + "parameters": [ + { + "description": "Name of singlepage", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response singlepage deleted just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/SinglePage" + ] + }, + "get": { + "description": "Get content.halo.run/v1alpha1/SinglePage", + "operationId": "Getcontent.halo.run/v1alpha1/SinglePage", + "parameters": [ + { + "description": "Name of singlepage", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SinglePage" + } + } + }, + "description": "Response single singlepage" + } + }, + "tags": [ + "content.halo.run/v1alpha1/SinglePage" + ] + }, + "put": { + "description": "Update content.halo.run/v1alpha1/SinglePage", + "operationId": "Updatecontent.halo.run/v1alpha1/SinglePage", + "parameters": [ + { + "description": "Name of singlepage", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SinglePage" + } + } + }, + "description": "Updated singlepage" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SinglePage" + } + } + }, + "description": "Response singlepages updated just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/SinglePage" + ] + } + }, + "/apis/content.halo.run/v1alpha1/snapshots": { + "get": { + "description": "List content.halo.run/v1alpha1/Snapshot", + "operationId": "Listcontent.halo.run/v1alpha1/Snapshot", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SnapshotList" + } + } + }, + "description": "Response snapshots" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Snapshot" + ] + }, + "post": { + "description": "Create content.halo.run/v1alpha1/Snapshot", + "operationId": "Createcontent.halo.run/v1alpha1/Snapshot", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Snapshot" + } + } + }, + "description": "Fresh snapshot" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Snapshot" + } + } + }, + "description": "Response snapshots created just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Snapshot" + ] + } + }, + "/apis/content.halo.run/v1alpha1/snapshots/{name}": { + "delete": { + "description": "Delete content.halo.run/v1alpha1/Snapshot", + "operationId": "Deletecontent.halo.run/v1alpha1/Snapshot", + "parameters": [ + { + "description": "Name of snapshot", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response snapshot deleted just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Snapshot" + ] + }, + "get": { + "description": "Get content.halo.run/v1alpha1/Snapshot", + "operationId": "Getcontent.halo.run/v1alpha1/Snapshot", + "parameters": [ + { + "description": "Name of snapshot", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Snapshot" + } + } + }, + "description": "Response single snapshot" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Snapshot" + ] + }, + "put": { + "description": "Update content.halo.run/v1alpha1/Snapshot", + "operationId": "Updatecontent.halo.run/v1alpha1/Snapshot", + "parameters": [ + { + "description": "Name of snapshot", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Snapshot" + } + } + }, + "description": "Updated snapshot" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Snapshot" + } + } + }, + "description": "Response snapshots updated just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Snapshot" + ] + } + }, + "/apis/content.halo.run/v1alpha1/tags": { + "get": { + "description": "List content.halo.run/v1alpha1/Tag", + "operationId": "Listcontent.halo.run/v1alpha1/Tag", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/TagList" + } + } + }, + "description": "Response tags" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Tag" + ] + }, + "post": { + "description": "Create content.halo.run/v1alpha1/Tag", + "operationId": "Createcontent.halo.run/v1alpha1/Tag", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Tag" + } + } + }, + "description": "Fresh tag" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Tag" + } + } + }, + "description": "Response tags created just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Tag" + ] + } + }, + "/apis/content.halo.run/v1alpha1/tags/{name}": { + "delete": { + "description": "Delete content.halo.run/v1alpha1/Tag", + "operationId": "Deletecontent.halo.run/v1alpha1/Tag", + "parameters": [ + { + "description": "Name of tag", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response tag deleted just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Tag" + ] + }, + "get": { + "description": "Get content.halo.run/v1alpha1/Tag", + "operationId": "Getcontent.halo.run/v1alpha1/Tag", + "parameters": [ + { + "description": "Name of tag", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Tag" + } + } + }, + "description": "Response single tag" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Tag" + ] + }, + "put": { + "description": "Update content.halo.run/v1alpha1/Tag", + "operationId": "Updatecontent.halo.run/v1alpha1/Tag", + "parameters": [ + { + "description": "Name of tag", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Tag" + } + } + }, + "description": "Updated tag" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Tag" + } + } + }, + "description": "Response tags updated just now" + } + }, + "tags": [ + "content.halo.run/v1alpha1/Tag" + ] + } + }, + "/apis/metrics.halo.run/v1alpha1/counters": { + "get": { + "description": "List metrics.halo.run/v1alpha1/Counter", + "operationId": "Listmetrics.halo.run/v1alpha1/Counter", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/CounterList" + } + } + }, + "description": "Response counters" + } + }, + "tags": [ + "metrics.halo.run/v1alpha1/Counter" + ] + }, + "post": { + "description": "Create metrics.halo.run/v1alpha1/Counter", + "operationId": "Createmetrics.halo.run/v1alpha1/Counter", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Counter" + } + } + }, + "description": "Fresh counter" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Counter" + } + } + }, + "description": "Response counters created just now" + } + }, + "tags": [ + "metrics.halo.run/v1alpha1/Counter" + ] + } + }, + "/apis/metrics.halo.run/v1alpha1/counters/{name}": { + "delete": { + "description": "Delete metrics.halo.run/v1alpha1/Counter", + "operationId": "Deletemetrics.halo.run/v1alpha1/Counter", + "parameters": [ + { + "description": "Name of counter", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response counter deleted just now" + } + }, + "tags": [ + "metrics.halo.run/v1alpha1/Counter" + ] + }, + "get": { + "description": "Get metrics.halo.run/v1alpha1/Counter", + "operationId": "Getmetrics.halo.run/v1alpha1/Counter", + "parameters": [ + { + "description": "Name of counter", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Counter" + } + } + }, + "description": "Response single counter" + } + }, + "tags": [ + "metrics.halo.run/v1alpha1/Counter" + ] + }, + "put": { + "description": "Update metrics.halo.run/v1alpha1/Counter", + "operationId": "Updatemetrics.halo.run/v1alpha1/Counter", + "parameters": [ + { + "description": "Name of counter", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Counter" + } + } + }, + "description": "Updated counter" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Counter" + } + } + }, + "description": "Response counters updated just now" + } + }, + "tags": [ + "metrics.halo.run/v1alpha1/Counter" + ] + } + }, + "/apis/migration.halo.run/v1alpha1/backups": { + "get": { + "description": "List migration.halo.run/v1alpha1/Backup", + "operationId": "Listmigration.halo.run/v1alpha1/Backup", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/BackupList" + } + } + }, + "description": "Response backups" + } + }, + "tags": [ + "migration.halo.run/v1alpha1/Backup" + ] + }, + "post": { + "description": "Create migration.halo.run/v1alpha1/Backup", + "operationId": "Createmigration.halo.run/v1alpha1/Backup", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Backup" + } + } + }, + "description": "Fresh backup" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Backup" + } + } + }, + "description": "Response backups created just now" + } + }, + "tags": [ + "migration.halo.run/v1alpha1/Backup" + ] + } + }, + "/apis/migration.halo.run/v1alpha1/backups/{name}": { + "delete": { + "description": "Delete migration.halo.run/v1alpha1/Backup", + "operationId": "Deletemigration.halo.run/v1alpha1/Backup", + "parameters": [ + { + "description": "Name of backup", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response backup deleted just now" + } + }, + "tags": [ + "migration.halo.run/v1alpha1/Backup" + ] + }, + "get": { + "description": "Get migration.halo.run/v1alpha1/Backup", + "operationId": "Getmigration.halo.run/v1alpha1/Backup", + "parameters": [ + { + "description": "Name of backup", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Backup" + } + } + }, + "description": "Response single backup" + } + }, + "tags": [ + "migration.halo.run/v1alpha1/Backup" + ] + }, + "put": { + "description": "Update migration.halo.run/v1alpha1/Backup", + "operationId": "Updatemigration.halo.run/v1alpha1/Backup", + "parameters": [ + { + "description": "Name of backup", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Backup" + } + } + }, + "description": "Updated backup" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Backup" + } + } + }, + "description": "Response backups updated just now" + } + }, + "tags": [ + "migration.halo.run/v1alpha1/Backup" + ] + } + }, + "/apis/notification.halo.run/v1alpha1/notifications": { + "get": { + "description": "List notification.halo.run/v1alpha1/Notification", + "operationId": "Listnotification.halo.run/v1alpha1/Notification", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/NotificationList" + } + } + }, + "description": "Response notifications" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/Notification" + ] + }, + "post": { + "description": "Create notification.halo.run/v1alpha1/Notification", + "operationId": "Createnotification.halo.run/v1alpha1/Notification", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Notification" + } + } + }, + "description": "Fresh notification" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Notification" + } + } + }, + "description": "Response notifications created just now" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/Notification" + ] + } + }, + "/apis/notification.halo.run/v1alpha1/notifications/{name}": { + "delete": { + "description": "Delete notification.halo.run/v1alpha1/Notification", + "operationId": "Deletenotification.halo.run/v1alpha1/Notification", + "parameters": [ + { + "description": "Name of notification", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response notification deleted just now" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/Notification" + ] + }, + "get": { + "description": "Get notification.halo.run/v1alpha1/Notification", + "operationId": "Getnotification.halo.run/v1alpha1/Notification", + "parameters": [ + { + "description": "Name of notification", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Notification" + } + } + }, + "description": "Response single notification" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/Notification" + ] + }, + "put": { + "description": "Update notification.halo.run/v1alpha1/Notification", + "operationId": "Updatenotification.halo.run/v1alpha1/Notification", + "parameters": [ + { + "description": "Name of notification", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Notification" + } + } + }, + "description": "Updated notification" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Notification" + } + } + }, + "description": "Response notifications updated just now" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/Notification" + ] + } + }, + "/apis/notification.halo.run/v1alpha1/notificationtemplates": { + "get": { + "description": "List notification.halo.run/v1alpha1/NotificationTemplate", + "operationId": "Listnotification.halo.run/v1alpha1/NotificationTemplate", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/NotificationTemplateList" + } + } + }, + "description": "Response notificationtemplates" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/NotificationTemplate" + ] + }, + "post": { + "description": "Create notification.halo.run/v1alpha1/NotificationTemplate", + "operationId": "Createnotification.halo.run/v1alpha1/NotificationTemplate", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/NotificationTemplate" + } + } + }, + "description": "Fresh notificationtemplate" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/NotificationTemplate" + } + } + }, + "description": "Response notificationtemplates created just now" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/NotificationTemplate" + ] + } + }, + "/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}": { + "delete": { + "description": "Delete notification.halo.run/v1alpha1/NotificationTemplate", + "operationId": "Deletenotification.halo.run/v1alpha1/NotificationTemplate", + "parameters": [ + { + "description": "Name of notificationtemplate", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response notificationtemplate deleted just now" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/NotificationTemplate" + ] + }, + "get": { + "description": "Get notification.halo.run/v1alpha1/NotificationTemplate", + "operationId": "Getnotification.halo.run/v1alpha1/NotificationTemplate", + "parameters": [ + { + "description": "Name of notificationtemplate", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/NotificationTemplate" + } + } + }, + "description": "Response single notificationtemplate" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/NotificationTemplate" + ] + }, + "put": { + "description": "Update notification.halo.run/v1alpha1/NotificationTemplate", + "operationId": "Updatenotification.halo.run/v1alpha1/NotificationTemplate", + "parameters": [ + { + "description": "Name of notificationtemplate", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/NotificationTemplate" + } + } + }, + "description": "Updated notificationtemplate" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/NotificationTemplate" + } + } + }, + "description": "Response notificationtemplates updated just now" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/NotificationTemplate" + ] + } + }, + "/apis/notification.halo.run/v1alpha1/notifierDescriptors": { + "get": { + "description": "List notification.halo.run/v1alpha1/NotifierDescriptor", + "operationId": "Listnotification.halo.run/v1alpha1/NotifierDescriptor", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/NotifierDescriptorList" + } + } + }, + "description": "Response notifierDescriptors" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/NotifierDescriptor" + ] + }, + "post": { + "description": "Create notification.halo.run/v1alpha1/NotifierDescriptor", + "operationId": "Createnotification.halo.run/v1alpha1/NotifierDescriptor", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/NotifierDescriptor" + } + } + }, + "description": "Fresh notifierDescriptor" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/NotifierDescriptor" + } + } + }, + "description": "Response notifierDescriptors created just now" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/NotifierDescriptor" + ] + } + }, + "/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}": { + "delete": { + "description": "Delete notification.halo.run/v1alpha1/NotifierDescriptor", + "operationId": "Deletenotification.halo.run/v1alpha1/NotifierDescriptor", + "parameters": [ + { + "description": "Name of notifierDescriptor", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response notifierDescriptor deleted just now" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/NotifierDescriptor" + ] + }, + "get": { + "description": "Get notification.halo.run/v1alpha1/NotifierDescriptor", + "operationId": "Getnotification.halo.run/v1alpha1/NotifierDescriptor", + "parameters": [ + { + "description": "Name of notifierDescriptor", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/NotifierDescriptor" + } + } + }, + "description": "Response single notifierDescriptor" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/NotifierDescriptor" + ] + }, + "put": { + "description": "Update notification.halo.run/v1alpha1/NotifierDescriptor", + "operationId": "Updatenotification.halo.run/v1alpha1/NotifierDescriptor", + "parameters": [ + { + "description": "Name of notifierDescriptor", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/NotifierDescriptor" + } + } + }, + "description": "Updated notifierDescriptor" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/NotifierDescriptor" + } + } + }, + "description": "Response notifierDescriptors updated just now" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/NotifierDescriptor" + ] + } + }, + "/apis/notification.halo.run/v1alpha1/reasons": { + "get": { + "description": "List notification.halo.run/v1alpha1/Reason", + "operationId": "Listnotification.halo.run/v1alpha1/Reason", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ReasonList" + } + } + }, + "description": "Response reasons" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/Reason" + ] + }, + "post": { + "description": "Create notification.halo.run/v1alpha1/Reason", + "operationId": "Createnotification.halo.run/v1alpha1/Reason", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Reason" + } + } + }, + "description": "Fresh reason" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Reason" + } + } + }, + "description": "Response reasons created just now" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/Reason" + ] + } + }, + "/apis/notification.halo.run/v1alpha1/reasons/{name}": { + "delete": { + "description": "Delete notification.halo.run/v1alpha1/Reason", + "operationId": "Deletenotification.halo.run/v1alpha1/Reason", + "parameters": [ + { + "description": "Name of reason", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response reason deleted just now" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/Reason" + ] + }, + "get": { + "description": "Get notification.halo.run/v1alpha1/Reason", + "operationId": "Getnotification.halo.run/v1alpha1/Reason", + "parameters": [ + { + "description": "Name of reason", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Reason" + } + } + }, + "description": "Response single reason" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/Reason" + ] + }, + "put": { + "description": "Update notification.halo.run/v1alpha1/Reason", + "operationId": "Updatenotification.halo.run/v1alpha1/Reason", + "parameters": [ + { + "description": "Name of reason", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Reason" + } + } + }, + "description": "Updated reason" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Reason" + } + } + }, + "description": "Response reasons updated just now" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/Reason" + ] + } + }, + "/apis/notification.halo.run/v1alpha1/reasontypes": { + "get": { + "description": "List notification.halo.run/v1alpha1/ReasonType", + "operationId": "Listnotification.halo.run/v1alpha1/ReasonType", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ReasonTypeList" + } + } + }, + "description": "Response reasontypes" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/ReasonType" + ] + }, + "post": { + "description": "Create notification.halo.run/v1alpha1/ReasonType", + "operationId": "Createnotification.halo.run/v1alpha1/ReasonType", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ReasonType" + } + } + }, + "description": "Fresh reasontype" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ReasonType" + } + } + }, + "description": "Response reasontypes created just now" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/ReasonType" + ] + } + }, + "/apis/notification.halo.run/v1alpha1/reasontypes/{name}": { + "delete": { + "description": "Delete notification.halo.run/v1alpha1/ReasonType", + "operationId": "Deletenotification.halo.run/v1alpha1/ReasonType", + "parameters": [ + { + "description": "Name of reasontype", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response reasontype deleted just now" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/ReasonType" + ] + }, + "get": { + "description": "Get notification.halo.run/v1alpha1/ReasonType", + "operationId": "Getnotification.halo.run/v1alpha1/ReasonType", + "parameters": [ + { + "description": "Name of reasontype", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ReasonType" + } + } + }, + "description": "Response single reasontype" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/ReasonType" + ] + }, + "put": { + "description": "Update notification.halo.run/v1alpha1/ReasonType", + "operationId": "Updatenotification.halo.run/v1alpha1/ReasonType", + "parameters": [ + { + "description": "Name of reasontype", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ReasonType" + } + } + }, + "description": "Updated reasontype" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ReasonType" + } + } + }, + "description": "Response reasontypes updated just now" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/ReasonType" + ] + } + }, + "/apis/notification.halo.run/v1alpha1/subscriptions": { + "get": { + "description": "List notification.halo.run/v1alpha1/Subscription", + "operationId": "Listnotification.halo.run/v1alpha1/Subscription", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SubscriptionList" + } + } + }, + "description": "Response subscriptions" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/Subscription" + ] + }, + "post": { + "description": "Create notification.halo.run/v1alpha1/Subscription", + "operationId": "Createnotification.halo.run/v1alpha1/Subscription", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Subscription" + } + } + }, + "description": "Fresh subscription" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Subscription" + } + } + }, + "description": "Response subscriptions created just now" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/Subscription" + ] + } + }, + "/apis/notification.halo.run/v1alpha1/subscriptions/{name}": { + "delete": { + "description": "Delete notification.halo.run/v1alpha1/Subscription", + "operationId": "Deletenotification.halo.run/v1alpha1/Subscription", + "parameters": [ + { + "description": "Name of subscription", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response subscription deleted just now" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/Subscription" + ] + }, + "get": { + "description": "Get notification.halo.run/v1alpha1/Subscription", + "operationId": "Getnotification.halo.run/v1alpha1/Subscription", + "parameters": [ + { + "description": "Name of subscription", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Subscription" + } + } + }, + "description": "Response single subscription" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/Subscription" + ] + }, + "put": { + "description": "Update notification.halo.run/v1alpha1/Subscription", + "operationId": "Updatenotification.halo.run/v1alpha1/Subscription", + "parameters": [ + { + "description": "Name of subscription", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Subscription" + } + } + }, + "description": "Updated subscription" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Subscription" + } + } + }, + "description": "Response subscriptions updated just now" + } + }, + "tags": [ + "notification.halo.run/v1alpha1/Subscription" + ] + } + }, + "/apis/plugin.halo.run/v1alpha1/extensiondefinitions": { + "get": { + "description": "List plugin.halo.run/v1alpha1/ExtensionDefinition", + "operationId": "Listplugin.halo.run/v1alpha1/ExtensionDefinition", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ExtensionDefinitionList" + } + } + }, + "description": "Response extensiondefinitions" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/ExtensionDefinition" + ] + }, + "post": { + "description": "Create plugin.halo.run/v1alpha1/ExtensionDefinition", + "operationId": "Createplugin.halo.run/v1alpha1/ExtensionDefinition", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ExtensionDefinition" + } + } + }, + "description": "Fresh extensiondefinition" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ExtensionDefinition" + } + } + }, + "description": "Response extensiondefinitions created just now" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/ExtensionDefinition" + ] + } + }, + "/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}": { + "delete": { + "description": "Delete plugin.halo.run/v1alpha1/ExtensionDefinition", + "operationId": "Deleteplugin.halo.run/v1alpha1/ExtensionDefinition", + "parameters": [ + { + "description": "Name of extensiondefinition", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response extensiondefinition deleted just now" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/ExtensionDefinition" + ] + }, + "get": { + "description": "Get plugin.halo.run/v1alpha1/ExtensionDefinition", + "operationId": "Getplugin.halo.run/v1alpha1/ExtensionDefinition", + "parameters": [ + { + "description": "Name of extensiondefinition", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ExtensionDefinition" + } + } + }, + "description": "Response single extensiondefinition" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/ExtensionDefinition" + ] + }, + "put": { + "description": "Update plugin.halo.run/v1alpha1/ExtensionDefinition", + "operationId": "Updateplugin.halo.run/v1alpha1/ExtensionDefinition", + "parameters": [ + { + "description": "Name of extensiondefinition", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ExtensionDefinition" + } + } + }, + "description": "Updated extensiondefinition" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ExtensionDefinition" + } + } + }, + "description": "Response extensiondefinitions updated just now" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/ExtensionDefinition" + ] + } + }, + "/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions": { + "get": { + "description": "List plugin.halo.run/v1alpha1/ExtensionPointDefinition", + "operationId": "Listplugin.halo.run/v1alpha1/ExtensionPointDefinition", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ExtensionPointDefinitionList" + } + } + }, + "description": "Response extensionpointdefinitions" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/ExtensionPointDefinition" + ] + }, + "post": { + "description": "Create plugin.halo.run/v1alpha1/ExtensionPointDefinition", + "operationId": "Createplugin.halo.run/v1alpha1/ExtensionPointDefinition", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ExtensionPointDefinition" + } + } + }, + "description": "Fresh extensionpointdefinition" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ExtensionPointDefinition" + } + } + }, + "description": "Response extensionpointdefinitions created just now" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/ExtensionPointDefinition" + ] + } + }, + "/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}": { + "delete": { + "description": "Delete plugin.halo.run/v1alpha1/ExtensionPointDefinition", + "operationId": "Deleteplugin.halo.run/v1alpha1/ExtensionPointDefinition", + "parameters": [ + { + "description": "Name of extensionpointdefinition", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response extensionpointdefinition deleted just now" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/ExtensionPointDefinition" + ] + }, + "get": { + "description": "Get plugin.halo.run/v1alpha1/ExtensionPointDefinition", + "operationId": "Getplugin.halo.run/v1alpha1/ExtensionPointDefinition", + "parameters": [ + { + "description": "Name of extensionpointdefinition", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ExtensionPointDefinition" + } + } + }, + "description": "Response single extensionpointdefinition" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/ExtensionPointDefinition" + ] + }, + "put": { + "description": "Update plugin.halo.run/v1alpha1/ExtensionPointDefinition", + "operationId": "Updateplugin.halo.run/v1alpha1/ExtensionPointDefinition", + "parameters": [ + { + "description": "Name of extensionpointdefinition", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ExtensionPointDefinition" + } + } + }, + "description": "Updated extensionpointdefinition" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ExtensionPointDefinition" + } + } + }, + "description": "Response extensionpointdefinitions updated just now" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/ExtensionPointDefinition" + ] + } + }, + "/apis/plugin.halo.run/v1alpha1/plugins": { + "get": { + "description": "List plugin.halo.run/v1alpha1/Plugin", + "operationId": "Listplugin.halo.run/v1alpha1/Plugin", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PluginList" + } + } + }, + "description": "Response plugins" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/Plugin" + ] + }, + "post": { + "description": "Create plugin.halo.run/v1alpha1/Plugin", + "operationId": "Createplugin.halo.run/v1alpha1/Plugin", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Plugin" + } + } + }, + "description": "Fresh plugin" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Plugin" + } + } + }, + "description": "Response plugins created just now" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/Plugin" + ] + } + }, + "/apis/plugin.halo.run/v1alpha1/plugins/{name}": { + "delete": { + "description": "Delete plugin.halo.run/v1alpha1/Plugin", + "operationId": "Deleteplugin.halo.run/v1alpha1/Plugin", + "parameters": [ + { + "description": "Name of plugin", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response plugin deleted just now" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/Plugin" + ] + }, + "get": { + "description": "Get plugin.halo.run/v1alpha1/Plugin", + "operationId": "Getplugin.halo.run/v1alpha1/Plugin", + "parameters": [ + { + "description": "Name of plugin", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Plugin" + } + } + }, + "description": "Response single plugin" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/Plugin" + ] + }, + "put": { + "description": "Update plugin.halo.run/v1alpha1/Plugin", + "operationId": "Updateplugin.halo.run/v1alpha1/Plugin", + "parameters": [ + { + "description": "Name of plugin", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Plugin" + } + } + }, + "description": "Updated plugin" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Plugin" + } + } + }, + "description": "Response plugins updated just now" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/Plugin" + ] + } + }, + "/apis/plugin.halo.run/v1alpha1/reverseproxies": { + "get": { + "description": "List plugin.halo.run/v1alpha1/ReverseProxy", + "operationId": "Listplugin.halo.run/v1alpha1/ReverseProxy", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ReverseProxyList" + } + } + }, + "description": "Response reverseproxies" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/ReverseProxy" + ] + }, + "post": { + "description": "Create plugin.halo.run/v1alpha1/ReverseProxy", + "operationId": "Createplugin.halo.run/v1alpha1/ReverseProxy", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ReverseProxy" + } + } + }, + "description": "Fresh reverseproxy" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ReverseProxy" + } + } + }, + "description": "Response reverseproxies created just now" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/ReverseProxy" + ] + } + }, + "/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}": { + "delete": { + "description": "Delete plugin.halo.run/v1alpha1/ReverseProxy", + "operationId": "Deleteplugin.halo.run/v1alpha1/ReverseProxy", + "parameters": [ + { + "description": "Name of reverseproxy", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response reverseproxy deleted just now" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/ReverseProxy" + ] + }, + "get": { + "description": "Get plugin.halo.run/v1alpha1/ReverseProxy", + "operationId": "Getplugin.halo.run/v1alpha1/ReverseProxy", + "parameters": [ + { + "description": "Name of reverseproxy", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ReverseProxy" + } + } + }, + "description": "Response single reverseproxy" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/ReverseProxy" + ] + }, + "put": { + "description": "Update plugin.halo.run/v1alpha1/ReverseProxy", + "operationId": "Updateplugin.halo.run/v1alpha1/ReverseProxy", + "parameters": [ + { + "description": "Name of reverseproxy", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ReverseProxy" + } + } + }, + "description": "Updated reverseproxy" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ReverseProxy" + } + } + }, + "description": "Response reverseproxies updated just now" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/ReverseProxy" + ] + } + }, + "/apis/plugin.halo.run/v1alpha1/searchengines": { + "get": { + "description": "List plugin.halo.run/v1alpha1/SearchEngine", + "operationId": "Listplugin.halo.run/v1alpha1/SearchEngine", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SearchEngineList" + } + } + }, + "description": "Response searchengines" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/SearchEngine" + ] + }, + "post": { + "description": "Create plugin.halo.run/v1alpha1/SearchEngine", + "operationId": "Createplugin.halo.run/v1alpha1/SearchEngine", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SearchEngine" + } + } + }, + "description": "Fresh searchengine" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SearchEngine" + } + } + }, + "description": "Response searchengines created just now" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/SearchEngine" + ] + } + }, + "/apis/plugin.halo.run/v1alpha1/searchengines/{name}": { + "delete": { + "description": "Delete plugin.halo.run/v1alpha1/SearchEngine", + "operationId": "Deleteplugin.halo.run/v1alpha1/SearchEngine", + "parameters": [ + { + "description": "Name of searchengine", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response searchengine deleted just now" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/SearchEngine" + ] + }, + "get": { + "description": "Get plugin.halo.run/v1alpha1/SearchEngine", + "operationId": "Getplugin.halo.run/v1alpha1/SearchEngine", + "parameters": [ + { + "description": "Name of searchengine", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SearchEngine" + } + } + }, + "description": "Response single searchengine" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/SearchEngine" + ] + }, + "put": { + "description": "Update plugin.halo.run/v1alpha1/SearchEngine", + "operationId": "Updateplugin.halo.run/v1alpha1/SearchEngine", + "parameters": [ + { + "description": "Name of searchengine", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SearchEngine" + } + } + }, + "description": "Updated searchengine" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/SearchEngine" + } + } + }, + "description": "Response searchengines updated just now" + } + }, + "tags": [ + "plugin.halo.run/v1alpha1/SearchEngine" + ] + } + }, + "/apis/security.halo.run/v1alpha1/personalaccesstokens": { + "get": { + "description": "List security.halo.run/v1alpha1/PersonalAccessToken", + "operationId": "Listsecurity.halo.run/v1alpha1/PersonalAccessToken", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PersonalAccessTokenList" + } + } + }, + "description": "Response personalaccesstokens" + } + }, + "tags": [ + "security.halo.run/v1alpha1/PersonalAccessToken" + ] + }, + "post": { + "description": "Create security.halo.run/v1alpha1/PersonalAccessToken", + "operationId": "Createsecurity.halo.run/v1alpha1/PersonalAccessToken", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PersonalAccessToken" + } + } + }, + "description": "Fresh personalaccesstoken" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PersonalAccessToken" + } + } + }, + "description": "Response personalaccesstokens created just now" + } + }, + "tags": [ + "security.halo.run/v1alpha1/PersonalAccessToken" + ] + } + }, + "/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}": { + "delete": { + "description": "Delete security.halo.run/v1alpha1/PersonalAccessToken", + "operationId": "Deletesecurity.halo.run/v1alpha1/PersonalAccessToken", + "parameters": [ + { + "description": "Name of personalaccesstoken", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response personalaccesstoken deleted just now" + } + }, + "tags": [ + "security.halo.run/v1alpha1/PersonalAccessToken" + ] + }, + "get": { + "description": "Get security.halo.run/v1alpha1/PersonalAccessToken", + "operationId": "Getsecurity.halo.run/v1alpha1/PersonalAccessToken", + "parameters": [ + { + "description": "Name of personalaccesstoken", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PersonalAccessToken" + } + } + }, + "description": "Response single personalaccesstoken" + } + }, + "tags": [ + "security.halo.run/v1alpha1/PersonalAccessToken" + ] + }, + "put": { + "description": "Update security.halo.run/v1alpha1/PersonalAccessToken", + "operationId": "Updatesecurity.halo.run/v1alpha1/PersonalAccessToken", + "parameters": [ + { + "description": "Name of personalaccesstoken", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PersonalAccessToken" + } + } + }, + "description": "Updated personalaccesstoken" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PersonalAccessToken" + } + } + }, + "description": "Response personalaccesstokens updated just now" + } + }, + "tags": [ + "security.halo.run/v1alpha1/PersonalAccessToken" + ] + } + }, + "/apis/storage.halo.run/v1alpha1/attachments": { + "get": { + "description": "List storage.halo.run/v1alpha1/Attachment", + "operationId": "Liststorage.halo.run/v1alpha1/Attachment", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/AttachmentList" + } + } + }, + "description": "Response attachments" + } + }, + "tags": [ + "storage.halo.run/v1alpha1/Attachment" + ] + }, + "post": { + "description": "Create storage.halo.run/v1alpha1/Attachment", + "operationId": "Createstorage.halo.run/v1alpha1/Attachment", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Attachment" + } + } + }, + "description": "Fresh attachment" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Attachment" + } + } + }, + "description": "Response attachments created just now" + } + }, + "tags": [ + "storage.halo.run/v1alpha1/Attachment" + ] + } + }, + "/apis/storage.halo.run/v1alpha1/attachments/{name}": { + "delete": { + "description": "Delete storage.halo.run/v1alpha1/Attachment", + "operationId": "Deletestorage.halo.run/v1alpha1/Attachment", + "parameters": [ + { + "description": "Name of attachment", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response attachment deleted just now" + } + }, + "tags": [ + "storage.halo.run/v1alpha1/Attachment" + ] + }, + "get": { + "description": "Get storage.halo.run/v1alpha1/Attachment", + "operationId": "Getstorage.halo.run/v1alpha1/Attachment", + "parameters": [ + { + "description": "Name of attachment", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Attachment" + } + } + }, + "description": "Response single attachment" + } + }, + "tags": [ + "storage.halo.run/v1alpha1/Attachment" + ] + }, + "put": { + "description": "Update storage.halo.run/v1alpha1/Attachment", + "operationId": "Updatestorage.halo.run/v1alpha1/Attachment", + "parameters": [ + { + "description": "Name of attachment", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Attachment" + } + } + }, + "description": "Updated attachment" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Attachment" + } + } + }, + "description": "Response attachments updated just now" + } + }, + "tags": [ + "storage.halo.run/v1alpha1/Attachment" + ] + } + }, + "/apis/storage.halo.run/v1alpha1/groups": { + "get": { + "description": "List storage.halo.run/v1alpha1/Group", + "operationId": "Liststorage.halo.run/v1alpha1/Group", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/GroupList" + } + } + }, + "description": "Response groups" + } + }, + "tags": [ + "storage.halo.run/v1alpha1/Group" + ] + }, + "post": { + "description": "Create storage.halo.run/v1alpha1/Group", + "operationId": "Createstorage.halo.run/v1alpha1/Group", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Group" + } + } + }, + "description": "Fresh group" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Group" + } + } + }, + "description": "Response groups created just now" + } + }, + "tags": [ + "storage.halo.run/v1alpha1/Group" + ] + } + }, + "/apis/storage.halo.run/v1alpha1/groups/{name}": { + "delete": { + "description": "Delete storage.halo.run/v1alpha1/Group", + "operationId": "Deletestorage.halo.run/v1alpha1/Group", + "parameters": [ + { + "description": "Name of group", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response group deleted just now" + } + }, + "tags": [ + "storage.halo.run/v1alpha1/Group" + ] + }, + "get": { + "description": "Get storage.halo.run/v1alpha1/Group", + "operationId": "Getstorage.halo.run/v1alpha1/Group", + "parameters": [ + { + "description": "Name of group", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Group" + } + } + }, + "description": "Response single group" + } + }, + "tags": [ + "storage.halo.run/v1alpha1/Group" + ] + }, + "put": { + "description": "Update storage.halo.run/v1alpha1/Group", + "operationId": "Updatestorage.halo.run/v1alpha1/Group", + "parameters": [ + { + "description": "Name of group", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Group" + } + } + }, + "description": "Updated group" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Group" + } + } + }, + "description": "Response groups updated just now" + } + }, + "tags": [ + "storage.halo.run/v1alpha1/Group" + ] + } + }, + "/apis/storage.halo.run/v1alpha1/policies": { + "get": { + "description": "List storage.halo.run/v1alpha1/Policy", + "operationId": "Liststorage.halo.run/v1alpha1/Policy", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PolicyList" + } + } + }, + "description": "Response policies" + } + }, + "tags": [ + "storage.halo.run/v1alpha1/Policy" + ] + }, + "post": { + "description": "Create storage.halo.run/v1alpha1/Policy", + "operationId": "Createstorage.halo.run/v1alpha1/Policy", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Policy" + } + } + }, + "description": "Fresh policy" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Policy" + } + } + }, + "description": "Response policies created just now" + } + }, + "tags": [ + "storage.halo.run/v1alpha1/Policy" + ] + } + }, + "/apis/storage.halo.run/v1alpha1/policies/{name}": { + "delete": { + "description": "Delete storage.halo.run/v1alpha1/Policy", + "operationId": "Deletestorage.halo.run/v1alpha1/Policy", + "parameters": [ + { + "description": "Name of policy", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response policy deleted just now" + } + }, + "tags": [ + "storage.halo.run/v1alpha1/Policy" + ] + }, + "get": { + "description": "Get storage.halo.run/v1alpha1/Policy", + "operationId": "Getstorage.halo.run/v1alpha1/Policy", + "parameters": [ + { + "description": "Name of policy", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Policy" + } + } + }, + "description": "Response single policy" + } + }, + "tags": [ + "storage.halo.run/v1alpha1/Policy" + ] + }, + "put": { + "description": "Update storage.halo.run/v1alpha1/Policy", + "operationId": "Updatestorage.halo.run/v1alpha1/Policy", + "parameters": [ + { + "description": "Name of policy", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Policy" + } + } + }, + "description": "Updated policy" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Policy" + } + } + }, + "description": "Response policies updated just now" + } + }, + "tags": [ + "storage.halo.run/v1alpha1/Policy" + ] + } + }, + "/apis/storage.halo.run/v1alpha1/policytemplates": { + "get": { + "description": "List storage.halo.run/v1alpha1/PolicyTemplate", + "operationId": "Liststorage.halo.run/v1alpha1/PolicyTemplate", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PolicyTemplateList" + } + } + }, + "description": "Response policytemplates" + } + }, + "tags": [ + "storage.halo.run/v1alpha1/PolicyTemplate" + ] + }, + "post": { + "description": "Create storage.halo.run/v1alpha1/PolicyTemplate", + "operationId": "Createstorage.halo.run/v1alpha1/PolicyTemplate", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PolicyTemplate" + } + } + }, + "description": "Fresh policytemplate" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PolicyTemplate" + } + } + }, + "description": "Response policytemplates created just now" + } + }, + "tags": [ + "storage.halo.run/v1alpha1/PolicyTemplate" + ] + } + }, + "/apis/storage.halo.run/v1alpha1/policytemplates/{name}": { + "delete": { + "description": "Delete storage.halo.run/v1alpha1/PolicyTemplate", + "operationId": "Deletestorage.halo.run/v1alpha1/PolicyTemplate", + "parameters": [ + { + "description": "Name of policytemplate", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response policytemplate deleted just now" + } + }, + "tags": [ + "storage.halo.run/v1alpha1/PolicyTemplate" + ] + }, + "get": { + "description": "Get storage.halo.run/v1alpha1/PolicyTemplate", + "operationId": "Getstorage.halo.run/v1alpha1/PolicyTemplate", + "parameters": [ + { + "description": "Name of policytemplate", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PolicyTemplate" + } + } + }, + "description": "Response single policytemplate" + } + }, + "tags": [ + "storage.halo.run/v1alpha1/PolicyTemplate" + ] + }, + "put": { + "description": "Update storage.halo.run/v1alpha1/PolicyTemplate", + "operationId": "Updatestorage.halo.run/v1alpha1/PolicyTemplate", + "parameters": [ + { + "description": "Name of policytemplate", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PolicyTemplate" + } + } + }, + "description": "Updated policytemplate" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PolicyTemplate" + } + } + }, + "description": "Response policytemplates updated just now" + } + }, + "tags": [ + "storage.halo.run/v1alpha1/PolicyTemplate" + ] + } + }, + "/apis/theme.halo.run/v1alpha1/themes": { + "get": { + "description": "List theme.halo.run/v1alpha1/Theme", + "operationId": "Listtheme.halo.run/v1alpha1/Theme", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ThemeList" + } + } + }, + "description": "Response themes" + } + }, + "tags": [ + "theme.halo.run/v1alpha1/Theme" + ] + }, + "post": { + "description": "Create theme.halo.run/v1alpha1/Theme", + "operationId": "Createtheme.halo.run/v1alpha1/Theme", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Theme" + } + } + }, + "description": "Fresh theme" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Theme" + } + } + }, + "description": "Response themes created just now" + } + }, + "tags": [ + "theme.halo.run/v1alpha1/Theme" + ] + } + }, + "/apis/theme.halo.run/v1alpha1/themes/{name}": { + "delete": { + "description": "Delete theme.halo.run/v1alpha1/Theme", + "operationId": "Deletetheme.halo.run/v1alpha1/Theme", + "parameters": [ + { + "description": "Name of theme", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response theme deleted just now" + } + }, + "tags": [ + "theme.halo.run/v1alpha1/Theme" + ] + }, + "get": { + "description": "Get theme.halo.run/v1alpha1/Theme", + "operationId": "Gettheme.halo.run/v1alpha1/Theme", + "parameters": [ + { + "description": "Name of theme", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Theme" + } + } + }, + "description": "Response single theme" + } + }, + "tags": [ + "theme.halo.run/v1alpha1/Theme" + ] + }, + "put": { + "description": "Update theme.halo.run/v1alpha1/Theme", + "operationId": "Updatetheme.halo.run/v1alpha1/Theme", + "parameters": [ + { + "description": "Name of theme", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Theme" + } + } + }, + "description": "Updated theme" + }, + "responses": { + "200": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Theme" + } + } + }, + "description": "Response themes updated just now" + } + }, + "tags": [ + "theme.halo.run/v1alpha1/Theme" + ] + } + }, + "/apis/uc.api.content.halo.run/v1alpha1/attachments": { + "post": { + "description": "Create attachment for the given post.", + "operationId": "CreateAttachmentForPost", + "parameters": [ + { + "description": "Wait for permalink.", + "in": "query", + "name": "waitForPermalink", + "schema": { + "type": "boolean" + } + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/PostAttachmentRequest" + } + } + } + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Attachment" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "uc.api.content.halo.run/v1alpha1/Attachment" + ] + } + }, + "/apis/uc.api.content.halo.run/v1alpha1/posts": { + "get": { + "description": "List posts owned by the current user.", + "operationId": "ListMyPosts", + "parameters": [ + { + "description": "Page number. Default is 0.", + "in": "query", + "name": "page", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Size number. Default is 0.", + "in": "query", + "name": "size", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "description": "Label selector. e.g.: hidden!\u003dtrue", + "in": "query", + "name": "labelSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Field selector. e.g.: metadata.name\u003d\u003dhalo", + "in": "query", + "name": "fieldSelector", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.", + "in": "query", + "name": "sort", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "description": "Posts filtered by publish phase.", + "in": "query", + "name": "publishPhase", + "schema": { + "type": "string", + "enum": [ + "DRAFT", + "PENDING_APPROVAL", + "PUBLISHED", + "FAILED" + ] + } + }, + { + "description": "Posts filtered by keyword.", + "in": "query", + "name": "keyword", + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ListedPostList" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "uc.api.content.halo.run/v1alpha1/Post" + ] + }, + "post": { + "description": "Create my post. If you want to create a post with content, please set\n annotation: \"content.halo.run/content-json\" into annotations and refer\n to Content for corresponding data type.\n", + "operationId": "CreateMyPost", + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Post" + } + } + } + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Post" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "uc.api.content.halo.run/v1alpha1/Post" + ] + } + }, + "/apis/uc.api.content.halo.run/v1alpha1/posts/{name}": { + "get": { + "description": "Get post that belongs to the current user.", + "operationId": "GetMyPost", + "parameters": [ + { + "description": "Post name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Post" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "uc.api.content.halo.run/v1alpha1/Post" + ] + }, + "put": { + "description": "Update my post.", + "operationId": "UpdateMyPost", + "parameters": [ + { + "description": "Post name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Post" + } + } + } + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Post" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "uc.api.content.halo.run/v1alpha1/Post" + ] + } + }, + "/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/draft": { + "get": { + "description": "Get my post draft.", + "operationId": "GetMyPostDraft", + "parameters": [ + { + "description": "Post name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Should include patched content and raw or not.", + "in": "query", + "name": "patched", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Snapshot" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "uc.api.content.halo.run/v1alpha1/Post" + ] + }, + "put": { + "description": "Update draft of my post. Please make sure set annotation:\n\"content.halo.run/content-json\" into annotations and refer to\nContent for corresponding data type.\n", + "operationId": "UpdateMyPostDraft", + "parameters": [ + { + "description": "Post name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Snapshot" + } + } + } + }, + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Snapshot" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "uc.api.content.halo.run/v1alpha1/Post" + ] + } + }, + "/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/publish": { + "put": { + "description": "Publish my post.", + "operationId": "PublishMyPost", + "parameters": [ + { + "description": "Post name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Post" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "uc.api.content.halo.run/v1alpha1/Post" + ] + } + }, + "/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/unpublish": { + "put": { + "description": "Unpublish my post.", + "operationId": "UnpublishMyPost", + "parameters": [ + { + "description": "Post name", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Post" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "uc.api.content.halo.run/v1alpha1/Post" + ] + } + }, + "/apis/uc.api.content.halo.run/v1alpha1/snapshots/{name}": { + "get": { + "description": "Get snapshot for one post.", + "operationId": "GetSnapshotForPost", + "parameters": [ + { + "description": "Snapshot name.", + "in": "path", + "name": "name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Post name.", + "in": "query", + "name": "postName", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Should include patched content and raw or not.", + "in": "query", + "name": "patched", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/Snapshot" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "uc.api.content.halo.run/v1alpha1/Snapshot" + ] + } + }, + "/login/public-key": { + "get": { + "description": "Read public key for encrypting password.", + "operationId": "GetPublicKey", + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/PublicKeyResponse" + } + } + }, + "description": "default response" + } + }, + "tags": [ + "Login" + ] + } + } + }, + "components": { + "schemas": { + "AnnotationSetting": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/AnnotationSettingSpec" + } + } + }, + "AnnotationSettingList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/AnnotationSetting" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "AnnotationSettingSpec": { + "required": [ + "formSchema", + "targetRef" + ], + "type": "object", + "properties": { + "formSchema": { + "minLength": 1, + "type": "array", + "items": { + "minLength": 1, + "type": "object" + } + }, + "targetRef": { + "$ref": "#/components/schemas/GroupKind" + } + } + }, + "Attachment": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/AttachmentSpec" + }, + "status": { + "$ref": "#/components/schemas/AttachmentStatus" + } + } + }, + "AttachmentList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/Attachment" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "AttachmentSpec": { + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "Display name of attachment" + }, + "groupName": { + "type": "string", + "description": "Group name" + }, + "mediaType": { + "type": "string", + "description": "Media type of attachment" + }, + "ownerName": { + "type": "string", + "description": "Name of User who uploads the attachment" + }, + "policyName": { + "type": "string", + "description": "Policy name" + }, + "size": { + "minimum": 0, + "type": "integer", + "description": "Size of attachment. Unit is Byte", + "format": "int64" + }, + "tags": { + "uniqueItems": true, + "type": "array", + "description": "Tags of attachment", + "items": { + "type": "string", + "description": "Tag name" + } + } + } + }, + "AttachmentStatus": { + "type": "object", + "properties": { + "permalink": { + "type": "string", + "description": "Permalink of attachment.\nIf it is in local storage, the public URL will be set.\nIf it is in s3 storage, the Object URL will be set.\n" + } + } + }, + "AuthProvider": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/AuthProviderSpec" + } + } + }, + "AuthProviderList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/AuthProvider" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "AuthProviderSpec": { + "required": [ + "authenticationUrl", + "displayName" + ], + "type": "object", + "properties": { + "authenticationUrl": { + "type": "string", + "description": "Authentication url of the auth provider" + }, + "bindingUrl": { + "type": "string" + }, + "configMapRef": { + "$ref": "#/components/schemas/ConfigMapRef" + }, + "description": { + "type": "string" + }, + "displayName": { + "type": "string", + "description": "Display name of the auth provider" + }, + "helpPage": { + "type": "string" + }, + "logo": { + "type": "string" + }, + "settingRef": { + "$ref": "#/components/schemas/SettingRef" + }, + "unbindUrl": { + "type": "string" + }, + "website": { + "type": "string" + } + } + }, + "Author": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "name": { + "minLength": 1, + "type": "string" + }, + "website": { + "type": "string" + } + } + }, + "Backup": { + "required": [ + "apiVersion", + "kind", + "metadata" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/BackupSpec" + }, + "status": { + "$ref": "#/components/schemas/BackupStatus" + } + } + }, + "BackupList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/Backup" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "BackupSpec": { + "type": "object", + "properties": { + "expiresAt": { + "type": "string", + "format": "date-time" + }, + "format": { + "type": "string", + "description": "Backup file format. Currently, only zip format is supported." + } + } + }, + "BackupStatus": { + "type": "object", + "properties": { + "completionTimestamp": { + "type": "string", + "format": "date-time" + }, + "failureMessage": { + "type": "string" + }, + "failureReason": { + "type": "string" + }, + "filename": { + "type": "string" + }, + "phase": { + "type": "string", + "enum": [ + "PENDING", + "RUNNING", + "SUCCEEDED", + "FAILED" + ] + }, + "size": { + "type": "integer", + "format": "int64" + }, + "startTimestamp": { + "type": "string", + "format": "date-time" + } + } + }, + "Category": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/CategorySpec" + }, + "status": { + "$ref": "#/components/schemas/CategoryStatus" + } + } + }, + "CategoryList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/Category" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "CategorySpec": { + "required": [ + "displayName", + "priority", + "slug" + ], + "type": "object", + "properties": { + "children": { + "type": "array", + "items": { + "type": "string" + } + }, + "cover": { + "type": "string" + }, + "description": { + "type": "string" + }, + "displayName": { + "minLength": 1, + "type": "string" + }, + "priority": { + "type": "integer", + "format": "int32", + "default": 0 + }, + "slug": { + "minLength": 1, + "type": "string" + }, + "template": { + "type": "string" + } + } + }, + "CategoryStatus": { + "type": "object", + "properties": { + "permalink": { + "type": "string" + }, + "postCount": { + "type": "integer", + "format": "int32" + }, + "visiblePostCount": { + "type": "integer", + "format": "int32" + } + } + }, + "CategoryVo": { + "required": [ + "metadata" + ], + "type": "object", + "properties": { + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "postCount": { + "type": "integer", + "format": "int32" + }, + "spec": { + "$ref": "#/components/schemas/CategorySpec" + }, + "status": { + "$ref": "#/components/schemas/CategoryStatus" + } + } + }, + "CategoryVoList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/CategoryVo" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "ChangePasswordRequest": { + "required": [ + "password" + ], + "type": "object", + "properties": { + "password": { + "minLength": 6, + "type": "string", + "description": "New password." + } + } + }, + "Comment": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/CommentSpec" + }, + "status": { + "$ref": "#/components/schemas/CommentStatus" + } + } + }, + "CommentEmailOwner": { + "type": "object", + "properties": { + "avatar": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "email": { + "type": "string" + }, + "website": { + "type": "string" + } + } + }, + "CommentList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/Comment" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "CommentOwner": { + "required": [ + "kind", + "name" + ], + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "displayName": { + "type": "string" + }, + "kind": { + "minLength": 1, + "type": "string" + }, + "name": { + "maxLength": 64, + "type": "string" + } + } + }, + "CommentRequest": { + "required": [ + "content", + "raw", + "subjectRef" + ], + "type": "object", + "properties": { + "allowNotification": { + "type": "boolean", + "default": false + }, + "content": { + "minLength": 1, + "type": "string" + }, + "owner": { + "$ref": "#/components/schemas/CommentEmailOwner" + }, + "raw": { + "minLength": 1, + "type": "string" + }, + "subjectRef": { + "$ref": "#/components/schemas/Ref" + } + } + }, + "CommentSpec": { + "required": [ + "allowNotification", + "approved", + "content", + "hidden", + "owner", + "priority", + "raw", + "subjectRef", + "top" + ], + "type": "object", + "properties": { + "allowNotification": { + "type": "boolean", + "default": true + }, + "approved": { + "type": "boolean", + "default": false + }, + "approvedTime": { + "type": "string", + "format": "date-time" + }, + "content": { + "minLength": 1, + "type": "string" + }, + "creationTime": { + "type": "string", + "format": "date-time" + }, + "hidden": { + "type": "boolean", + "default": false + }, + "ipAddress": { + "type": "string" + }, + "lastReadTime": { + "type": "string", + "format": "date-time" + }, + "owner": { + "$ref": "#/components/schemas/CommentOwner" + }, + "priority": { + "type": "integer", + "format": "int32", + "default": 0 + }, + "raw": { + "minLength": 1, + "type": "string" + }, + "subjectRef": { + "$ref": "#/components/schemas/Ref" + }, + "top": { + "type": "boolean", + "default": false + }, + "userAgent": { + "type": "string" + } + } + }, + "CommentStats": { + "type": "object", + "properties": { + "upvote": { + "type": "integer", + "format": "int32" + } + } + }, + "CommentStatsVo": { + "type": "object", + "properties": { + "upvote": { + "type": "integer", + "format": "int32" + } + } + }, + "CommentStatus": { + "type": "object", + "properties": { + "hasNewReply": { + "type": "boolean" + }, + "lastReplyTime": { + "type": "string", + "format": "date-time" + }, + "replyCount": { + "type": "integer", + "format": "int32" + }, + "unreadReplyCount": { + "type": "integer", + "format": "int32" + }, + "visibleReplyCount": { + "type": "integer", + "format": "int32" + } + } + }, + "CommentVo": { + "required": [ + "metadata", + "owner", + "spec", + "stats" + ], + "type": "object", + "properties": { + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "owner": { + "$ref": "#/components/schemas/OwnerInfo" + }, + "spec": { + "$ref": "#/components/schemas/CommentSpec" + }, + "stats": { + "$ref": "#/components/schemas/CommentStatsVo" + }, + "status": { + "$ref": "#/components/schemas/CommentStatus" + } + }, + "description": "A chunk of items." + }, + "CommentVoList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/CommentVo" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "CommentWithReplyVo": { + "required": [ + "metadata", + "owner", + "spec", + "stats" + ], + "type": "object", + "properties": { + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "owner": { + "$ref": "#/components/schemas/OwnerInfo" + }, + "replies": { + "$ref": "#/components/schemas/ListResultReplyVo" + }, + "spec": { + "$ref": "#/components/schemas/CommentSpec" + }, + "stats": { + "$ref": "#/components/schemas/CommentStatsVo" + }, + "status": { + "$ref": "#/components/schemas/CommentStatus" + } + }, + "description": "A chunk of items." + }, + "CommentWithReplyVoList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/CommentWithReplyVo" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "Condition": { + "required": [ + "lastTransitionTime", + "message", + "reason", + "status", + "type" + ], + "type": "object", + "properties": { + "lastTransitionTime": { + "type": "string", + "format": "date-time" + }, + "message": { + "maxLength": 32768, + "type": "string" + }, + "reason": { + "maxLength": 1024, + "pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$", + "type": "string" + }, + "status": { + "type": "string", + "enum": [ + "TRUE", + "FALSE", + "UNKNOWN" + ] + }, + "type": { + "maxLength": 316, + "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$", + "type": "string" + } + } + }, + "ConfigMap": { + "required": [ + "apiVersion", + "kind", + "metadata" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "data": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + } + } + }, + "ConfigMapList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/ConfigMap" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "ConfigMapRef": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "name": { + "minLength": 1, + "type": "string" + } + } + }, + "Content": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "raw": { + "type": "string" + }, + "rawType": { + "type": "string" + } + } + }, + "ContentVo": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "raw": { + "type": "string" + } + } + }, + "ContentWrapper": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "raw": { + "type": "string" + }, + "rawType": { + "type": "string" + }, + "snapshotName": { + "type": "string" + } + } + }, + "Contributor": { + "type": "object", + "properties": { + "avatar": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "ContributorVo": { + "required": [ + "metadata" + ], + "type": "object", + "properties": { + "avatar": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "name": { + "type": "string" + }, + "permalink": { + "type": "string" + } + } + }, + "Counter": { + "required": [ + "apiVersion", + "kind", + "metadata" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "approvedComment": { + "type": "integer", + "format": "int32" + }, + "downvote": { + "type": "integer", + "format": "int32" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "totalComment": { + "type": "integer", + "format": "int32" + }, + "upvote": { + "type": "integer", + "format": "int32" + }, + "visit": { + "type": "integer", + "format": "int32" + } + } + }, + "CounterList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/Counter" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "CounterRequest": { + "type": "object", + "properties": { + "group": { + "type": "string" + }, + "hostname": { + "type": "string" + }, + "language": { + "type": "string" + }, + "name": { + "type": "string" + }, + "plural": { + "type": "string" + }, + "referrer": { + "type": "string" + }, + "screen": { + "type": "string" + } + } + }, + "CreateUserRequest": { + "required": [ + "email", + "name" + ], + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "avatar": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + }, + "password": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "roles": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "CustomTemplates": { + "type": "object", + "properties": { + "category": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TemplateDescriptor" + } + }, + "page": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TemplateDescriptor" + } + }, + "post": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TemplateDescriptor" + } + } + } + }, + "DashboardStats": { + "type": "object", + "properties": { + "approvedComments": { + "type": "integer", + "format": "int32" + }, + "comments": { + "type": "integer", + "format": "int32" + }, + "posts": { + "type": "integer", + "format": "int32" + }, + "upvotes": { + "type": "integer", + "format": "int32" + }, + "users": { + "type": "integer", + "format": "int32" + }, + "visits": { + "type": "integer", + "format": "int32" + } + } + }, + "DetailedUser": { + "required": [ + "roles", + "user" + ], + "type": "object", + "properties": { + "roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + }, + "user": { + "$ref": "#/components/schemas/User" + } + } + }, + "EmailConfigValidationRequest": { + "type": "object", + "properties": { + "displayName": { + "type": "string" + }, + "enable": { + "type": "boolean" + }, + "encryption": { + "type": "string" + }, + "host": { + "type": "string" + }, + "password": { + "type": "string" + }, + "port": { + "type": "integer", + "format": "int32" + }, + "sender": { + "type": "string" + }, + "username": { + "type": "string" + } + } + }, + "EmailVerifyRequest": { + "required": [ + "email" + ], + "type": "object", + "properties": { + "email": { + "type": "string" + } + } + }, + "Excerpt": { + "required": [ + "autoGenerate" + ], + "type": "object", + "properties": { + "autoGenerate": { + "type": "boolean", + "default": true + }, + "raw": { + "type": "string" + } + } + }, + "Extension": { + "required": [ + "apiVersion", + "kind", + "metadata" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + } + } + }, + "ExtensionDefinition": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/ExtensionSpec" + } + } + }, + "ExtensionDefinitionList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/ExtensionDefinition" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "ExtensionPointDefinition": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/ExtensionPointSpec" + } + } + }, + "ExtensionPointDefinitionList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/ExtensionPointDefinition" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "ExtensionPointSpec": { + "required": [ + "className", + "displayName", + "type" + ], + "type": "object", + "properties": { + "className": { + "type": "string" + }, + "description": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "SINGLETON", + "MULTI_INSTANCE" + ] + } + } + }, + "ExtensionSpec": { + "required": [ + "className", + "displayName", + "extensionPointName" + ], + "type": "object", + "properties": { + "className": { + "type": "string" + }, + "description": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "extensionPointName": { + "type": "string" + }, + "icon": { + "type": "string" + } + } + }, + "FileReverseProxyProvider": { + "type": "object", + "properties": { + "directory": { + "type": "string" + }, + "filename": { + "type": "string" + } + } + }, + "GrantRequest": { + "type": "object", + "properties": { + "roles": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "Group": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/GroupSpec" + }, + "status": { + "$ref": "#/components/schemas/GroupStatus" + } + } + }, + "GroupKind": { + "type": "object", + "properties": { + "group": { + "type": "string" + }, + "kind": { + "type": "string" + } + } + }, + "GroupList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/Group" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "GroupSpec": { + "required": [ + "displayName" + ], + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "Display name of group" + } + } + }, + "GroupStatus": { + "type": "object", + "properties": { + "totalAttachments": { + "minimum": 0, + "type": "integer", + "description": "Total of attachments under the current group", + "format": "int64" + }, + "updateTimestamp": { + "type": "string", + "description": "Update timestamp of the group", + "format": "date-time" + } + } + }, + "IAvatarUploadRequest": { + "required": [ + "file" + ], + "type": "object", + "properties": { + "file": { + "type": "string", + "format": "binary" + } + } + }, + "IUploadRequest": { + "required": [ + "file", + "policyName" + ], + "type": "object", + "properties": { + "file": { + "type": "string", + "format": "binary" + }, + "groupName": { + "type": "string", + "description": "The name of the group to which the attachment belongs" + }, + "policyName": { + "type": "string", + "description": "Storage policy name" + } + } + }, + "InstallFromUriRequest": { + "required": [ + "uri" + ], + "type": "object", + "properties": { + "uri": { + "type": "string", + "format": "uri" + } + } + }, + "InterestReason": { + "required": [ + "reasonType", + "subject" + ], + "type": "object", + "properties": { + "reasonType": { + "type": "string", + "description": "The name of the reason definition to be interested in" + }, + "subject": { + "$ref": "#/components/schemas/InterestReasonSubject" + } + }, + "description": "The reason to be interested in" + }, + "InterestReasonSubject": { + "required": [ + "apiVersion", + "kind" + ], + "type": "object", + "properties": { + "apiVersion": { + "minLength": 1, + "type": "string" + }, + "kind": { + "minLength": 1, + "type": "string" + }, + "name": { + "type": "string", + "description": "if name is not specified, it presents all subjects of the specified reason type and custom resources" + } + }, + "description": "The subject name of reason type to be interested in" + }, + "License": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + } + }, + "ListResultReplyVo": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/ReplyVo" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "ListedAuthProvider": { + "required": [ + "displayName", + "name" + ], + "type": "object", + "properties": { + "authenticationUrl": { + "type": "string" + }, + "bindingUrl": { + "type": "string" + }, + "description": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "helpPage": { + "type": "string" + }, + "isBound": { + "type": "boolean" + }, + "logo": { + "type": "string" + }, + "name": { + "type": "string" + }, + "privileged": { + "type": "boolean" + }, + "supportsBinding": { + "type": "boolean" + }, + "unbindingUrl": { + "type": "string" + }, + "website": { + "type": "string" + } + } + }, + "ListedComment": { + "required": [ + "comment", + "owner", + "stats" + ], + "type": "object", + "properties": { + "comment": { + "$ref": "#/components/schemas/Comment" + }, + "owner": { + "$ref": "#/components/schemas/OwnerInfo" + }, + "stats": { + "$ref": "#/components/schemas/CommentStats" + }, + "subject": { + "$ref": "#/components/schemas/Extension" + } + }, + "description": "A chunk of items." + }, + "ListedCommentList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/ListedComment" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "ListedPost": { + "required": [ + "categories", + "contributors", + "owner", + "post", + "stats", + "tags" + ], + "type": "object", + "properties": { + "categories": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Category" + } + }, + "contributors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Contributor" + } + }, + "owner": { + "$ref": "#/components/schemas/Contributor" + }, + "post": { + "$ref": "#/components/schemas/Post" + }, + "stats": { + "$ref": "#/components/schemas/Stats" + }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Tag" + } + } + }, + "description": "A chunk of items." + }, + "ListedPostList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/ListedPost" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "ListedPostVo": { + "required": [ + "metadata" + ], + "type": "object", + "properties": { + "categories": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CategoryVo" + } + }, + "contributors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ContributorVo" + } + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "owner": { + "$ref": "#/components/schemas/ContributorVo" + }, + "spec": { + "$ref": "#/components/schemas/PostSpec" + }, + "stats": { + "$ref": "#/components/schemas/StatsVo" + }, + "status": { + "$ref": "#/components/schemas/PostStatus" + }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TagVo" + } + } + } + }, + "ListedPostVoList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/ListedPostVo" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "ListedReply": { + "required": [ + "owner", + "reply", + "stats" + ], + "type": "object", + "properties": { + "owner": { + "$ref": "#/components/schemas/OwnerInfo" + }, + "reply": { + "$ref": "#/components/schemas/Reply" + }, + "stats": { + "$ref": "#/components/schemas/CommentStats" + } + }, + "description": "A chunk of items." + }, + "ListedReplyList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/ListedReply" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "ListedSinglePage": { + "required": [ + "contributors", + "owner", + "page", + "stats" + ], + "type": "object", + "properties": { + "contributors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Contributor" + } + }, + "owner": { + "$ref": "#/components/schemas/Contributor" + }, + "page": { + "$ref": "#/components/schemas/SinglePage" + }, + "stats": { + "$ref": "#/components/schemas/Stats" + } + }, + "description": "A chunk of items." + }, + "ListedSinglePageList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/ListedSinglePage" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "ListedSinglePageVo": { + "required": [ + "metadata" + ], + "type": "object", + "properties": { + "contributors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ContributorVo" + } + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "owner": { + "$ref": "#/components/schemas/ContributorVo" + }, + "spec": { + "$ref": "#/components/schemas/SinglePageSpec" + }, + "stats": { + "$ref": "#/components/schemas/StatsVo" + }, + "status": { + "$ref": "#/components/schemas/SinglePageStatus" + } + }, + "description": "A chunk of items." + }, + "ListedSinglePageVoList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/ListedSinglePageVo" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "ListedUser": { + "required": [ + "roles", + "user" + ], + "type": "object", + "properties": { + "roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + }, + "user": { + "$ref": "#/components/schemas/User" + } + }, + "description": "A chunk of items." + }, + "LoginHistory": { + "required": [ + "loginAt", + "sourceIp", + "successful", + "userAgent" + ], + "type": "object", + "properties": { + "loginAt": { + "type": "string", + "format": "date-time" + }, + "reason": { + "type": "string" + }, + "sourceIp": { + "type": "string" + }, + "successful": { + "type": "boolean" + }, + "userAgent": { + "type": "string" + } + } + }, + "MarkSpecifiedRequest": { + "type": "object", + "properties": { + "names": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "Menu": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/MenuSpec" + } + } + }, + "MenuItem": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/MenuItemSpec" + }, + "status": { + "$ref": "#/components/schemas/MenuItemStatus" + } + } + }, + "MenuItemList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/MenuItem" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "MenuItemSpec": { + "type": "object", + "properties": { + "children": { + "uniqueItems": true, + "type": "array", + "description": "Children of this menu item", + "items": { + "type": "string", + "description": "The name of menu item child" + } + }, + "displayName": { + "type": "string", + "description": "The display name of menu item." + }, + "href": { + "type": "string", + "description": "The href of this menu item." + }, + "priority": { + "type": "integer", + "description": "The priority is for ordering.", + "format": "int32" + }, + "target": { + "type": "string", + "description": "The \u003ca\u003e target attribute of this menu item.", + "enum": [ + "_blank", + "_self", + "_parent", + "_top" + ] + }, + "targetRef": { + "$ref": "#/components/schemas/Ref" + } + }, + "description": "The spec of menu item." + }, + "MenuItemStatus": { + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "Calculated Display name of menu item." + }, + "href": { + "type": "string", + "description": "Calculated href of manu item." + } + }, + "description": "The status of menu item." + }, + "MenuItemVo": { + "required": [ + "metadata" + ], + "type": "object", + "properties": { + "displayName": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "parentName": { + "type": "string" + }, + "spec": { + "$ref": "#/components/schemas/MenuItemSpec" + }, + "status": { + "$ref": "#/components/schemas/MenuItemStatus" + } + } + }, + "MenuList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/Menu" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "MenuSpec": { + "required": [ + "displayName" + ], + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "The display name of the menu." + }, + "menuItems": { + "uniqueItems": true, + "type": "array", + "description": "Names of menu children below this menu.", + "items": { + "type": "string", + "description": "Names of menu children below this menu." + } + } + }, + "description": "The spec of menu." + }, + "MenuVo": { + "required": [ + "metadata" + ], + "type": "object", + "properties": { + "menuItems": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MenuItemVo" + } + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/MenuSpec" + } + } + }, + "Metadata": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "creationTimestamp": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "deletionTimestamp": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "finalizers": { + "uniqueItems": true, + "type": "array", + "nullable": true, + "items": { + "type": "string", + "nullable": true + } + }, + "generateName": { + "type": "string", + "description": "The name field will be generated automatically according to the given generateName field" + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string", + "description": "Metadata name" + }, + "version": { + "type": "integer", + "format": "int64", + "nullable": true + } + } + }, + "NavigationPostVo": { + "type": "object", + "properties": { + "current": { + "$ref": "#/components/schemas/PostVo" + }, + "next": { + "$ref": "#/components/schemas/PostVo" + }, + "previous": { + "$ref": "#/components/schemas/PostVo" + } + } + }, + "Notification": { + "required": [ + "apiVersion", + "kind", + "metadata" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/NotificationSpec" + } + } + }, + "NotificationList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/Notification" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "NotificationSpec": { + "required": [ + "htmlContent", + "rawContent", + "reason", + "recipient", + "title" + ], + "type": "object", + "properties": { + "htmlContent": { + "type": "string" + }, + "lastReadAt": { + "type": "string", + "format": "date-time" + }, + "rawContent": { + "type": "string" + }, + "reason": { + "minLength": 1, + "type": "string", + "description": "The name of reason" + }, + "recipient": { + "minLength": 1, + "type": "string", + "description": "The name of user" + }, + "title": { + "minLength": 1, + "type": "string" + }, + "unread": { + "type": "boolean" + } + } + }, + "NotificationTemplate": { + "required": [ + "apiVersion", + "kind", + "metadata" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/NotificationTemplateSpec" + } + } + }, + "NotificationTemplateList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/NotificationTemplate" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "NotificationTemplateSpec": { + "type": "object", + "properties": { + "reasonSelector": { + "$ref": "#/components/schemas/ReasonSelector" + }, + "template": { + "$ref": "#/components/schemas/TemplateContent" + } + } + }, + "NotifierDescriptor": { + "required": [ + "apiVersion", + "kind", + "metadata" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/NotifierDescriptorSpec" + } + } + }, + "NotifierDescriptorList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/NotifierDescriptor" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "NotifierDescriptorSpec": { + "required": [ + "displayName", + "notifierExtName" + ], + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "displayName": { + "minLength": 1, + "type": "string" + }, + "notifierExtName": { + "minLength": 1, + "type": "string" + }, + "receiverSettingRef": { + "$ref": "#/components/schemas/NotifierSettingRef" + }, + "senderSettingRef": { + "$ref": "#/components/schemas/NotifierSettingRef" + } + } + }, + "NotifierInfo": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "NotifierSettingRef": { + "required": [ + "group", + "name" + ], + "type": "object", + "properties": { + "group": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "OwnerInfo": { + "type": "object", + "properties": { + "avatar": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "email": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "PasswordRequest": { + "required": [ + "password" + ], + "type": "object", + "properties": { + "password": { + "type": "string" + } + } + }, + "PasswordResetEmailRequest": { + "required": [ + "email", + "username" + ], + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "username": { + "type": "string" + } + } + }, + "PatSpec": { + "required": [ + "name", + "tokenId", + "username" + ], + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "expiresAt": { + "type": "string", + "format": "date-time" + }, + "lastUsed": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + }, + "revoked": { + "type": "boolean" + }, + "revokesAt": { + "type": "string", + "format": "date-time" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "tokenId": { + "type": "string" + }, + "username": { + "type": "string" + } + } + }, + "PersonalAccessToken": { + "required": [ + "apiVersion", + "kind", + "metadata" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/PatSpec" + } + } + }, + "PersonalAccessTokenList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/PersonalAccessToken" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "Plugin": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/PluginSpec" + }, + "status": { + "$ref": "#/components/schemas/PluginStatus" + } + } + }, + "PluginAuthor": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "name": { + "minLength": 1, + "type": "string" + }, + "website": { + "type": "string" + } + } + }, + "PluginInstallRequest": { + "type": "object", + "properties": { + "file": { + "type": "string", + "format": "binary" + }, + "presetName": { + "type": "string", + "description": "Plugin preset name. We will find the plugin from plugin presets" + }, + "source": { + "type": "string", + "description": "Install source. Default is file.", + "enum": [ + "FILE", + "PRESET", + "URL" + ] + } + } + }, + "PluginList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/Plugin" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "PluginRunningStateRequest": { + "type": "object", + "properties": { + "async": { + "type": "boolean" + }, + "enable": { + "type": "boolean" + } + } + }, + "PluginSpec": { + "required": [ + "version" + ], + "type": "object", + "properties": { + "author": { + "$ref": "#/components/schemas/PluginAuthor" + }, + "configMapName": { + "type": "string" + }, + "description": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "homepage": { + "type": "string" + }, + "license": { + "type": "array", + "items": { + "$ref": "#/components/schemas/License" + } + }, + "logo": { + "type": "string" + }, + "pluginClass": { + "type": "string", + "deprecated": true + }, + "pluginDependencies": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "repo": { + "type": "string" + }, + "requires": { + "type": "string" + }, + "settingName": { + "type": "string" + }, + "version": { + "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$", + "type": "string" + } + } + }, + "PluginStatus": { + "type": "object", + "properties": { + "conditions": { + "type": "array", + "properties": { + "empty": { + "type": "boolean" + } + }, + "items": { + "$ref": "#/components/schemas/Condition" + } + }, + "entry": { + "type": "string" + }, + "lastProbeState": { + "type": "string", + "enum": [ + "CREATED", + "DISABLED", + "RESOLVED", + "STARTED", + "STOPPED", + "FAILED", + "UNLOADED" + ] + }, + "lastStartTime": { + "type": "string", + "format": "date-time" + }, + "loadLocation": { + "type": "string", + "description": "Load location of the plugin, often a path.", + "format": "uri" + }, + "logo": { + "type": "string" + }, + "phase": { + "type": "string", + "enum": [ + "PENDING", + "STARTING", + "CREATED", + "DISABLED", + "RESOLVED", + "STARTED", + "STOPPED", + "FAILED", + "UNKNOWN" + ] + }, + "stylesheet": { + "type": "string" + } + } + }, + "Policy": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/PolicySpec" + } + } + }, + "PolicyList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/Policy" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "PolicyRule": { + "type": "object", + "properties": { + "apiGroups": { + "type": "array", + "items": { + "type": "string" + } + }, + "nonResourceURLs": { + "type": "array", + "items": { + "type": "string" + } + }, + "resourceNames": { + "type": "array", + "items": { + "type": "string" + } + }, + "resources": { + "type": "array", + "items": { + "type": "string" + } + }, + "verbs": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "PolicySpec": { + "required": [ + "displayName", + "templateName" + ], + "type": "object", + "properties": { + "configMapName": { + "type": "string", + "description": "Reference name of ConfigMap extension" + }, + "displayName": { + "type": "string", + "description": "Display name of policy" + }, + "templateName": { + "type": "string", + "description": "Reference name of PolicyTemplate" + } + } + }, + "PolicyTemplate": { + "required": [ + "apiVersion", + "kind", + "metadata" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/PolicyTemplateSpec" + } + } + }, + "PolicyTemplateList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/PolicyTemplate" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "PolicyTemplateSpec": { + "required": [ + "settingName" + ], + "type": "object", + "properties": { + "displayName": { + "type": "string" + }, + "settingName": { + "type": "string" + } + } + }, + "Post": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/PostSpec" + }, + "status": { + "$ref": "#/components/schemas/PostStatus" + } + } + }, + "PostAttachmentRequest": { + "required": [ + "file" + ], + "type": "object", + "properties": { + "file": { + "type": "string", + "format": "binary" + }, + "postName": { + "type": "string", + "description": "Post name." + }, + "singlePageName": { + "type": "string", + "description": "Single page name." + } + } + }, + "PostHit": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "name": { + "type": "string" + }, + "permalink": { + "type": "string" + }, + "publishTimestamp": { + "type": "string", + "format": "date-time" + }, + "title": { + "type": "string" + } + } + }, + "PostHits": { + "type": "object", + "properties": { + "hits": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PostHit" + } + }, + "keyword": { + "type": "string" + }, + "limit": { + "type": "integer", + "format": "int32" + }, + "processingTimeMillis": { + "type": "integer", + "format": "int64" + }, + "total": { + "type": "integer", + "format": "int64" + } + } + }, + "PostList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/Post" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "PostRequest": { + "required": [ + "post" + ], + "type": "object", + "properties": { + "content": { + "$ref": "#/components/schemas/Content" + }, + "post": { + "$ref": "#/components/schemas/Post" + } + } + }, + "PostSpec": { + "required": [ + "allowComment", + "deleted", + "excerpt", + "pinned", + "priority", + "publish", + "slug", + "title", + "visible" + ], + "type": "object", + "properties": { + "allowComment": { + "type": "boolean", + "default": true + }, + "baseSnapshot": { + "type": "string" + }, + "categories": { + "type": "array", + "items": { + "type": "string" + } + }, + "cover": { + "type": "string" + }, + "deleted": { + "type": "boolean", + "default": false + }, + "excerpt": { + "$ref": "#/components/schemas/Excerpt" + }, + "headSnapshot": { + "type": "string" + }, + "htmlMetas": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "owner": { + "type": "string" + }, + "pinned": { + "type": "boolean", + "default": false + }, + "priority": { + "type": "integer", + "format": "int32", + "default": 0 + }, + "publish": { + "type": "boolean", + "default": false + }, + "publishTime": { + "type": "string", + "format": "date-time" + }, + "releaseSnapshot": { + "type": "string" + }, + "slug": { + "minLength": 1, + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "template": { + "type": "string" + }, + "title": { + "minLength": 1, + "type": "string" + }, + "visible": { + "type": "string", + "enum": [ + "PUBLIC", + "INTERNAL", + "PRIVATE" + ], + "default": "PUBLIC" + } + } + }, + "PostStatus": { + "required": [ + "phase" + ], + "type": "object", + "properties": { + "commentsCount": { + "type": "integer", + "format": "int32" + }, + "conditions": { + "type": "array", + "properties": { + "empty": { + "type": "boolean" + } + }, + "items": { + "$ref": "#/components/schemas/Condition" + } + }, + "contributors": { + "type": "array", + "items": { + "type": "string" + } + }, + "excerpt": { + "type": "string" + }, + "inProgress": { + "type": "boolean" + }, + "lastModifyTime": { + "type": "string", + "format": "date-time" + }, + "observedVersion": { + "type": "integer", + "format": "int64" + }, + "permalink": { + "type": "string" + }, + "phase": { + "type": "string" + } + } + }, + "PostVo": { + "required": [ + "metadata" + ], + "type": "object", + "properties": { + "categories": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CategoryVo" + } + }, + "content": { + "$ref": "#/components/schemas/ContentVo" + }, + "contributors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ContributorVo" + } + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "owner": { + "$ref": "#/components/schemas/ContributorVo" + }, + "spec": { + "$ref": "#/components/schemas/PostSpec" + }, + "stats": { + "$ref": "#/components/schemas/StatsVo" + }, + "status": { + "$ref": "#/components/schemas/PostStatus" + }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TagVo" + } + } + } + }, + "PublicKeyResponse": { + "type": "object", + "properties": { + "base64Format": { + "type": "string" + } + } + }, + "Reason": { + "required": [ + "apiVersion", + "kind", + "metadata" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/ReasonSpec" + } + } + }, + "ReasonList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/Reason" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "ReasonProperty": { + "required": [ + "name", + "type" + ], + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "name": { + "minLength": 1, + "type": "string" + }, + "optional": { + "type": "boolean", + "default": false + }, + "type": { + "minLength": 1, + "type": "string" + } + } + }, + "ReasonSelector": { + "required": [ + "language", + "reasonType" + ], + "type": "object", + "properties": { + "language": { + "minLength": 1, + "type": "string", + "default": "default" + }, + "reasonType": { + "minLength": 1, + "type": "string" + } + } + }, + "ReasonSpec": { + "required": [ + "author", + "reasonType", + "subject" + ], + "type": "object", + "properties": { + "attributes": { + "type": "object", + "properties": { + "empty": { + "type": "boolean" + } + }, + "description": "Attributes used to transfer data" + }, + "author": { + "type": "string" + }, + "reasonType": { + "type": "string" + }, + "subject": { + "$ref": "#/components/schemas/ReasonSubject" + } + } + }, + "ReasonSubject": { + "required": [ + "apiVersion", + "kind", + "name", + "title" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "name": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + } + } + }, + "ReasonType": { + "required": [ + "apiVersion", + "kind", + "metadata" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/ReasonTypeSpec" + } + } + }, + "ReasonTypeInfo": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "name": { + "type": "string" + }, + "uiPermissions": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ReasonTypeList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/ReasonType" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "ReasonTypeNotifierCollectionRequest": { + "required": [ + "reasonTypeNotifiers" + ], + "type": "object", + "properties": { + "reasonTypeNotifiers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ReasonTypeNotifierRequest" + } + } + } + }, + "ReasonTypeNotifierMatrix": { + "type": "object", + "properties": { + "notifiers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/NotifierInfo" + } + }, + "reasonTypes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ReasonTypeInfo" + } + }, + "stateMatrix": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "boolean" + } + } + } + } + }, + "ReasonTypeNotifierRequest": { + "type": "object", + "properties": { + "notifiers": { + "type": "array", + "items": { + "type": "string" + } + }, + "reasonType": { + "type": "string" + } + } + }, + "ReasonTypeSpec": { + "required": [ + "description", + "displayName" + ], + "type": "object", + "properties": { + "description": { + "minLength": 1, + "type": "string" + }, + "displayName": { + "minLength": 1, + "type": "string" + }, + "properties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ReasonProperty" + } + } + } + }, + "Ref": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "group": { + "type": "string", + "description": "Extension group" + }, + "kind": { + "type": "string", + "description": "Extension kind" + }, + "name": { + "type": "string", + "description": "Extension name. This field is mandatory" + }, + "version": { + "type": "string", + "description": "Extension version" + } + }, + "description": "Extension reference object. The name is mandatory" + }, + "RegisterVerifyEmailRequest": { + "required": [ + "email" + ], + "type": "object", + "properties": { + "email": { + "type": "string" + } + } + }, + "Reply": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/ReplySpec" + } + } + }, + "ReplyList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/Reply" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "ReplyRequest": { + "required": [ + "content", + "raw" + ], + "type": "object", + "properties": { + "allowNotification": { + "type": "boolean", + "default": false + }, + "content": { + "minLength": 1, + "type": "string" + }, + "owner": { + "$ref": "#/components/schemas/CommentEmailOwner" + }, + "quoteReply": { + "type": "string" + }, + "raw": { + "minLength": 1, + "type": "string" + } + } + }, + "ReplySpec": { + "required": [ + "allowNotification", + "approved", + "commentName", + "content", + "hidden", + "owner", + "priority", + "raw", + "top" + ], + "type": "object", + "properties": { + "allowNotification": { + "type": "boolean", + "default": true + }, + "approved": { + "type": "boolean", + "default": false + }, + "approvedTime": { + "type": "string", + "format": "date-time" + }, + "commentName": { + "minLength": 1, + "type": "string" + }, + "content": { + "minLength": 1, + "type": "string" + }, + "creationTime": { + "type": "string", + "format": "date-time" + }, + "hidden": { + "type": "boolean", + "default": false + }, + "ipAddress": { + "type": "string" + }, + "owner": { + "$ref": "#/components/schemas/CommentOwner" + }, + "priority": { + "type": "integer", + "format": "int32", + "default": 0 + }, + "quoteReply": { + "type": "string" + }, + "raw": { + "minLength": 1, + "type": "string" + }, + "top": { + "type": "boolean", + "default": false + }, + "userAgent": { + "type": "string" + } + } + }, + "ReplyVo": { + "required": [ + "metadata", + "owner", + "spec", + "stats" + ], + "type": "object", + "properties": { + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "owner": { + "$ref": "#/components/schemas/OwnerInfo" + }, + "spec": { + "$ref": "#/components/schemas/ReplySpec" + }, + "stats": { + "$ref": "#/components/schemas/CommentStatsVo" + } + }, + "description": "A chunk of items." + }, + "ReplyVoList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/ReplyVo" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "ResetPasswordRequest": { + "required": [ + "newPassword", + "token" + ], + "type": "object", + "properties": { + "newPassword": { + "minLength": 6, + "type": "string" + }, + "token": { + "type": "string" + } + } + }, + "RestoreRequest": { + "type": "object", + "properties": { + "backupName": { + "type": "string", + "description": "Backup metadata name." + }, + "downloadUrl": { + "type": "string", + "description": "Remote backup HTTP URL." + }, + "file": { + "type": "string", + "format": "binary" + } + } + }, + "ReverseProxy": { + "required": [ + "apiVersion", + "kind", + "metadata" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "rules": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ReverseProxyRule" + } + } + } + }, + "ReverseProxyList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/ReverseProxy" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "ReverseProxyRule": { + "type": "object", + "properties": { + "file": { + "$ref": "#/components/schemas/FileReverseProxyProvider" + }, + "path": { + "type": "string" + } + } + }, + "Role": { + "required": [ + "apiVersion", + "kind", + "metadata", + "rules" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "rules": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyRule" + } + } + } + }, + "RoleBinding": { + "required": [ + "apiVersion", + "kind", + "metadata" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "roleRef": { + "$ref": "#/components/schemas/RoleRef" + }, + "subjects": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Subject" + } + } + } + }, + "RoleBindingList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/RoleBinding" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "RoleList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/Role" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "RoleRef": { + "type": "object", + "properties": { + "apiGroup": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "SearchEngine": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/SearchEngineSpec" + } + } + }, + "SearchEngineList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/SearchEngine" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "SearchEngineSpec": { + "required": [ + "displayName" + ], + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "logo": { + "type": "string" + }, + "postSearchImpl": { + "type": "string" + }, + "settingRef": { + "$ref": "#/components/schemas/Ref" + }, + "website": { + "type": "string" + } + } + }, + "Secret": { + "required": [ + "apiVersion", + "kind", + "metadata" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "data": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string", + "format": "byte" + } + } + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "stringData": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "type": { + "type": "string" + } + } + }, + "SecretList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/Secret" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "Setting": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/SettingSpec" + } + } + }, + "SettingForm": { + "minLength": 1, + "required": [ + "formSchema", + "group" + ], + "type": "object", + "properties": { + "formSchema": { + "type": "array", + "items": { + "type": "object" + } + }, + "group": { + "type": "string" + }, + "label": { + "type": "string" + } + } + }, + "SettingList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/Setting" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "SettingRef": { + "required": [ + "group", + "name" + ], + "type": "object", + "properties": { + "group": { + "minLength": 1, + "type": "string" + }, + "name": { + "minLength": 1, + "type": "string" + } + } + }, + "SettingSpec": { + "required": [ + "forms" + ], + "type": "object", + "properties": { + "forms": { + "minLength": 1, + "type": "array", + "items": { + "$ref": "#/components/schemas/SettingForm" + } + } + } + }, + "SignUpRequest": { + "required": [ + "password", + "user" + ], + "type": "object", + "properties": { + "password": { + "minLength": 6, + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + }, + "verifyCode": { + "maxLength": 6, + "minLength": 6, + "type": "string" + } + } + }, + "SinglePage": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/SinglePageSpec" + }, + "status": { + "$ref": "#/components/schemas/SinglePageStatus" + } + } + }, + "SinglePageList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/SinglePage" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "SinglePageRequest": { + "required": [ + "content", + "page" + ], + "type": "object", + "properties": { + "content": { + "$ref": "#/components/schemas/Content" + }, + "page": { + "$ref": "#/components/schemas/SinglePage" + } + } + }, + "SinglePageSpec": { + "required": [ + "allowComment", + "deleted", + "excerpt", + "pinned", + "priority", + "publish", + "slug", + "title", + "visible" + ], + "type": "object", + "properties": { + "allowComment": { + "type": "boolean", + "default": true + }, + "baseSnapshot": { + "type": "string" + }, + "cover": { + "type": "string" + }, + "deleted": { + "type": "boolean", + "default": false + }, + "excerpt": { + "$ref": "#/components/schemas/Excerpt" + }, + "headSnapshot": { + "type": "string" + }, + "htmlMetas": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "owner": { + "type": "string" + }, + "pinned": { + "type": "boolean", + "default": false + }, + "priority": { + "type": "integer", + "format": "int32", + "default": 0 + }, + "publish": { + "type": "boolean", + "default": false + }, + "publishTime": { + "type": "string", + "format": "date-time" + }, + "releaseSnapshot": { + "type": "string" + }, + "slug": { + "minLength": 1, + "type": "string" + }, + "template": { + "type": "string" + }, + "title": { + "minLength": 1, + "type": "string" + }, + "visible": { + "type": "string", + "enum": [ + "PUBLIC", + "INTERNAL", + "PRIVATE" + ], + "default": "PUBLIC" + } + } + }, + "SinglePageStatus": { + "required": [ + "phase" + ], + "type": "object", + "properties": { + "commentsCount": { + "type": "integer", + "format": "int32" + }, + "conditions": { + "type": "array", + "properties": { + "empty": { + "type": "boolean" + } + }, + "items": { + "$ref": "#/components/schemas/Condition" + } + }, + "contributors": { + "type": "array", + "items": { + "type": "string" + } + }, + "excerpt": { + "type": "string" + }, + "inProgress": { + "type": "boolean" + }, + "lastModifyTime": { + "type": "string", + "format": "date-time" + }, + "observedVersion": { + "type": "integer", + "format": "int64" + }, + "permalink": { + "type": "string" + }, + "phase": { + "type": "string" + } + } + }, + "SinglePageVo": { + "required": [ + "metadata" + ], + "type": "object", + "properties": { + "content": { + "$ref": "#/components/schemas/ContentVo" + }, + "contributors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ContributorVo" + } + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "owner": { + "$ref": "#/components/schemas/ContributorVo" + }, + "spec": { + "$ref": "#/components/schemas/SinglePageSpec" + }, + "stats": { + "$ref": "#/components/schemas/StatsVo" + }, + "status": { + "$ref": "#/components/schemas/SinglePageStatus" + } + } + }, + "SiteStatsVo": { + "type": "object", + "properties": { + "category": { + "type": "integer", + "format": "int32" + }, + "comment": { + "type": "integer", + "format": "int32" + }, + "post": { + "type": "integer", + "format": "int32" + }, + "upvote": { + "type": "integer", + "format": "int32" + }, + "visit": { + "type": "integer", + "format": "int32" + } + } + }, + "SnapShotSpec": { + "required": [ + "owner", + "rawType", + "subjectRef" + ], + "type": "object", + "properties": { + "contentPatch": { + "type": "string" + }, + "contributors": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "lastModifyTime": { + "type": "string", + "format": "date-time" + }, + "owner": { + "minLength": 1, + "type": "string" + }, + "parentSnapshotName": { + "type": "string" + }, + "rawPatch": { + "type": "string" + }, + "rawType": { + "maxLength": 50, + "minLength": 1, + "type": "string" + }, + "subjectRef": { + "$ref": "#/components/schemas/Ref" + } + } + }, + "Snapshot": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/SnapShotSpec" + } + } + }, + "SnapshotList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/Snapshot" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "Stats": { + "type": "object", + "properties": { + "approvedComment": { + "type": "integer", + "format": "int32" + }, + "totalComment": { + "type": "integer", + "format": "int32" + }, + "upvote": { + "type": "integer", + "format": "int32" + }, + "visit": { + "type": "integer", + "format": "int32" + } + } + }, + "StatsVo": { + "type": "object", + "properties": { + "comment": { + "type": "integer", + "format": "int32" + }, + "upvote": { + "type": "integer", + "format": "int32" + }, + "visit": { + "type": "integer", + "format": "int32" + } + } + }, + "Subject": { + "type": "object", + "properties": { + "apiGroup": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "Subscription": { + "required": [ + "apiVersion", + "kind", + "metadata" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/SubscriptionSpec" + } + } + }, + "SubscriptionList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/Subscription" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "SubscriptionSpec": { + "required": [ + "reason", + "subscriber", + "unsubscribeToken" + ], + "type": "object", + "properties": { + "disabled": { + "type": "boolean", + "description": "Perhaps users need to unsubscribe and interact without receiving notifications again" + }, + "reason": { + "$ref": "#/components/schemas/InterestReason" + }, + "subscriber": { + "$ref": "#/components/schemas/SubscriptionSubscriber" + }, + "unsubscribeToken": { + "type": "string", + "description": "The token to unsubscribe" + } + } + }, + "SubscriptionSubscriber": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "description": "The subscriber to be notified" + }, + "SystemInitializationRequest": { + "required": [ + "password", + "username" + ], + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "password": { + "minLength": 3, + "type": "string" + }, + "siteTitle": { + "type": "string" + }, + "username": { + "minLength": 1, + "type": "string" + } + } + }, + "Tag": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/TagSpec" + }, + "status": { + "$ref": "#/components/schemas/TagStatus" + } + } + }, + "TagList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/Tag" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "TagSpec": { + "required": [ + "displayName", + "slug" + ], + "type": "object", + "properties": { + "color": { + "pattern": "^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$", + "type": "string" + }, + "cover": { + "type": "string" + }, + "displayName": { + "minLength": 1, + "type": "string" + }, + "slug": { + "minLength": 1, + "type": "string" + } + } + }, + "TagStatus": { + "type": "object", + "properties": { + "observedVersion": { + "type": "integer", + "format": "int64" + }, + "permalink": { + "type": "string" + }, + "postCount": { + "type": "integer", + "format": "int32" + }, + "visiblePostCount": { + "type": "integer", + "format": "int32" + } + } + }, + "TagVo": { + "required": [ + "metadata" + ], + "type": "object", + "properties": { + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "postCount": { + "type": "integer", + "format": "int32" + }, + "spec": { + "$ref": "#/components/schemas/TagSpec" + }, + "status": { + "$ref": "#/components/schemas/TagStatus" + } + } + }, + "TagVoList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/TagVo" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "TemplateContent": { + "required": [ + "title" + ], + "type": "object", + "properties": { + "htmlBody": { + "type": "string" + }, + "rawBody": { + "type": "string" + }, + "title": { + "minLength": 1, + "type": "string" + } + } + }, + "TemplateDescriptor": { + "required": [ + "file", + "name" + ], + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "file": { + "minLength": 1, + "type": "string" + }, + "name": { + "minLength": 1, + "type": "string" + }, + "screenshot": { + "type": "string" + } + } + }, + "Theme": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/ThemeSpec" + }, + "status": { + "$ref": "#/components/schemas/ThemeStatus" + } + } + }, + "ThemeInstallRequest": { + "type": "object" + }, + "ThemeList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/Theme" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "ThemeSpec": { + "required": [ + "author", + "displayName", + "version" + ], + "type": "object", + "properties": { + "author": { + "$ref": "#/components/schemas/Author" + }, + "configMapName": { + "type": "string" + }, + "customTemplates": { + "$ref": "#/components/schemas/CustomTemplates" + }, + "description": { + "type": "string" + }, + "displayName": { + "minLength": 1, + "type": "string" + }, + "homepage": { + "type": "string" + }, + "license": { + "type": "array", + "items": { + "$ref": "#/components/schemas/License" + } + }, + "logo": { + "type": "string" + }, + "repo": { + "type": "string" + }, + "require": { + "type": "string", + "description": "Deprecated, use `requires` instead.", + "deprecated": true + }, + "requires": { + "type": "string" + }, + "settingName": { + "type": "string" + }, + "version": { + "type": "string" + }, + "website": { + "type": "string", + "deprecated": true + } + } + }, + "ThemeStatus": { + "type": "object", + "properties": { + "conditions": { + "type": "array", + "properties": { + "empty": { + "type": "boolean" + } + }, + "items": { + "$ref": "#/components/schemas/Condition" + } + }, + "location": { + "type": "string" + }, + "phase": { + "type": "string", + "enum": [ + "READY", + "FAILED", + "UNKNOWN" + ] + } + } + }, + "TotpAuthLinkResponse": { + "type": "object", + "properties": { + "authLink": { + "type": "string", + "format": "uri" + }, + "rawSecret": { + "type": "string" + } + } + }, + "TotpRequest": { + "required": [ + "code", + "password", + "secret" + ], + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "password": { + "type": "string" + }, + "secret": { + "type": "string" + } + } + }, + "TwoFactorAuthSettings": { + "type": "object", + "properties": { + "available": { + "type": "boolean" + }, + "emailVerified": { + "type": "boolean" + }, + "enabled": { + "type": "boolean" + }, + "totpConfigured": { + "type": "boolean" + } + } + }, + "UpgradeFromUriRequest": { + "required": [ + "uri" + ], + "type": "object", + "properties": { + "uri": { + "type": "string", + "format": "uri" + } + } + }, + "UpgradeRequest": { + "required": [ + "file" + ], + "type": "object", + "properties": { + "file": { + "type": "string", + "format": "binary" + } + } + }, + "User": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/UserSpec" + }, + "status": { + "$ref": "#/components/schemas/UserStatus" + } + } + }, + "UserConnection": { + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "type": "object", + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/Metadata" + }, + "spec": { + "$ref": "#/components/schemas/UserConnectionSpec" + } + } + }, + "UserConnectionList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/UserConnection" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "UserConnectionSpec": { + "required": [ + "accessToken", + "displayName", + "providerUserId", + "registrationId", + "username" + ], + "type": "object", + "properties": { + "accessToken": { + "type": "string" + }, + "avatarUrl": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "expiresAt": { + "type": "string", + "format": "date-time" + }, + "profileUrl": { + "type": "string" + }, + "providerUserId": { + "type": "string" + }, + "refreshToken": { + "type": "string" + }, + "registrationId": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "username": { + "type": "string" + } + } + }, + "UserEndpoint.ListedUserList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/ListedUser" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "UserList": { + "required": [ + "first", + "hasNext", + "hasPrevious", + "items", + "last", + "page", + "size", + "total", + "totalPages" + ], + "type": "object", + "properties": { + "first": { + "type": "boolean", + "description": "Indicates whether current page is the first page." + }, + "hasNext": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "hasPrevious": { + "type": "boolean", + "description": "Indicates whether current page has previous page." + }, + "items": { + "type": "array", + "description": "A chunk of items.", + "items": { + "$ref": "#/components/schemas/User" + } + }, + "last": { + "type": "boolean", + "description": "Indicates whether current page is the last page." + }, + "page": { + "type": "integer", + "description": "Page number, starts from 1. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "size": { + "type": "integer", + "description": "Size of each page. If not set or equal to 0, it means no pagination.", + "format": "int32" + }, + "total": { + "type": "integer", + "description": "Total elements.", + "format": "int64" + }, + "totalPages": { + "type": "integer", + "description": "Indicates total pages.", + "format": "int64" + } + } + }, + "UserPermission": { + "required": [ + "permissions", + "roles", + "uiPermissions" + ], + "type": "object", + "properties": { + "permissions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + }, + "roles": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + }, + "uiPermissions": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "UserSpec": { + "required": [ + "displayName", + "email" + ], + "type": "object", + "properties": { + "avatar": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "displayName": { + "type": "string" + }, + "email": { + "type": "string" + }, + "emailVerified": { + "type": "boolean" + }, + "loginHistoryLimit": { + "type": "integer", + "format": "int32" + }, + "password": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "registeredAt": { + "type": "string", + "format": "date-time" + }, + "totpEncryptedSecret": { + "type": "string" + }, + "twoFactorAuthEnabled": { + "type": "boolean" + } + } + }, + "UserStatus": { + "type": "object", + "properties": { + "lastLoginAt": { + "type": "string", + "format": "date-time" + }, + "loginHistories": { + "type": "array", + "items": { + "$ref": "#/components/schemas/LoginHistory" + } + }, + "permalink": { + "type": "string" + } + } + }, + "VerifyCodeRequest": { + "required": [ + "code" + ], + "type": "object", + "properties": { + "code": { + "minLength": 1, + "type": "string" + } + } + }, + "VoteRequest": { + "type": "object", + "properties": { + "group": { + "type": "string" + }, + "name": { + "type": "string" + }, + "plural": { + "type": "string" + } + } + } + }, + "securitySchemes": { + "BasicAuth": { + "scheme": "basic", + "type": "http" + }, + "BearerAuth": { + "bearerFormat": "JWT", + "scheme": "bearer", + "type": "http" + } + } + } +} \ No newline at end of file diff --git a/api/src/main/java/run/halo/app/extension/MetadataOperator.java b/api/src/main/java/run/halo/app/extension/MetadataOperator.java index 13486f797..f7312289f 100644 --- a/api/src/main/java/run/halo/app/extension/MetadataOperator.java +++ b/api/src/main/java/run/halo/app/extension/MetadataOperator.java @@ -27,11 +27,11 @@ public interface MetadataOperator { + "according to the given generateName field") String getGenerateName(); - @Schema(name = "labels", nullable = true) + @Schema(name = "labels") @JsonProperty("labels") Map getLabels(); - @Schema(name = "annotations", nullable = true) + @Schema(name = "annotations") @JsonProperty("annotations") Map getAnnotations(); diff --git a/api/src/main/java/run/halo/app/extension/router/IListRequest.java b/api/src/main/java/run/halo/app/extension/router/IListRequest.java index c7bbd1216..ce7f9388d 100644 --- a/api/src/main/java/run/halo/app/extension/router/IListRequest.java +++ b/api/src/main/java/run/halo/app/extension/router/IListRequest.java @@ -1,8 +1,12 @@ package run.halo.app.extension.router; +import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; + +import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.Schema; import java.util.Collections; import java.util.List; +import org.springdoc.core.fn.builders.operation.Builder; import org.springframework.boot.convert.ApplicationConversionService; import org.springframework.core.convert.ConversionService; import org.springframework.util.MultiValueMap; @@ -61,4 +65,32 @@ public interface IListRequest { return queryParams.getOrDefault("fieldSelector", Collections.emptyList()); } } + + static void buildParameters(Builder builder) { + builder.parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("page") + .implementation(Integer.class) + .required(false) + .description("Page number. Default is 0.")) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("size") + .implementation(Integer.class) + .required(false) + .description("Size number. Default is 0.")) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("labelSelector") + .required(false) + .description("Label selector. e.g.: hidden!=true") + .implementationArray(String.class)) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("fieldSelector") + .required(false) + .description("Field selector. e.g.: metadata.name==halo") + .implementationArray(String.class) + ); + } } diff --git a/api/src/main/java/run/halo/app/extension/router/QueryParamBuildUtil.java b/api/src/main/java/run/halo/app/extension/router/QueryParamBuildUtil.java index 2eb60075c..148d94c61 100644 --- a/api/src/main/java/run/halo/app/extension/router/QueryParamBuildUtil.java +++ b/api/src/main/java/run/halo/app/extension/router/QueryParamBuildUtil.java @@ -33,7 +33,11 @@ public final class QueryParamBuildUtil { return obj == null ? null : obj.toString(); } + /** + * @deprecated Build parameters manually instead. + */ @SuppressWarnings({"rawtypes", "unchecked"}) + @Deprecated(since = "2.15.0") public static void buildParametersFromType(Builder operationBuilder, Type queryParamType) { var resolvedSchema = ModelConverters.getInstance().readAllAsResolvedSchema(queryParamType); @@ -88,4 +92,16 @@ public final class QueryParamBuildUtil { .defaultValue(toStringOrNull(schema.getDefault())) .example(toStringOrNull(schema.getExample())); } + + public static org.springdoc.core.fn.builders.parameter.Builder sortParameter() { + return parameterBuilder() + .in(ParameterIn.QUERY) + .name("sort") + .required(false) + .description(""" + Sorting criteria in the format: property,(asc|desc). \ + Default sort order is ascending. Multiple sort criteria are supported.\ + """) + .array(arraySchemaBuilder().schema(schemaBuilder().type("string"))); + } } diff --git a/api/src/main/java/run/halo/app/extension/router/SortableRequest.java b/api/src/main/java/run/halo/app/extension/router/SortableRequest.java index f786eb6ca..68c370641 100644 --- a/api/src/main/java/run/halo/app/extension/router/SortableRequest.java +++ b/api/src/main/java/run/halo/app/extension/router/SortableRequest.java @@ -12,6 +12,7 @@ import java.util.Comparator; import java.util.function.Function; import java.util.function.Predicate; import java.util.stream.Stream; +import org.springdoc.core.fn.builders.operation.Builder; import org.springframework.beans.BeanWrapper; import org.springframework.beans.BeanWrapperImpl; import org.springframework.data.domain.Sort; @@ -95,4 +96,9 @@ public class SortableRequest extends IListRequest.QueryListRequest { .reduce(Comparator::thenComparing) .orElse(null); } + + public static void buildParameters(Builder builder) { + IListRequest.buildParameters(builder); + builder.parameter(QueryParamBuildUtil.sortParameter()); + } } diff --git a/api/src/main/java/run/halo/app/search/SearchParam.java b/api/src/main/java/run/halo/app/search/SearchParam.java index e17c448df..794feff7e 100644 --- a/api/src/main/java/run/halo/app/search/SearchParam.java +++ b/api/src/main/java/run/halo/app/search/SearchParam.java @@ -1,8 +1,12 @@ package run.halo.app.search; import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED; +import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; +import static org.springdoc.core.fn.builders.schema.Builder.schemaBuilder; +import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.Schema; +import org.springdoc.core.fn.builders.operation.Builder; import org.springframework.util.MultiValueMap; import org.springframework.util.StringUtils; import org.springframework.web.server.ServerWebInputException; @@ -62,4 +66,42 @@ public class SearchParam { } return highlightPostTag; } + + public static void buildParameters(Builder builder) { + builder.parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("keyword") + .description("Keyword to search") + .implementation(String.class) + .required(true)) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("limit") + .description("Limit of search results") + .required(false) + .schema(schemaBuilder() + .implementation(Integer.class) + .maximum("1000") + .defaultValue(String.valueOf(DEFAULT_LIMIT)))) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("highlightPreTag") + .description("Highlight pre tag") + .required(false) + .schema(schemaBuilder() + .implementation(String.class) + .defaultValue(DEFAULT_HIGHLIGHT_PRE_TAG) + )) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("highlightPostTag") + .description("Highlight post tag") + .required(false) + .schema(schemaBuilder() + .implementation(String.class) + .defaultValue(DEFAULT_HIGHLIGHT_POST_TAG) + ) + ); + + } } diff --git a/application/build.gradle b/application/build.gradle index ccb90245e..40881b60a 100644 --- a/application/build.gradle +++ b/application/build.gradle @@ -11,6 +11,7 @@ plugins { id "de.undercouch.download" id "io.freefair.lombok" id 'org.gradle.crypto.checksum' + id 'org.springdoc.openapi-gradle-plugin' } group = 'run.halo.app' @@ -106,15 +107,15 @@ tasks.named('jacocoTestReport', JacocoReport) { } ext.presetPluginUrls = [ - 'https://github.com/halo-dev/plugin-comment-widget/releases/download/v1.9.0/plugin-comment-widget-1.9.0.jar': 'plugin-comment-widget.jar', - 'https://github.com/halo-dev/plugin-search-widget/releases/download/v1.3.1/plugin-search-widget-1.3.1.jar': 'plugin-search-widget.jar', - 'https://github.com/halo-dev/plugin-sitemap/releases/download/v1.1.1/plugin-sitemap-1.1.1.jar': 'plugin-sitemap.jar', - 'https://github.com/halo-dev/plugin-feed/releases/download/v1.2.1/plugin-feed-1.2.1.jar': 'plugin-feed.jar', + 'https://github.com/halo-dev/plugin-comment-widget/releases/download/v1.9.0/plugin-comment-widget-1.9.0.jar' : 'plugin-comment-widget.jar', + 'https://github.com/halo-dev/plugin-search-widget/releases/download/v1.3.1/plugin-search-widget-1.3.1.jar' : 'plugin-search-widget.jar', + 'https://github.com/halo-dev/plugin-sitemap/releases/download/v1.1.1/plugin-sitemap-1.1.1.jar' : 'plugin-sitemap.jar', + 'https://github.com/halo-dev/plugin-feed/releases/download/v1.2.1/plugin-feed-1.2.1.jar' : 'plugin-feed.jar', - // Currently, plugin-app-store is not open source, so we need to download it from the official website. - // Please see https://github.com/halo-dev/plugin-app-store/issues/55 - // https://www.halo.run/store/apps/app-VYJbF - 'https://www.halo.run/store/apps/app-VYJbF/releases/download/app-release-cWbLS/assets/app-release-cWbLS-fZYSx': 'appstore.jar', + // Currently, plugin-app-store is not open source, so we need to download it from the official website. + // Please see https://github.com/halo-dev/plugin-app-store/issues/55 + // https://www.halo.run/store/apps/app-VYJbF + 'https://www.halo.run/store/apps/app-VYJbF/releases/download/app-release-cWbLS/assets/app-release-cWbLS-fZYSx': 'appstore.jar', ] tasks.register('downloadPluginPresets', Download) { @@ -130,3 +131,25 @@ tasks.register('downloadPluginPresets', Download) { f.name = presetPluginUrls[f.sourceURL.toString()] } } + +openApi { + outputDir = file("$rootDir/api-docs/openapi/v3_0") + groupedApiMappings = [ + 'http://localhost:8091/v3/api-docs/all-api': 'aggregated.json', + ] + customBootRun { + args = ['--server.port=8091', + '--spring.profiles.active=doc', + "--halo.work-dir=${layout.buildDirectory.get()}/tmp/workdir-for-generating-apidocs"] + } +} + +tasks.named('forkedSpringBootRun') { + dependsOn ':api:jar' +} + +tasks.named('generateOpenApiDocs') { + outputs.upToDateWhen { + false + } +} diff --git a/application/src/main/java/run/halo/app/config/SwaggerConfig.java b/application/src/main/java/run/halo/app/config/SwaggerConfig.java index f997f4b2d..ec36f7b22 100644 --- a/application/src/main/java/run/halo/app/config/SwaggerConfig.java +++ b/application/src/main/java/run/halo/app/config/SwaggerConfig.java @@ -1,16 +1,29 @@ package run.halo.app.config; +import static org.springdoc.core.utils.Constants.SPRINGDOC_ENABLED; + +import io.swagger.v3.core.converter.ModelConverter; +import io.swagger.v3.core.jackson.ModelResolver; +import io.swagger.v3.core.jackson.TypeNameResolver; import io.swagger.v3.oas.models.Components; import io.swagger.v3.oas.models.OpenAPI; import io.swagger.v3.oas.models.SpecVersion; import io.swagger.v3.oas.models.info.Info; import io.swagger.v3.oas.models.security.SecurityRequirement; import io.swagger.v3.oas.models.security.SecurityScheme; +import java.util.Set; import org.springdoc.core.models.GroupedOpenApi; +import org.springdoc.core.providers.ObjectMapperProvider; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; +import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +import org.springframework.core.Ordered; +import org.springframework.core.annotation.Order; @Configuration +@ConditionalOnProperty(name = SPRINGDOC_ENABLED, matchIfMissing = true) +@ConditionalOnWebApplication public class SwaggerConfig { @Bean @@ -93,4 +106,19 @@ public class SwaggerConfig { .build(); } + @Bean + @Order(Ordered.HIGHEST_PRECEDENCE) + ModelConverter customModelConverter(ObjectMapperProvider objectMapperProvider) { + return new ModelResolver(objectMapperProvider.jsonMapper(), new CustomTypeNameResolver()); + } + + static class CustomTypeNameResolver extends TypeNameResolver { + @Override + protected String nameForClass(Class cls, Set options) { + // Obey the rule of keys that match the regular expression ^[a-zA-Z0-9\.\-_]+$. + // See https://spec.openapis.org/oas/v3.0.3#fixed-fields-5 for more. + return super.nameForClass(cls, options).replaceAll("\\$", "."); + } + } + } diff --git a/application/src/main/java/run/halo/app/content/PostQuery.java b/application/src/main/java/run/halo/app/content/PostQuery.java index 1e9dff49d..a8e33c9fa 100644 --- a/application/src/main/java/run/halo/app/content/PostQuery.java +++ b/application/src/main/java/run/halo/app/content/PostQuery.java @@ -1,12 +1,16 @@ package run.halo.app.content; +import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; +import static run.halo.app.extension.router.QueryParamBuildUtil.sortParameter; import static run.halo.app.extension.router.selector.SelectorUtil.labelAndFieldSelectorToListOptions; import com.fasterxml.jackson.annotation.JsonIgnore; +import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ArraySchema; import io.swagger.v3.oas.annotations.media.Schema; import org.apache.commons.lang3.BooleanUtils; import org.apache.commons.lang3.StringUtils; +import org.springdoc.core.fn.builders.operation.Builder; import org.springframework.data.domain.Sort; import org.springframework.lang.Nullable; import org.springframework.web.reactive.function.server.ServerRequest; @@ -121,4 +125,21 @@ public class PostQuery extends IListRequest.QueryListRequest { listOptions.getLabelSelector().and(labelSelectorBuilder.build())); return listOptions; } + + public static void buildParameters(Builder builder) { + IListRequest.buildParameters(builder); + builder.parameter(sortParameter()) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("publishPhase") + .description("Posts filtered by publish phase.") + .implementation(Post.PostPhase.class) + .required(false)) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("keyword") + .description("Posts filtered by keyword.") + .implementation(String.class) + .required(false)); + } } diff --git a/application/src/main/java/run/halo/app/content/SinglePageQuery.java b/application/src/main/java/run/halo/app/content/SinglePageQuery.java index e59c07302..851333bd4 100644 --- a/application/src/main/java/run/halo/app/content/SinglePageQuery.java +++ b/application/src/main/java/run/halo/app/content/SinglePageQuery.java @@ -1,8 +1,11 @@ package run.halo.app.content; import static java.util.Comparator.comparing; +import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; +import static run.halo.app.extension.router.QueryParamBuildUtil.sortParameter; import static run.halo.app.extension.router.selector.SelectorUtil.labelAndFieldSelectorToPredicate; +import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ArraySchema; import io.swagger.v3.oas.annotations.media.Schema; import java.util.ArrayList; @@ -12,6 +15,7 @@ import java.util.List; import java.util.Set; import java.util.function.Predicate; import org.apache.commons.lang3.StringUtils; +import org.springdoc.core.fn.builders.operation.Builder; import org.springframework.data.domain.Sort; import org.springframework.lang.Nullable; import org.springframework.web.reactive.function.server.ServerRequest; @@ -171,4 +175,34 @@ public class SinglePageQuery extends IListRequest.QueryListRequest { } return right.stream().anyMatch(left::contains); } + + public static void buildParameters(Builder builder) { + IListRequest.buildParameters(builder); + builder.parameter(sortParameter()) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("contributor") + .description("SinglePages filtered by contributor.") + .implementationArray(String.class) + .required(false)) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("publishPhase") + .description("SinglePages filtered by publish phase.") + .implementation(Post.PostPhase.class) + .required(false)) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("visible") + .description("SinglePages filtered by visibility.") + .implementation(Post.VisibleEnum.class) + .required(false)) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("keyword") + .description("SinglePages filtered by keyword.") + .implementation(String.class) + .required(false)); + ; + } } diff --git a/application/src/main/java/run/halo/app/content/comment/CommentQuery.java b/application/src/main/java/run/halo/app/content/comment/CommentQuery.java index ea44ae87c..4caef1126 100644 --- a/application/src/main/java/run/halo/app/content/comment/CommentQuery.java +++ b/application/src/main/java/run/halo/app/content/comment/CommentQuery.java @@ -1,13 +1,14 @@ package run.halo.app.content.comment; +import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; import static run.halo.app.extension.index.query.QueryFactory.and; import static run.halo.app.extension.index.query.QueryFactory.contains; import static run.halo.app.extension.index.query.QueryFactory.equal; import static run.halo.app.extension.router.selector.SelectorUtil.labelAndFieldSelectorToListOptions; -import io.swagger.v3.oas.annotations.media.ArraySchema; -import io.swagger.v3.oas.annotations.media.Schema; +import io.swagger.v3.oas.annotations.enums.ParameterIn; import org.apache.commons.lang3.StringUtils; +import org.springdoc.core.fn.builders.operation.Builder; import org.springframework.data.domain.Sort; import org.springframework.web.reactive.function.server.ServerRequest; import org.springframework.web.server.ServerWebExchange; @@ -18,6 +19,7 @@ import run.halo.app.extension.ListOptions; import run.halo.app.extension.PageRequest; import run.halo.app.extension.PageRequestImpl; import run.halo.app.extension.router.IListRequest; +import run.halo.app.extension.router.QueryParamBuildUtil; import run.halo.app.extension.router.selector.FieldSelector; /** @@ -35,31 +37,21 @@ public class CommentQuery extends IListRequest.QueryListRequest { this.exchange = request.exchange(); } - @Schema(description = "Comments filtered by keyword.") public String getKeyword() { String keyword = queryParams.getFirst("keyword"); return StringUtils.isBlank(keyword) ? null : keyword; } - @Schema(description = "Commenter kind.") public String getOwnerKind() { String ownerKind = queryParams.getFirst("ownerKind"); return StringUtils.isBlank(ownerKind) ? null : ownerKind; } - @Schema(description = "Commenter name.") public String getOwnerName() { String ownerName = queryParams.getFirst("ownerName"); return StringUtils.isBlank(ownerName) ? null : ownerName; } - @ArraySchema(uniqueItems = true, - arraySchema = @Schema(name = "sort", - description = "Sort property and direction of the list result. Supported fields: " - + "metadata.creationTimestamp,status.replyCount,status.lastReplyTime"), - schema = @Schema(description = "like field,asc or field,desc", - implementation = String.class, - example = "creationTimestamp,desc")) public Sort getSort() { var sort = SortResolver.defaultInstance.resolve(exchange); return sort.and(Sort.by("status.lastReplyTime", @@ -95,4 +87,24 @@ public class CommentQuery extends IListRequest.QueryListRequest { listOptions.setFieldSelector(FieldSelector.of(fieldQuery)); return listOptions; } + + public static void buildParameters(Builder builder) { + IListRequest.buildParameters(builder); + builder.parameter(QueryParamBuildUtil.sortParameter()) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("keyword") + .description("Comments filtered by keyword.") + .implementation(String.class)) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("ownerKind") + .description("Commenter kind.") + .implementation(String.class)) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("ownerName") + .description("Commenter name.") + .implementation(String.class)); + } } diff --git a/application/src/main/java/run/halo/app/content/comment/ReplyQuery.java b/application/src/main/java/run/halo/app/content/comment/ReplyQuery.java index b32c33e1a..2dff44794 100644 --- a/application/src/main/java/run/halo/app/content/comment/ReplyQuery.java +++ b/application/src/main/java/run/halo/app/content/comment/ReplyQuery.java @@ -1,10 +1,13 @@ package run.halo.app.content.comment; +import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; import static run.halo.app.extension.index.query.QueryFactory.equal; import static run.halo.app.extension.router.selector.SelectorUtil.labelAndFieldSelectorToListOptions; +import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.Schema; import org.apache.commons.lang3.StringUtils; +import org.springdoc.core.fn.builders.operation.Builder; import org.springframework.data.domain.Sort; import org.springframework.web.server.ServerWebExchange; import org.springframework.web.server.ServerWebInputException; @@ -51,4 +54,14 @@ public class ReplyQuery extends SortableRequest { var sort = getSort().and(Sort.by("spec.creationTime").ascending()); return PageRequestImpl.of(getPage(), getSize(), sort); } + + public static void buildParameters(Builder builder) { + SortableRequest.buildParameters(builder); + builder.parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("commentName") + .description("Replies filtered by commentName.") + .implementation(String.class) + .required(true)); + } } diff --git a/application/src/main/java/run/halo/app/core/extension/attachment/endpoint/AttachmentEndpoint.java b/application/src/main/java/run/halo/app/core/extension/attachment/endpoint/AttachmentEndpoint.java index 03aea1a5c..1b3619786 100644 --- a/application/src/main/java/run/halo/app/core/extension/attachment/endpoint/AttachmentEndpoint.java +++ b/application/src/main/java/run/halo/app/core/extension/attachment/endpoint/AttachmentEndpoint.java @@ -3,6 +3,8 @@ package run.halo.app.core.extension.attachment.endpoint; import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.content.Builder.contentBuilder; +import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; +import static org.springdoc.core.fn.builders.requestbody.Builder.requestBodyBuilder; import static org.springdoc.core.fn.builders.schema.Builder.schemaBuilder; import static org.springframework.boot.convert.ApplicationConversionService.getSharedInstance; import static org.springframework.web.reactive.function.server.RequestPredicates.contentType; @@ -13,16 +15,16 @@ import static run.halo.app.extension.index.query.QueryFactory.contains; import static run.halo.app.extension.index.query.QueryFactory.in; import static run.halo.app.extension.index.query.QueryFactory.isNull; import static run.halo.app.extension.index.query.QueryFactory.not; -import static run.halo.app.extension.router.QueryParamBuildUtil.buildParametersFromType; import static run.halo.app.extension.router.selector.SelectorUtil.labelAndFieldSelectorToListOptions; +import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ArraySchema; import io.swagger.v3.oas.annotations.media.Schema; import java.util.List; import java.util.Optional; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.BooleanUtils; -import org.springdoc.core.fn.builders.requestbody.Builder; +import org.springdoc.core.fn.builders.operation.Builder; import org.springdoc.webflux.core.fn.SpringdocRouteBuilder; import org.springframework.data.domain.Sort; import org.springframework.http.MediaType; @@ -49,6 +51,7 @@ import run.halo.app.extension.PageRequestImpl; import run.halo.app.extension.ReactiveExtensionClient; import run.halo.app.extension.router.IListRequest; import run.halo.app.extension.router.IListRequest.QueryListRequest; +import run.halo.app.extension.router.QueryParamBuildUtil; import run.halo.app.extension.router.selector.LabelSelector; @Slf4j @@ -86,7 +89,7 @@ public class AttachmentEndpoint implements CustomEndpoint { builder -> builder .operationId("UploadAttachment") .tag(tag) - .requestBody(Builder.requestBodyBuilder() + .requestBody(requestBodyBuilder() .required(true) .content(contentBuilder() .mediaType(MediaType.MULTIPART_FORM_DATA_VALUE) @@ -102,7 +105,7 @@ public class AttachmentEndpoint implements CustomEndpoint { .response( responseBuilder().implementation(generateGenericClass(Attachment.class)) ); - buildParametersFromType(builder, ISearchRequest.class); + ISearchRequest.buildParameters(builder); } ) .build(); @@ -147,6 +150,26 @@ public class AttachmentEndpoint implements CustomEndpoint { implementation = String.class, example = "creationTimestamp,desc")) Sort getSort(); + + public static void buildParameters(Builder builder) { + IListRequest.buildParameters(builder); + builder.parameter(QueryParamBuildUtil.sortParameter()) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("ungrouped") + .required(false) + .description(""" + Filter attachments without group. This parameter will ignore group \ + parameter.\ + """) + .implementation(Boolean.class)) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("keyword") + .required(false) + .description("Keyword for searching.") + .implementation(String.class)); + } } public static class SearchRequest extends QueryListRequest implements ISearchRequest { diff --git a/application/src/main/java/run/halo/app/core/extension/endpoint/CommentEndpoint.java b/application/src/main/java/run/halo/app/core/extension/endpoint/CommentEndpoint.java index d0f364093..12ebc98b9 100644 --- a/application/src/main/java/run/halo/app/core/extension/endpoint/CommentEndpoint.java +++ b/application/src/main/java/run/halo/app/core/extension/endpoint/CommentEndpoint.java @@ -24,7 +24,6 @@ import run.halo.app.content.comment.ReplyService; import run.halo.app.core.extension.content.Comment; import run.halo.app.core.extension.content.Reply; import run.halo.app.extension.ListResult; -import run.halo.app.extension.router.QueryParamBuildUtil; import run.halo.app.infra.utils.HaloUtils; import run.halo.app.infra.utils.IpAddressUtils; @@ -57,7 +56,7 @@ public class CommentEndpoint implements CustomEndpoint { .response(responseBuilder() .implementation(ListResult.generateGenericClass(ListedComment.class)) ); - QueryParamBuildUtil.buildParametersFromType(builder, CommentQuery.class); + CommentQuery.buildParameters(builder); } ) .POST("comments", this::createComment, diff --git a/application/src/main/java/run/halo/app/core/extension/endpoint/PluginEndpoint.java b/application/src/main/java/run/halo/app/core/extension/endpoint/PluginEndpoint.java index d6c6fe8fb..3d0fff501 100644 --- a/application/src/main/java/run/halo/app/core/extension/endpoint/PluginEndpoint.java +++ b/application/src/main/java/run/halo/app/core/extension/endpoint/PluginEndpoint.java @@ -12,7 +12,7 @@ import static org.springframework.boot.convert.ApplicationConversionService.getS import static org.springframework.core.io.buffer.DataBufferUtils.write; import static org.springframework.web.reactive.function.server.RequestPredicates.contentType; import static run.halo.app.extension.ListResult.generateGenericClass; -import static run.halo.app.extension.router.QueryParamBuildUtil.buildParametersFromType; +import static run.halo.app.extension.router.QueryParamBuildUtil.sortParameter; import static run.halo.app.extension.router.selector.SelectorUtil.labelAndFieldSelectorToPredicate; import static run.halo.app.infra.utils.FileUtils.deleteFileSilently; @@ -43,6 +43,7 @@ import lombok.AllArgsConstructor; import lombok.Data; import lombok.extern.slf4j.Slf4j; import org.reactivestreams.Publisher; +import org.springdoc.core.fn.builders.operation.Builder; import org.springdoc.webflux.core.fn.SpringdocRouteBuilder; import org.springframework.beans.factory.DisposableBean; import org.springframework.core.io.FileSystemResource; @@ -80,6 +81,7 @@ import run.halo.app.core.extension.theme.SettingUtils; import run.halo.app.extension.Comparators; import run.halo.app.extension.ConfigMap; import run.halo.app.extension.ReactiveExtensionClient; +import run.halo.app.extension.router.IListRequest; import run.halo.app.extension.router.IListRequest.QueryListRequest; import run.halo.app.infra.ReactiveUrlDataBufferFetcher; import run.halo.app.plugin.PluginNotFoundException; @@ -228,7 +230,7 @@ public class PluginEndpoint implements CustomEndpoint { .tag(tag) .description("List plugins using query criteria and sort params") .response(responseBuilder().implementation(generateGenericClass(Plugin.class))); - buildParametersFromType(builder, ListRequest.class); + ListRequest.buildParameters(builder); }) .GET("plugins/{name}/setting", this::fetchPluginSetting, builder -> builder.operationId("fetchPluginSetting") @@ -655,6 +657,23 @@ public class PluginEndpoint implements CustomEndpoint { .reduce(Comparator::thenComparing) .orElse(null); } + + public static void buildParameters(Builder builder) { + IListRequest.buildParameters(builder); + builder.parameter(sortParameter()); + builder.parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("keyword") + .description("Keyword of plugin name or description") + .implementation(String.class) + .required(false)) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("enabled") + .description("Whether the plugin is enabled") + .implementation(Boolean.class) + .required(false)); + } } Mono list(ServerRequest request) { diff --git a/application/src/main/java/run/halo/app/core/extension/endpoint/PostEndpoint.java b/application/src/main/java/run/halo/app/core/extension/endpoint/PostEndpoint.java index 0f1273a89..9d9826de2 100644 --- a/application/src/main/java/run/halo/app/core/extension/endpoint/PostEndpoint.java +++ b/application/src/main/java/run/halo/app/core/extension/endpoint/PostEndpoint.java @@ -33,7 +33,6 @@ import run.halo.app.core.extension.content.Post; import run.halo.app.extension.ListResult; import run.halo.app.extension.MetadataUtil; import run.halo.app.extension.ReactiveExtensionClient; -import run.halo.app.extension.router.QueryParamBuildUtil; /** * Endpoint for managing posts. @@ -61,7 +60,7 @@ public class PostEndpoint implements CustomEndpoint { .response(responseBuilder() .implementation(ListResult.generateGenericClass(ListedPost.class)) ); - QueryParamBuildUtil.buildParametersFromType(builder, PostQuery.class); + PostQuery.buildParameters(builder); } ) .GET("posts/{name}/head-content", this::fetchHeadContent, diff --git a/application/src/main/java/run/halo/app/core/extension/endpoint/ReplyEndpoint.java b/application/src/main/java/run/halo/app/core/extension/endpoint/ReplyEndpoint.java index 8e09e9b35..799da8335 100644 --- a/application/src/main/java/run/halo/app/core/extension/endpoint/ReplyEndpoint.java +++ b/application/src/main/java/run/halo/app/core/extension/endpoint/ReplyEndpoint.java @@ -13,7 +13,6 @@ import run.halo.app.content.comment.ReplyQuery; import run.halo.app.content.comment.ReplyService; import run.halo.app.core.extension.content.Reply; import run.halo.app.extension.ListResult; -import run.halo.app.extension.router.QueryParamBuildUtil; /** * Endpoint for managing {@link Reply}. @@ -41,7 +40,7 @@ public class ReplyEndpoint implements CustomEndpoint { .response(responseBuilder() .implementation(ListResult.generateGenericClass(ListedReply.class)) ); - QueryParamBuildUtil.buildParametersFromType(builder, ReplyQuery.class); + ReplyQuery.buildParameters(builder); } ) .build(); diff --git a/application/src/main/java/run/halo/app/core/extension/endpoint/SinglePageEndpoint.java b/application/src/main/java/run/halo/app/core/extension/endpoint/SinglePageEndpoint.java index 4be776a02..86b9e0e94 100644 --- a/application/src/main/java/run/halo/app/core/extension/endpoint/SinglePageEndpoint.java +++ b/application/src/main/java/run/halo/app/core/extension/endpoint/SinglePageEndpoint.java @@ -32,7 +32,6 @@ import run.halo.app.core.extension.content.SinglePage; import run.halo.app.extension.ListResult; import run.halo.app.extension.MetadataUtil; import run.halo.app.extension.ReactiveExtensionClient; -import run.halo.app.extension.router.QueryParamBuildUtil; /** * Endpoint for managing {@link SinglePage}. @@ -59,7 +58,7 @@ public class SinglePageEndpoint implements CustomEndpoint { .response(responseBuilder() .implementation(ListResult.generateGenericClass(ListedSinglePage.class)) ); - QueryParamBuildUtil.buildParametersFromType(builder, SinglePageQuery.class); + SinglePageQuery.buildParameters(builder); } ) .GET("singlepages/{name}/head-content", this::fetchHeadContent, diff --git a/application/src/main/java/run/halo/app/core/extension/endpoint/UserEndpoint.java b/application/src/main/java/run/halo/app/core/extension/endpoint/UserEndpoint.java index b56a6147d..a2f915405 100644 --- a/application/src/main/java/run/halo/app/core/extension/endpoint/UserEndpoint.java +++ b/application/src/main/java/run/halo/app/core/extension/endpoint/UserEndpoint.java @@ -14,7 +14,7 @@ import static run.halo.app.extension.index.query.QueryFactory.and; import static run.halo.app.extension.index.query.QueryFactory.contains; import static run.halo.app.extension.index.query.QueryFactory.equal; import static run.halo.app.extension.index.query.QueryFactory.or; -import static run.halo.app.extension.router.QueryParamBuildUtil.buildParametersFromType; +import static run.halo.app.extension.router.QueryParamBuildUtil.sortParameter; import static run.halo.app.extension.router.selector.SelectorUtil.labelAndFieldSelectorToListOptions; import static run.halo.app.security.authorization.AuthorityUtils.authoritiesToRoles; @@ -42,7 +42,7 @@ import java.util.stream.Collectors; import lombok.Data; import lombok.RequiredArgsConstructor; import org.apache.commons.lang3.StringUtils; -import org.springdoc.core.fn.builders.requestbody.Builder; +import org.springdoc.core.fn.builders.operation.Builder; import org.springdoc.webflux.core.fn.SpringdocRouteBuilder; import org.springframework.core.io.buffer.DataBuffer; import org.springframework.dao.OptimisticLockingFailureException; @@ -181,7 +181,7 @@ public class UserEndpoint implements CustomEndpoint { .description("List users") .response(responseBuilder() .implementation(generateGenericClass(ListedUser.class))); - buildParametersFromType(builder, ListRequest.class); + ListRequest.buildParameters(builder); }) .POST("users/{name}/avatar", contentType(MediaType.MULTIPART_FORM_DATA), this::uploadUserAvatar, @@ -195,7 +195,7 @@ public class UserEndpoint implements CustomEndpoint { .description("User name") .required(true) ) - .requestBody(Builder.requestBodyBuilder() + .requestBody(requestBodyBuilder() .required(true) .content(contentBuilder() .mediaType(MediaType.MULTIPART_FORM_DATA_VALUE) @@ -738,6 +738,24 @@ public class UserEndpoint implements CustomEndpoint { listOptions.setFieldSelector(FieldSelector.of(fieldQuery)); return listOptions; } + + public static void buildParameters(Builder builder) { + IListRequest.buildParameters(builder); + builder.parameter(sortParameter()) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("keyword") + .description("Keyword to search") + .implementation(String.class) + .required(false)) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("role") + .description("Role name") + .implementation(String.class) + .required(false)); + } + } record ListedUser(@Schema(requiredMode = REQUIRED) User user, diff --git a/application/src/main/java/run/halo/app/core/extension/theme/ThemeEndpoint.java b/application/src/main/java/run/halo/app/core/extension/theme/ThemeEndpoint.java index 2d96a3066..a4fdda478 100644 --- a/application/src/main/java/run/halo/app/core/extension/theme/ThemeEndpoint.java +++ b/application/src/main/java/run/halo/app/core/extension/theme/ThemeEndpoint.java @@ -18,6 +18,7 @@ import java.util.List; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; +import org.springdoc.core.fn.builders.operation.Builder; import org.springdoc.webflux.core.fn.SpringdocRouteBuilder; import org.springframework.dao.OptimisticLockingFailureException; import org.springframework.http.MediaType; @@ -40,7 +41,6 @@ import run.halo.app.extension.ConfigMap; import run.halo.app.extension.ListResult; import run.halo.app.extension.ReactiveExtensionClient; import run.halo.app.extension.router.IListRequest; -import run.halo.app.extension.router.QueryParamBuildUtil; import run.halo.app.infra.ReactiveUrlDataBufferFetcher; import run.halo.app.infra.SystemConfigurableEnvironmentFetcher; import run.halo.app.infra.SystemSetting; @@ -195,7 +195,7 @@ public class ThemeEndpoint implements CustomEndpoint { .tag(tag) .response(responseBuilder() .implementation(ListResult.generateGenericClass(Theme.class))); - QueryParamBuildUtil.buildParametersFromType(builder, ThemeQuery.class); + ThemeQuery.buildParameters(builder); } ) .GET("themes/-/activation", this::fetchActivatedTheme, @@ -302,7 +302,7 @@ public class ThemeEndpoint implements CustomEndpoint { if (!configMapName.equals(configMapNameToUpdate)) { throw new ServerWebInputException( "The name from the request body does not match the theme " - + "configMapName name."); + + "configMapName name."); } }) .flatMap(configMapToUpdate -> client.fetch(ConfigMap.class, configMapName) @@ -368,6 +368,16 @@ public class ThemeEndpoint implements CustomEndpoint { public Boolean getUninstalled() { return Boolean.parseBoolean(queryParams.getFirst("uninstalled")); } + + public static void buildParameters(Builder builder) { + IListRequest.buildParameters(builder); + builder.parameter(parameterBuilder() + .name("uninstalled") + .description("Whether to list uninstalled themes.") + .in(ParameterIn.QUERY) + .implementation(Boolean.class) + .required(false)); + } } // TODO Extract the method into ThemeService diff --git a/application/src/main/java/run/halo/app/endpoint/uc/content/UcPostEndpoint.java b/application/src/main/java/run/halo/app/endpoint/uc/content/UcPostEndpoint.java index 3bc64dfbb..91a0eafa3 100644 --- a/application/src/main/java/run/halo/app/endpoint/uc/content/UcPostEndpoint.java +++ b/application/src/main/java/run/halo/app/endpoint/uc/content/UcPostEndpoint.java @@ -5,7 +5,6 @@ import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; import static org.springdoc.core.fn.builders.requestbody.Builder.requestBodyBuilder; import static org.springdoc.webflux.core.fn.SpringdocRouteBuilder.route; import static org.springframework.web.reactive.function.server.RequestPredicates.path; -import static run.halo.app.extension.router.QueryParamBuildUtil.buildParametersFromType; import io.swagger.v3.oas.annotations.enums.ParameterIn; import java.util.Objects; @@ -65,7 +64,7 @@ public class UcPostEndpoint implements CustomEndpoint { .tag(tag) .response(responseBuilder().implementation( ListResult.generateGenericClass(ListedPost.class))); - buildParametersFromType(builder, PostQuery.class); + PostQuery.buildParameters(builder); } ) .POST(this::createMyPost, builder -> builder.operationId("CreateMyPost") diff --git a/application/src/main/java/run/halo/app/extension/router/ExtensionRouterFunctionFactory.java b/application/src/main/java/run/halo/app/extension/router/ExtensionRouterFunctionFactory.java index 8232034af..a2ce934ee 100644 --- a/application/src/main/java/run/halo/app/extension/router/ExtensionRouterFunctionFactory.java +++ b/application/src/main/java/run/halo/app/extension/router/ExtensionRouterFunctionFactory.java @@ -54,7 +54,7 @@ public class ExtensionRouterFunctionFactory { .response(responseBuilder().responseCode("200") .description("Response " + scheme.plural()) .implementation(ListResult.generateGenericClass(scheme))); - QueryParamBuildUtil.buildParametersFromType(builder, SortableRequest.class); + SortableRequest.buildParameters(builder); }) .POST(createHandler.pathPattern(), createHandler, builder -> builder.operationId("Create" + gvk) diff --git a/application/src/main/java/run/halo/app/notification/UserNotificationQuery.java b/application/src/main/java/run/halo/app/notification/UserNotificationQuery.java index a03bacb7d..61091828a 100644 --- a/application/src/main/java/run/halo/app/notification/UserNotificationQuery.java +++ b/application/src/main/java/run/halo/app/notification/UserNotificationQuery.java @@ -1,14 +1,18 @@ package run.halo.app.notification; +import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; import static run.halo.app.extension.index.query.QueryFactory.and; import static run.halo.app.extension.index.query.QueryFactory.contains; import static run.halo.app.extension.index.query.QueryFactory.equal; import static run.halo.app.extension.index.query.QueryFactory.or; +import static run.halo.app.extension.router.QueryParamBuildUtil.sortParameter; import static run.halo.app.extension.router.selector.SelectorUtil.labelAndFieldSelectorToListOptions; +import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ArraySchema; import io.swagger.v3.oas.annotations.media.Schema; import org.apache.commons.lang3.StringUtils; +import org.springdoc.core.fn.builders.operation.Builder; import org.springframework.data.domain.Sort; import org.springframework.lang.Nullable; import org.springframework.web.server.ServerWebExchange; @@ -82,4 +86,15 @@ public class UserNotificationQuery extends IListRequest.QueryListRequest { public PageRequest toPageRequest() { return PageRequestImpl.of(getPage(), getSize(), getSort()); } + + public static void buildParameters(Builder builder) { + IListRequest.buildParameters(builder); + builder.parameter(sortParameter()) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("keyword") + .description("Keyword") + .implementation(String.class) + .required(false)); + } } diff --git a/application/src/main/java/run/halo/app/notification/endpoint/SubscriptionRouter.java b/application/src/main/java/run/halo/app/notification/endpoint/SubscriptionRouter.java index 1f2a3a160..7344613ab 100644 --- a/application/src/main/java/run/halo/app/notification/endpoint/SubscriptionRouter.java +++ b/application/src/main/java/run/halo/app/notification/endpoint/SubscriptionRouter.java @@ -49,6 +49,7 @@ public class SubscriptionRouter { .name("name") .description("Subscription name") .required(true) + ).parameter(parameterBuilder() .in(ParameterIn.QUERY) .name("token") .description("Unsubscribe token") diff --git a/application/src/main/java/run/halo/app/notification/endpoint/UserNotificationEndpoint.java b/application/src/main/java/run/halo/app/notification/endpoint/UserNotificationEndpoint.java index 6b1af3558..114796b8f 100644 --- a/application/src/main/java/run/halo/app/notification/endpoint/UserNotificationEndpoint.java +++ b/application/src/main/java/run/halo/app/notification/endpoint/UserNotificationEndpoint.java @@ -22,7 +22,6 @@ import run.halo.app.core.extension.endpoint.CustomEndpoint; import run.halo.app.core.extension.notification.Notification; import run.halo.app.extension.GroupVersion; import run.halo.app.extension.ListResult; -import run.halo.app.extension.router.QueryParamBuildUtil; import run.halo.app.notification.UserNotificationQuery; import run.halo.app.notification.UserNotificationService; @@ -64,8 +63,7 @@ public class UserNotificationEndpoint implements CustomEndpoint { .response(responseBuilder() .implementation(ListResult.generateGenericClass(Notification.class)) ); - QueryParamBuildUtil.buildParametersFromType(builder, - UserNotificationQuery.class); + UserNotificationQuery.buildParameters(builder); } ) .PUT("/notifications/{name}/mark-as-read", this::markNotificationAsRead, diff --git a/application/src/main/java/run/halo/app/search/post/PostSearchEndpoint.java b/application/src/main/java/run/halo/app/search/post/PostSearchEndpoint.java index ed98eb0c3..b5422153f 100644 --- a/application/src/main/java/run/halo/app/search/post/PostSearchEndpoint.java +++ b/application/src/main/java/run/halo/app/search/post/PostSearchEndpoint.java @@ -1,6 +1,5 @@ package run.halo.app.search.post; -import static run.halo.app.extension.router.QueryParamBuildUtil.buildParametersFromType; import static run.halo.app.infra.utils.GenericClassUtils.generateConcreteClass; import org.springdoc.core.fn.builders.apiresponse.Builder; @@ -40,7 +39,7 @@ public class PostSearchEndpoint implements CustomEndpoint { .response(Builder.responseBuilder().implementation( generateConcreteClass(SearchResult.class, PostHit.class, () -> "PostHits"))); - buildParametersFromType(builder, SearchParam.class); + SearchParam.buildParameters(builder); } ) .build(); diff --git a/application/src/main/java/run/halo/app/theme/endpoint/CategoryQueryEndpoint.java b/application/src/main/java/run/halo/app/theme/endpoint/CategoryQueryEndpoint.java index b0b6101c5..590835a9f 100644 --- a/application/src/main/java/run/halo/app/theme/endpoint/CategoryQueryEndpoint.java +++ b/application/src/main/java/run/halo/app/theme/endpoint/CategoryQueryEndpoint.java @@ -6,6 +6,7 @@ import static run.halo.app.theme.endpoint.PublicApiUtils.toAnotherListResult; import io.swagger.v3.oas.annotations.enums.ParameterIn; import lombok.RequiredArgsConstructor; +import org.springdoc.core.fn.builders.operation.Builder; import org.springdoc.webflux.core.fn.SpringdocRouteBuilder; import org.springframework.http.MediaType; import org.springframework.stereotype.Component; @@ -20,7 +21,6 @@ import run.halo.app.extension.GroupVersion; import run.halo.app.extension.ListResult; import run.halo.app.extension.ReactiveExtensionClient; import run.halo.app.extension.index.query.QueryFactory; -import run.halo.app.extension.router.QueryParamBuildUtil; import run.halo.app.extension.router.SortableRequest; import run.halo.app.theme.finders.PostPublicQueryService; import run.halo.app.theme.finders.vo.CategoryVo; @@ -51,7 +51,7 @@ public class CategoryQueryEndpoint implements CustomEndpoint { .response(responseBuilder() .implementation(ListResult.generateGenericClass(CategoryVo.class)) ); - QueryParamBuildUtil.buildParametersFromType(builder, CategoryPublicQuery.class); + CategoryPublicQuery.buildParameters(builder); } ) .GET("categories/{name}", this::getByName, @@ -82,7 +82,7 @@ public class CategoryQueryEndpoint implements CustomEndpoint { .response(responseBuilder() .implementation(ListResult.generateGenericClass(ListedPostVo.class)) ); - QueryParamBuildUtil.buildParametersFromType(builder, PostPublicQuery.class); + PostPublicQuery.buildParameters(builder); } ) .build(); @@ -126,6 +126,10 @@ public class CategoryQueryEndpoint implements CustomEndpoint { public CategoryPublicQuery(ServerWebExchange exchange) { super(exchange); } + + public static void buildParameters(Builder builder) { + SortableRequest.buildParameters(builder); + } } @Override diff --git a/application/src/main/java/run/halo/app/theme/endpoint/CommentFinderEndpoint.java b/application/src/main/java/run/halo/app/theme/endpoint/CommentFinderEndpoint.java index 70214dc4c..5dcc4f97f 100644 --- a/application/src/main/java/run/halo/app/theme/endpoint/CommentFinderEndpoint.java +++ b/application/src/main/java/run/halo/app/theme/endpoint/CommentFinderEndpoint.java @@ -7,6 +7,8 @@ import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder import static org.springdoc.core.fn.builders.content.Builder.contentBuilder; import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; import static org.springdoc.core.fn.builders.requestbody.Builder.requestBodyBuilder; +import static org.springdoc.core.fn.builders.schema.Builder.schemaBuilder; +import static run.halo.app.extension.router.QueryParamBuildUtil.sortParameter; import com.fasterxml.jackson.annotation.JsonIgnore; import io.github.resilience4j.ratelimiter.RateLimiterRegistry; @@ -18,7 +20,7 @@ import io.swagger.v3.oas.annotations.media.Schema; import java.util.List; import lombok.RequiredArgsConstructor; import org.apache.commons.lang3.StringUtils; -import org.springdoc.core.fn.builders.schema.Builder; +import org.springdoc.core.fn.builders.operation.Builder; import org.springdoc.webflux.core.fn.SpringdocRouteBuilder; import org.springframework.data.domain.Sort; import org.springframework.http.MediaType; @@ -45,7 +47,6 @@ import run.halo.app.extension.PageRequest; import run.halo.app.extension.PageRequestImpl; import run.halo.app.extension.Ref; import run.halo.app.extension.router.IListRequest; -import run.halo.app.extension.router.QueryParamBuildUtil; import run.halo.app.infra.SystemConfigurableEnvironmentFetcher; import run.halo.app.infra.exception.AccessDeniedException; import run.halo.app.infra.exception.RateLimitExceededException; @@ -82,7 +83,7 @@ public class CommentFinderEndpoint implements CustomEndpoint { .required(true) .content(contentBuilder() .mediaType(MediaType.APPLICATION_JSON_VALUE) - .schema(Builder.schemaBuilder() + .schema(schemaBuilder() .implementation(CommentRequest.class)) )) .response(responseBuilder() @@ -100,7 +101,7 @@ public class CommentFinderEndpoint implements CustomEndpoint { .required(true) .content(contentBuilder() .mediaType(MediaType.APPLICATION_JSON_VALUE) - .schema(Builder.schemaBuilder() + .schema(schemaBuilder() .implementation(ReplyRequest.class)) )) .response(responseBuilder() @@ -113,7 +114,7 @@ public class CommentFinderEndpoint implements CustomEndpoint { .response(responseBuilder() .implementation(ListResult.generateGenericClass(CommentWithReplyVo.class)) ); - QueryParamBuildUtil.buildParametersFromType(builder, CommentQuery.class); + CommentQuery.buildParameters(builder); }) .GET("comments/{name}", this::getComment, builder -> { builder.operationId("GetComment") @@ -138,7 +139,7 @@ public class CommentFinderEndpoint implements CustomEndpoint { .response(responseBuilder() .implementation(ListResult.generateGenericClass(ReplyVo.class)) ); - QueryParamBuildUtil.buildParametersFromType(builder, PageableRequest.class); + PageableRequest.buildParameters(builder); }) .build(); } @@ -325,6 +326,49 @@ public class CommentFinderEndpoint implements CustomEndpoint { String emptyToNull(String str) { return StringUtils.isBlank(str) ? null : str; } + + public static void buildParameters(Builder builder) { + PageableRequest.buildParameters(builder); + builder.parameter(sortParameter()) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("group") + .description("The comment subject group.") + .required(false) + .implementation(String.class)) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("version") + .description("The comment subject version.") + .required(true) + .implementation(String.class)) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("kind") + .description("The comment subject kind.") + .required(true)) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("name") + .description("The comment subject name.") + .required(true) + .implementation(String.class)) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("withReplies") + .description("Whether to include replies. Default is false.") + .required(false) + .implementation(Boolean.class)) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("replySize") + .description("Reply size of the comment, default is 10, only works when " + + "withReplies is true.") + .required(false) + .schema(schemaBuilder() + .implementation(Integer.class) + .defaultValue("10"))); + } } public static class PageableRequest extends IListRequest.QueryListRequest { @@ -344,5 +388,21 @@ public class CommentFinderEndpoint implements CustomEndpoint { public List getFieldSelector() { throw new UnsupportedOperationException("Unsupported this parameter"); } + + public static void buildParameters(Builder builder) { + builder.parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("page") + .implementation(Integer.class) + .required(false) + .description("Page number. Default is 0.")) + .parameter(parameterBuilder() + .in(ParameterIn.QUERY) + .name("size") + .implementation(Integer.class) + .required(false) + .description("Size number. Default is 0.")); + } + } } diff --git a/application/src/main/java/run/halo/app/theme/endpoint/PostPublicQuery.java b/application/src/main/java/run/halo/app/theme/endpoint/PostPublicQuery.java index 3c775191e..c880186a1 100644 --- a/application/src/main/java/run/halo/app/theme/endpoint/PostPublicQuery.java +++ b/application/src/main/java/run/halo/app/theme/endpoint/PostPublicQuery.java @@ -1,5 +1,6 @@ package run.halo.app.theme.endpoint; +import org.springdoc.core.fn.builders.operation.Builder; import org.springframework.web.server.ServerWebExchange; import run.halo.app.extension.router.SortableRequest; @@ -14,4 +15,8 @@ public class PostPublicQuery extends SortableRequest { public PostPublicQuery(ServerWebExchange exchange) { super(exchange); } + + public static void buildParameters(Builder builder) { + SortableRequest.buildParameters(builder); + } } \ No newline at end of file diff --git a/application/src/main/java/run/halo/app/theme/endpoint/PostQueryEndpoint.java b/application/src/main/java/run/halo/app/theme/endpoint/PostQueryEndpoint.java index c0e922f44..58b642856 100644 --- a/application/src/main/java/run/halo/app/theme/endpoint/PostQueryEndpoint.java +++ b/application/src/main/java/run/halo/app/theme/endpoint/PostQueryEndpoint.java @@ -16,7 +16,6 @@ import run.halo.app.core.extension.content.Post; import run.halo.app.core.extension.endpoint.CustomEndpoint; import run.halo.app.extension.GroupVersion; import run.halo.app.extension.ListResult; -import run.halo.app.extension.router.QueryParamBuildUtil; import run.halo.app.infra.exception.NotFoundException; import run.halo.app.theme.finders.PostFinder; import run.halo.app.theme.finders.PostPublicQueryService; @@ -49,7 +48,7 @@ public class PostQueryEndpoint implements CustomEndpoint { .response(responseBuilder() .implementation(ListResult.generateGenericClass(ListedPostVo.class)) ); - QueryParamBuildUtil.buildParametersFromType(builder, PostPublicQuery.class); + PostPublicQuery.buildParameters(builder); } ) .GET("posts/{name}", this::getPostByName, diff --git a/application/src/main/java/run/halo/app/theme/endpoint/SinglePageQueryEndpoint.java b/application/src/main/java/run/halo/app/theme/endpoint/SinglePageQueryEndpoint.java index 97a3e794d..86f938ade 100644 --- a/application/src/main/java/run/halo/app/theme/endpoint/SinglePageQueryEndpoint.java +++ b/application/src/main/java/run/halo/app/theme/endpoint/SinglePageQueryEndpoint.java @@ -5,6 +5,7 @@ import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; import io.swagger.v3.oas.annotations.enums.ParameterIn; import lombok.RequiredArgsConstructor; +import org.springdoc.core.fn.builders.operation.Builder; import org.springdoc.webflux.core.fn.SpringdocRouteBuilder; import org.springframework.http.MediaType; import org.springframework.stereotype.Component; @@ -17,7 +18,6 @@ import run.halo.app.core.extension.content.SinglePage; import run.halo.app.core.extension.endpoint.CustomEndpoint; import run.halo.app.extension.GroupVersion; import run.halo.app.extension.ListResult; -import run.halo.app.extension.router.QueryParamBuildUtil; import run.halo.app.extension.router.SortableRequest; import run.halo.app.theme.finders.SinglePageFinder; import run.halo.app.theme.finders.vo.ListedSinglePageVo; @@ -48,8 +48,7 @@ public class SinglePageQueryEndpoint implements CustomEndpoint { .implementation( ListResult.generateGenericClass(ListedSinglePageVo.class)) ); - QueryParamBuildUtil.buildParametersFromType(builder, - SinglePagePublicQuery.class); + SinglePagePublicQuery.buildParameters(builder); } ) .GET("singlepages/{name}", this::getByName, @@ -96,6 +95,10 @@ public class SinglePageQueryEndpoint implements CustomEndpoint { public SinglePagePublicQuery(ServerWebExchange exchange) { super(exchange); } + + public static void buildParameters(Builder builder) { + SortableRequest.buildParameters(builder); + } } @Override diff --git a/application/src/main/java/run/halo/app/theme/endpoint/TagQueryEndpoint.java b/application/src/main/java/run/halo/app/theme/endpoint/TagQueryEndpoint.java index 88377f32a..68ce50311 100644 --- a/application/src/main/java/run/halo/app/theme/endpoint/TagQueryEndpoint.java +++ b/application/src/main/java/run/halo/app/theme/endpoint/TagQueryEndpoint.java @@ -5,6 +5,7 @@ import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; import io.swagger.v3.oas.annotations.enums.ParameterIn; import lombok.RequiredArgsConstructor; +import org.springdoc.core.fn.builders.operation.Builder; import org.springdoc.webflux.core.fn.SpringdocRouteBuilder; import org.springframework.http.MediaType; import org.springframework.stereotype.Component; @@ -19,7 +20,6 @@ import run.halo.app.extension.GroupVersion; import run.halo.app.extension.ListResult; import run.halo.app.extension.ReactiveExtensionClient; import run.halo.app.extension.index.query.QueryFactory; -import run.halo.app.extension.router.QueryParamBuildUtil; import run.halo.app.extension.router.SortableRequest; import run.halo.app.theme.finders.PostPublicQueryService; import run.halo.app.theme.finders.TagFinder; @@ -53,7 +53,7 @@ public class TagQueryEndpoint implements CustomEndpoint { .implementation( ListResult.generateGenericClass(TagVo.class)) ); - QueryParamBuildUtil.buildParametersFromType(builder, TagPublicQuery.class); + TagPublicQuery.buildParameters(builder); } ) .GET("tags/{name}", this::getTagByName, @@ -84,7 +84,7 @@ public class TagQueryEndpoint implements CustomEndpoint { .response(responseBuilder() .implementation(ListedPostVo.class) ); - QueryParamBuildUtil.buildParametersFromType(builder, PostPublicQuery.class); + PostPublicQuery.buildParameters(builder); } ) .build(); @@ -131,6 +131,10 @@ public class TagQueryEndpoint implements CustomEndpoint { public TagPublicQuery(ServerWebExchange exchange) { super(exchange); } + + public static void buildParameters(Builder builder) { + SortableRequest.buildParameters(builder); + } } @Override diff --git a/application/src/main/resources/application-dev.yaml b/application/src/main/resources/application-dev.yaml index 8d7c5dd1e..4475d9699 100644 --- a/application/src/main/resources/application-dev.yaml +++ b/application/src/main/resources/application-dev.yaml @@ -35,7 +35,7 @@ springdoc: disabled: true api-docs: enabled: true - version: OPENAPI_3_1 + version: OPENAPI_3_0 swagger-ui: enabled: true show-actuator: true diff --git a/application/src/main/resources/application-doc.yaml b/application/src/main/resources/application-doc.yaml new file mode 100644 index 000000000..af0af7534 --- /dev/null +++ b/application/src/main/resources/application-doc.yaml @@ -0,0 +1,17 @@ +springdoc: + cache: + disabled: true + api-docs: + enabled: true + version: OPENAPI_3_0 + +spring: + main: + banner-mode: off + r2dbc: + url: r2dbc:h2:mem:///halo + +halo: + extension: + controller: + disabled: true diff --git a/build.gradle b/build.gradle index 7fbe015bd..80ac79981 100644 --- a/build.gradle +++ b/build.gradle @@ -6,4 +6,5 @@ plugins { id "io.freefair.lombok" version "8.6" apply false id 'org.gradle.crypto.checksum' version '1.4.0' apply false id "com.github.node-gradle.node" version "7.0.2" apply false + id "org.springdoc.openapi-gradle-plugin" version "1.8.0" apply false } diff --git a/ui/.eslintrc.cjs b/ui/.eslintrc.cjs index 6cda978fc..63132e516 100644 --- a/ui/.eslintrc.cjs +++ b/ui/.eslintrc.cjs @@ -24,7 +24,7 @@ module.exports = { extends: ["plugin:cypress/recommended"], }, ], - ignorePatterns: ["!.storybook"], + ignorePatterns: ["!.storybook", "packages/api-client"], parserOptions: { ecmaVersion: "latest", }, diff --git a/ui/.prettierignore b/ui/.prettierignore index bd5535a60..3909f451c 100644 --- a/ui/.prettierignore +++ b/ui/.prettierignore @@ -1 +1,2 @@ pnpm-lock.yaml +packages/api-client diff --git a/ui/packages/api-client/src/.openapi_config.yaml b/ui/packages/api-client/.openapi_config.yaml similarity index 100% rename from ui/packages/api-client/src/.openapi_config.yaml rename to ui/packages/api-client/.openapi_config.yaml diff --git a/ui/packages/api-client/openapitools.json b/ui/packages/api-client/openapitools.json index 6755cd244..557168821 100644 --- a/ui/packages/api-client/openapitools.json +++ b/ui/packages/api-client/openapitools.json @@ -2,6 +2,6 @@ "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", "spaces": 2, "generator-cli": { - "version": "6.3.0" + "version": "7.4.0" } } diff --git a/ui/packages/api-client/package.json b/ui/packages/api-client/package.json index 03b64ffa4..b0649f19b 100644 --- a/ui/packages/api-client/package.json +++ b/ui/packages/api-client/package.json @@ -5,11 +5,8 @@ "scripts": { "build": "unbuild", "dev": "unbuild --stub", - "lint": "eslint . --fix", - "prettier": "prettier --write './src/**/*.{js,jsx,ts,tsx,json,yml,yaml}'", - "typecheck": "tsc --noEmit", "release": "bumpp", - "gen": "openapi-generator-cli generate -i http://localhost:8090/v3/api-docs/all-api -g typescript-axios -c ./src/.openapi_config.yaml -o ./src --type-mappings='set=Array' --skip-validate-spec && pnpm lint && pnpm prettier" + "gen": "openapi-generator-cli generate -i ../../../api-docs/openapi/v3_0/aggregated.json -g typescript-axios -c ./.openapi_config.yaml -o ./src --type-mappings='set=Array'" }, "keywords": [], "author": "@halo-dev", diff --git a/ui/packages/api-client/src/.openapi-generator/FILES b/ui/packages/api-client/src/.openapi-generator/FILES index 80884c07a..68537e2da 100644 --- a/ui/packages/api-client/src/.openapi-generator/FILES +++ b/ui/packages/api-client/src/.openapi-generator/FILES @@ -33,6 +33,7 @@ api/api-security-halo-run-v1alpha1-authentication-two-factor-api.ts api/api-security-halo-run-v1alpha1-personal-access-token-api.ts api/auth-halo-run-v1alpha1-auth-provider-api.ts api/auth-halo-run-v1alpha1-user-connection-api.ts +api/console-api-notification-halo-run-v1alpha1-notifier-api.ts api/content-halo-run-v1alpha1-category-api.ts api/content-halo-run-v1alpha1-comment-api.ts api/content-halo-run-v1alpha1-post-api.ts @@ -110,6 +111,8 @@ models/comment-stats.ts models/comment-status.ts models/comment-vo-list.ts models/comment-vo.ts +models/comment-with-reply-vo-list.ts +models/comment-with-reply-vo.ts models/comment.ts models/condition.ts models/config-map-list.ts @@ -127,6 +130,7 @@ models/create-user-request.ts models/custom-templates.ts models/dashboard-stats.ts models/detailed-user.ts +models/email-config-validation-request.ts models/email-verify-request.ts models/excerpt.ts models/extension-definition-list.ts @@ -148,6 +152,7 @@ models/install-from-uri-request.ts models/interest-reason-subject.ts models/interest-reason.ts models/license.ts +models/list-result-reply-vo.ts models/listed-auth-provider.ts models/listed-comment-list.ts models/listed-comment.ts diff --git a/ui/packages/api-client/src/.openapi-generator/VERSION b/ui/packages/api-client/src/.openapi-generator/VERSION index e7e42a4b5..ba7f754d0 100644 --- a/ui/packages/api-client/src/.openapi-generator/VERSION +++ b/ui/packages/api-client/src/.openapi-generator/VERSION @@ -1 +1 @@ -6.3.0 \ No newline at end of file +7.4.0 diff --git a/ui/packages/api-client/src/api.ts b/ui/packages/api-client/src/api.ts index cd7dcb333..8700a4856 100644 --- a/ui/packages/api-client/src/api.ts +++ b/ui/packages/api-client/src/api.ts @@ -5,82 +5,86 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -export * from "./api/api-console-halo-run-v1alpha1-attachment-api"; -export * from "./api/api-console-halo-run-v1alpha1-auth-provider-api"; -export * from "./api/api-console-halo-run-v1alpha1-comment-api"; -export * from "./api/api-console-halo-run-v1alpha1-indices-api"; -export * from "./api/api-console-halo-run-v1alpha1-notifier-api"; -export * from "./api/api-console-halo-run-v1alpha1-plugin-api"; -export * from "./api/api-console-halo-run-v1alpha1-post-api"; -export * from "./api/api-console-halo-run-v1alpha1-reply-api"; -export * from "./api/api-console-halo-run-v1alpha1-single-page-api"; -export * from "./api/api-console-halo-run-v1alpha1-stats-api"; -export * from "./api/api-console-halo-run-v1alpha1-system-api"; -export * from "./api/api-console-halo-run-v1alpha1-theme-api"; -export * from "./api/api-console-halo-run-v1alpha1-user-api"; -export * from "./api/api-console-migration-halo-run-v1alpha1-migration-api"; -export * from "./api/api-content-halo-run-v1alpha1-category-api"; -export * from "./api/api-content-halo-run-v1alpha1-post-api"; -export * from "./api/api-content-halo-run-v1alpha1-single-page-api"; -export * from "./api/api-content-halo-run-v1alpha1-tag-api"; -export * from "./api/api-halo-run-v1alpha1-comment-api"; -export * from "./api/api-halo-run-v1alpha1-menu-api"; -export * from "./api/api-halo-run-v1alpha1-post-api"; -export * from "./api/api-halo-run-v1alpha1-stats-api"; -export * from "./api/api-halo-run-v1alpha1-tracker-api"; -export * from "./api/api-halo-run-v1alpha1-user-api"; -export * from "./api/api-notification-halo-run-v1alpha1-notification-api"; -export * from "./api/api-notification-halo-run-v1alpha1-notifier-api"; -export * from "./api/api-notification-halo-run-v1alpha1-subscription-api"; -export * from "./api/api-plugin-halo-run-v1alpha1-plugin-api"; -export * from "./api/api-security-halo-run-v1alpha1-authentication-two-factor-api"; -export * from "./api/api-security-halo-run-v1alpha1-personal-access-token-api"; -export * from "./api/auth-halo-run-v1alpha1-auth-provider-api"; -export * from "./api/auth-halo-run-v1alpha1-user-connection-api"; -export * from "./api/content-halo-run-v1alpha1-category-api"; -export * from "./api/content-halo-run-v1alpha1-comment-api"; -export * from "./api/content-halo-run-v1alpha1-post-api"; -export * from "./api/content-halo-run-v1alpha1-reply-api"; -export * from "./api/content-halo-run-v1alpha1-single-page-api"; -export * from "./api/content-halo-run-v1alpha1-snapshot-api"; -export * from "./api/content-halo-run-v1alpha1-tag-api"; -export * from "./api/login-api"; -export * from "./api/metrics-halo-run-v1alpha1-counter-api"; -export * from "./api/migration-halo-run-v1alpha1-backup-api"; -export * from "./api/notification-halo-run-v1alpha1-notification-api"; -export * from "./api/notification-halo-run-v1alpha1-notification-template-api"; -export * from "./api/notification-halo-run-v1alpha1-notifier-descriptor-api"; -export * from "./api/notification-halo-run-v1alpha1-reason-api"; -export * from "./api/notification-halo-run-v1alpha1-reason-type-api"; -export * from "./api/notification-halo-run-v1alpha1-subscription-api"; -export * from "./api/plugin-halo-run-v1alpha1-extension-definition-api"; -export * from "./api/plugin-halo-run-v1alpha1-extension-point-definition-api"; -export * from "./api/plugin-halo-run-v1alpha1-plugin-api"; -export * from "./api/plugin-halo-run-v1alpha1-reverse-proxy-api"; -export * from "./api/plugin-halo-run-v1alpha1-search-engine-api"; -export * from "./api/security-halo-run-v1alpha1-personal-access-token-api"; -export * from "./api/storage-halo-run-v1alpha1-attachment-api"; -export * from "./api/storage-halo-run-v1alpha1-group-api"; -export * from "./api/storage-halo-run-v1alpha1-policy-api"; -export * from "./api/storage-halo-run-v1alpha1-policy-template-api"; -export * from "./api/theme-halo-run-v1alpha1-theme-api"; -export * from "./api/uc-api-content-halo-run-v1alpha1-attachment-api"; -export * from "./api/uc-api-content-halo-run-v1alpha1-post-api"; -export * from "./api/uc-api-content-halo-run-v1alpha1-snapshot-api"; -export * from "./api/v1alpha1-annotation-setting-api"; -export * from "./api/v1alpha1-cache-api"; -export * from "./api/v1alpha1-config-map-api"; -export * from "./api/v1alpha1-menu-api"; -export * from "./api/v1alpha1-menu-item-api"; -export * from "./api/v1alpha1-role-api"; -export * from "./api/v1alpha1-role-binding-api"; -export * from "./api/v1alpha1-secret-api"; -export * from "./api/v1alpha1-setting-api"; -export * from "./api/v1alpha1-user-api"; + + +export * from './api/api-console-halo-run-v1alpha1-attachment-api'; +export * from './api/api-console-halo-run-v1alpha1-auth-provider-api'; +export * from './api/api-console-halo-run-v1alpha1-comment-api'; +export * from './api/api-console-halo-run-v1alpha1-indices-api'; +export * from './api/api-console-halo-run-v1alpha1-notifier-api'; +export * from './api/api-console-halo-run-v1alpha1-plugin-api'; +export * from './api/api-console-halo-run-v1alpha1-post-api'; +export * from './api/api-console-halo-run-v1alpha1-reply-api'; +export * from './api/api-console-halo-run-v1alpha1-single-page-api'; +export * from './api/api-console-halo-run-v1alpha1-stats-api'; +export * from './api/api-console-halo-run-v1alpha1-system-api'; +export * from './api/api-console-halo-run-v1alpha1-theme-api'; +export * from './api/api-console-halo-run-v1alpha1-user-api'; +export * from './api/api-console-migration-halo-run-v1alpha1-migration-api'; +export * from './api/api-content-halo-run-v1alpha1-category-api'; +export * from './api/api-content-halo-run-v1alpha1-post-api'; +export * from './api/api-content-halo-run-v1alpha1-single-page-api'; +export * from './api/api-content-halo-run-v1alpha1-tag-api'; +export * from './api/api-halo-run-v1alpha1-comment-api'; +export * from './api/api-halo-run-v1alpha1-menu-api'; +export * from './api/api-halo-run-v1alpha1-post-api'; +export * from './api/api-halo-run-v1alpha1-stats-api'; +export * from './api/api-halo-run-v1alpha1-tracker-api'; +export * from './api/api-halo-run-v1alpha1-user-api'; +export * from './api/api-notification-halo-run-v1alpha1-notification-api'; +export * from './api/api-notification-halo-run-v1alpha1-notifier-api'; +export * from './api/api-notification-halo-run-v1alpha1-subscription-api'; +export * from './api/api-plugin-halo-run-v1alpha1-plugin-api'; +export * from './api/api-security-halo-run-v1alpha1-authentication-two-factor-api'; +export * from './api/api-security-halo-run-v1alpha1-personal-access-token-api'; +export * from './api/auth-halo-run-v1alpha1-auth-provider-api'; +export * from './api/auth-halo-run-v1alpha1-user-connection-api'; +export * from './api/console-api-notification-halo-run-v1alpha1-notifier-api'; +export * from './api/content-halo-run-v1alpha1-category-api'; +export * from './api/content-halo-run-v1alpha1-comment-api'; +export * from './api/content-halo-run-v1alpha1-post-api'; +export * from './api/content-halo-run-v1alpha1-reply-api'; +export * from './api/content-halo-run-v1alpha1-single-page-api'; +export * from './api/content-halo-run-v1alpha1-snapshot-api'; +export * from './api/content-halo-run-v1alpha1-tag-api'; +export * from './api/login-api'; +export * from './api/metrics-halo-run-v1alpha1-counter-api'; +export * from './api/migration-halo-run-v1alpha1-backup-api'; +export * from './api/notification-halo-run-v1alpha1-notification-api'; +export * from './api/notification-halo-run-v1alpha1-notification-template-api'; +export * from './api/notification-halo-run-v1alpha1-notifier-descriptor-api'; +export * from './api/notification-halo-run-v1alpha1-reason-api'; +export * from './api/notification-halo-run-v1alpha1-reason-type-api'; +export * from './api/notification-halo-run-v1alpha1-subscription-api'; +export * from './api/plugin-halo-run-v1alpha1-extension-definition-api'; +export * from './api/plugin-halo-run-v1alpha1-extension-point-definition-api'; +export * from './api/plugin-halo-run-v1alpha1-plugin-api'; +export * from './api/plugin-halo-run-v1alpha1-reverse-proxy-api'; +export * from './api/plugin-halo-run-v1alpha1-search-engine-api'; +export * from './api/security-halo-run-v1alpha1-personal-access-token-api'; +export * from './api/storage-halo-run-v1alpha1-attachment-api'; +export * from './api/storage-halo-run-v1alpha1-group-api'; +export * from './api/storage-halo-run-v1alpha1-policy-api'; +export * from './api/storage-halo-run-v1alpha1-policy-template-api'; +export * from './api/theme-halo-run-v1alpha1-theme-api'; +export * from './api/uc-api-content-halo-run-v1alpha1-attachment-api'; +export * from './api/uc-api-content-halo-run-v1alpha1-post-api'; +export * from './api/uc-api-content-halo-run-v1alpha1-snapshot-api'; +export * from './api/v1alpha1-annotation-setting-api'; +export * from './api/v1alpha1-cache-api'; +export * from './api/v1alpha1-config-map-api'; +export * from './api/v1alpha1-menu-api'; +export * from './api/v1alpha1-menu-item-api'; +export * from './api/v1alpha1-role-api'; +export * from './api/v1alpha1-role-binding-api'; +export * from './api/v1alpha1-secret-api'; +export * from './api/v1alpha1-setting-api'; +export * from './api/v1alpha1-user-api'; + diff --git a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-attachment-api.ts b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-attachment-api.ts index f0866b1d4..f9eb340d6 100644 --- a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-attachment-api.ts +++ b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-attachment-api.ts @@ -5,353 +5,235 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Attachment } from "../models"; +import { Attachment } from '../models'; // @ts-ignore -import { AttachmentList } from "../models"; +import { AttachmentList } from '../models'; /** * ApiConsoleHaloRunV1alpha1AttachmentApi - axios parameter creator * @export */ -export const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = - function (configuration?: Configuration) { +export const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {string} [keyword] Keyword for searching. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp, size - * @param {boolean} [ungrouped] Filter attachments without group. This parameter will ignore group parameter. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - searchAttachments: async ( - fieldSelector?: Array, - keyword?: string, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - ungrouped?: boolean, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {boolean} [ungrouped] Filter attachments without group. This parameter will ignore group parameter. + * @param {string} [keyword] Keyword for searching. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + searchAttachments: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, ungrouped?: boolean, keyword?: string, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (keyword !== undefined) { - localVarQueryParameter["keyword"] = keyword; - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (sort) { + localVarQueryParameter['sort'] = sort; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (ungrouped !== undefined) { + localVarQueryParameter['ungrouped'] = ungrouped; + } - if (ungrouped !== undefined) { - localVarQueryParameter["ungrouped"] = ungrouped; - } + if (keyword !== undefined) { + localVarQueryParameter['keyword'] = keyword; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {File} file - * @param {string} policyName Storage policy name - * @param {string} [groupName] The name of the group to which the attachment belongs - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - uploadAttachment: async ( - file: File, - policyName: string, - groupName?: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'file' is not null or undefined - assertParamExists("uploadAttachment", "file", file); - // verify required parameter 'policyName' is not null or undefined - assertParamExists("uploadAttachment", "policyName", policyName); - const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments/upload`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - const localVarFormParams = new ((configuration && - configuration.formDataCtor) || - FormData)(); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {File} file + * @param {string} policyName Storage policy name + * @param {string} [groupName] The name of the group to which the attachment belongs + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uploadAttachment: async (file: File, policyName: string, groupName?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'file' is not null or undefined + assertParamExists('uploadAttachment', 'file', file) + // verify required parameter 'policyName' is not null or undefined + assertParamExists('uploadAttachment', 'policyName', policyName) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments/upload`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (file !== undefined) { - localVarFormParams.append("file", file as any); - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (groupName !== undefined) { - localVarFormParams.append("groupName", groupName as any); - } - if (policyName !== undefined) { - localVarFormParams.append("policyName", policyName as any); - } + if (file !== undefined) { + localVarFormParams.append('file', file as any); + } + + if (groupName !== undefined) { + localVarFormParams.append('groupName', groupName as any); + } + + if (policyName !== undefined) { + localVarFormParams.append('policyName', policyName as any); + } + + + localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = localVarFormParams; - localVarHeaderParameter["Content-Type"] = "multipart/form-data"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = localVarFormParams; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * ApiConsoleHaloRunV1alpha1AttachmentApi - functional programming interface * @export */ -export const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration); - return { - /** - * - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {string} [keyword] Keyword for searching. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp, size - * @param {boolean} [ungrouped] Filter attachments without group. This parameter will ignore group parameter. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async searchAttachments( - fieldSelector?: Array, - keyword?: string, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - ungrouped?: boolean, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.searchAttachments( - fieldSelector, - keyword, - labelSelector, - page, - size, - sort, - ungrouped, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * - * @param {File} file - * @param {string} policyName Storage policy name - * @param {string} [groupName] The name of the group to which the attachment belongs - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async uploadAttachment( - file: File, - policyName: string, - groupName?: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.uploadAttachment( - file, - policyName, - groupName, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration) + return { + /** + * + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {boolean} [ungrouped] Filter attachments without group. This parameter will ignore group parameter. + * @param {string} [keyword] Keyword for searching. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async searchAttachments(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, ungrouped?: boolean, keyword?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(page, size, labelSelector, fieldSelector, sort, ungrouped, keyword, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1AttachmentApi.searchAttachments']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {File} file + * @param {string} policyName Storage policy name + * @param {string} [groupName] The name of the group to which the attachment belongs + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async uploadAttachment(file: File, policyName: string, groupName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAttachment(file, policyName, groupName, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1AttachmentApi.uploadAttachment']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiConsoleHaloRunV1alpha1AttachmentApi - factory interface * @export */ -export const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration); - return { - /** - * - * @param {ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - searchAttachments( - requestParameters: ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .searchAttachments( - requestParameters.fieldSelector, - requestParameters.keyword, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - requestParameters.ungrouped, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * - * @param {ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachmentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - uploadAttachment( - requestParameters: ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachmentRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .uploadAttachment( - requestParameters.file, - requestParameters.policyName, - requestParameters.groupName, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration) + return { + /** + * + * @param {ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + searchAttachments(requestParameters: ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.searchAttachments(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, requestParameters.ungrouped, requestParameters.keyword, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachmentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uploadAttachment(requestParameters: ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachmentRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -360,54 +242,54 @@ export const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function ( * @interface ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest */ export interface ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments + */ + readonly page?: number - /** - * Keyword for searching. - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments - */ - readonly keyword?: string; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments + */ + readonly size?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments - */ - readonly labelSelector?: Array; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments + */ + readonly labelSelector?: Array - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments - */ - readonly page?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments + */ + readonly fieldSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments - */ - readonly size?: number; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments + */ + readonly sort?: Array - /** - * Sort property and direction of the list result. Supported fields: creationTimestamp, size - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments - */ - readonly sort?: Array; + /** + * Filter attachments without group. This parameter will ignore group parameter. + * @type {boolean} + * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments + */ + readonly ungrouped?: boolean - /** - * Filter attachments without group. This parameter will ignore group parameter. - * @type {boolean} - * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments - */ - readonly ungrouped?: boolean; + /** + * Keyword for searching. + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments + */ + readonly keyword?: string } /** @@ -416,26 +298,26 @@ export interface ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest * @interface ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachmentRequest */ export interface ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachmentRequest { - /** - * - * @type {File} - * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachment - */ - readonly file: File; + /** + * + * @type {File} + * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachment + */ + readonly file: File - /** - * Storage policy name - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachment - */ - readonly policyName: string; + /** + * Storage policy name + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachment + */ + readonly policyName: string - /** - * The name of the group to which the attachment belongs - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachment - */ - readonly groupName?: string; + /** + * The name of the group to which the attachment belongs + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachment + */ + readonly groupName?: string } /** @@ -445,49 +327,26 @@ export interface ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachmentRequest { * @extends {BaseAPI} */ export class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI { - /** - * - * @param {ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1AttachmentApi - */ - public searchAttachments( - requestParameters: ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest = {}, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration) - .searchAttachments( - requestParameters.fieldSelector, - requestParameters.keyword, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - requestParameters.ungrouped, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * + * @param {ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1AttachmentApi + */ + public searchAttachments(requestParameters: ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest = {}, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, requestParameters.ungrouped, requestParameters.keyword, options).then((request) => request(this.axios, this.basePath)); + } - /** - * - * @param {ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachmentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1AttachmentApi - */ - public uploadAttachment( - requestParameters: ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachmentRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration) - .uploadAttachment( - requestParameters.file, - requestParameters.policyName, - requestParameters.groupName, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * + * @param {ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachmentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1AttachmentApi + */ + public uploadAttachment(requestParameters: ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachmentRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-auth-provider-api.ts b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-auth-provider-api.ts index 06f7bf995..87398d851 100644 --- a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-auth-provider-api.ts +++ b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-auth-provider-api.ts @@ -5,335 +5,233 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { AuthProvider } from "../models"; +import { AuthProvider } from '../models'; // @ts-ignore -import { ListedAuthProvider } from "../models"; +import { ListedAuthProvider } from '../models'; /** * ApiConsoleHaloRunV1alpha1AuthProviderApi - axios parameter creator * @export */ -export const ApiConsoleHaloRunV1alpha1AuthProviderApiAxiosParamCreator = - function (configuration?: Configuration) { +export const ApiConsoleHaloRunV1alpha1AuthProviderApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Disables an auth provider - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - disableAuthProvider: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("disableAuthProvider", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/auth-providers/{name}/disable`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * Disables an auth provider + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + disableAuthProvider: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('disableAuthProvider', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/auth-providers/{name}/disable` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Enables an auth provider - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - enableAuthProvider: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("enableAuthProvider", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/auth-providers/{name}/enable`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Enables an auth provider + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + enableAuthProvider: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('enableAuthProvider', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/auth-providers/{name}/enable` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Lists all auth providers - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listAuthProviders: async ( - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.console.halo.run/v1alpha1/auth-providers`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists all auth providers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listAuthProviders: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.console.halo.run/v1alpha1/auth-providers`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * ApiConsoleHaloRunV1alpha1AuthProviderApi - functional programming interface * @export */ -export const ApiConsoleHaloRunV1alpha1AuthProviderApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiConsoleHaloRunV1alpha1AuthProviderApiAxiosParamCreator(configuration); - return { - /** - * Disables an auth provider - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async disableAuthProvider( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.disableAuthProvider(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Enables an auth provider - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async enableAuthProvider( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.enableAuthProvider(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Lists all auth providers - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listAuthProviders( - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise> - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listAuthProviders(options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiConsoleHaloRunV1alpha1AuthProviderApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AuthProviderApiAxiosParamCreator(configuration) + return { + /** + * Disables an auth provider + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async disableAuthProvider(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.disableAuthProvider(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1AuthProviderApi.disableAuthProvider']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Enables an auth provider + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async enableAuthProvider(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.enableAuthProvider(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1AuthProviderApi.enableAuthProvider']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Lists all auth providers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listAuthProviders(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listAuthProviders(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1AuthProviderApi.listAuthProviders']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiConsoleHaloRunV1alpha1AuthProviderApi - factory interface * @export */ -export const ApiConsoleHaloRunV1alpha1AuthProviderApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiConsoleHaloRunV1alpha1AuthProviderApiFp(configuration); - return { - /** - * Disables an auth provider - * @param {ApiConsoleHaloRunV1alpha1AuthProviderApiDisableAuthProviderRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - disableAuthProvider( - requestParameters: ApiConsoleHaloRunV1alpha1AuthProviderApiDisableAuthProviderRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .disableAuthProvider(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Enables an auth provider - * @param {ApiConsoleHaloRunV1alpha1AuthProviderApiEnableAuthProviderRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - enableAuthProvider( - requestParameters: ApiConsoleHaloRunV1alpha1AuthProviderApiEnableAuthProviderRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .enableAuthProvider(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Lists all auth providers - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listAuthProviders( - options?: AxiosRequestConfig - ): AxiosPromise> { - return localVarFp - .listAuthProviders(options) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiConsoleHaloRunV1alpha1AuthProviderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiConsoleHaloRunV1alpha1AuthProviderApiFp(configuration) + return { + /** + * Disables an auth provider + * @param {ApiConsoleHaloRunV1alpha1AuthProviderApiDisableAuthProviderRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + disableAuthProvider(requestParameters: ApiConsoleHaloRunV1alpha1AuthProviderApiDisableAuthProviderRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.disableAuthProvider(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Enables an auth provider + * @param {ApiConsoleHaloRunV1alpha1AuthProviderApiEnableAuthProviderRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + enableAuthProvider(requestParameters: ApiConsoleHaloRunV1alpha1AuthProviderApiEnableAuthProviderRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.enableAuthProvider(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Lists all auth providers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listAuthProviders(options?: RawAxiosRequestConfig): AxiosPromise> { + return localVarFp.listAuthProviders(options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -342,12 +240,12 @@ export const ApiConsoleHaloRunV1alpha1AuthProviderApiFactory = function ( * @interface ApiConsoleHaloRunV1alpha1AuthProviderApiDisableAuthProviderRequest */ export interface ApiConsoleHaloRunV1alpha1AuthProviderApiDisableAuthProviderRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1AuthProviderApiDisableAuthProvider - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1AuthProviderApiDisableAuthProvider + */ + readonly name: string } /** @@ -356,12 +254,12 @@ export interface ApiConsoleHaloRunV1alpha1AuthProviderApiDisableAuthProviderRequ * @interface ApiConsoleHaloRunV1alpha1AuthProviderApiEnableAuthProviderRequest */ export interface ApiConsoleHaloRunV1alpha1AuthProviderApiEnableAuthProviderRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1AuthProviderApiEnableAuthProvider - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1AuthProviderApiEnableAuthProvider + */ + readonly name: string } /** @@ -371,47 +269,36 @@ export interface ApiConsoleHaloRunV1alpha1AuthProviderApiEnableAuthProviderReque * @extends {BaseAPI} */ export class ApiConsoleHaloRunV1alpha1AuthProviderApi extends BaseAPI { - /** - * Disables an auth provider - * @param {ApiConsoleHaloRunV1alpha1AuthProviderApiDisableAuthProviderRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1AuthProviderApi - */ - public disableAuthProvider( - requestParameters: ApiConsoleHaloRunV1alpha1AuthProviderApiDisableAuthProviderRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1AuthProviderApiFp(this.configuration) - .disableAuthProvider(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Disables an auth provider + * @param {ApiConsoleHaloRunV1alpha1AuthProviderApiDisableAuthProviderRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1AuthProviderApi + */ + public disableAuthProvider(requestParameters: ApiConsoleHaloRunV1alpha1AuthProviderApiDisableAuthProviderRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1AuthProviderApiFp(this.configuration).disableAuthProvider(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Enables an auth provider - * @param {ApiConsoleHaloRunV1alpha1AuthProviderApiEnableAuthProviderRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1AuthProviderApi - */ - public enableAuthProvider( - requestParameters: ApiConsoleHaloRunV1alpha1AuthProviderApiEnableAuthProviderRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1AuthProviderApiFp(this.configuration) - .enableAuthProvider(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Enables an auth provider + * @param {ApiConsoleHaloRunV1alpha1AuthProviderApiEnableAuthProviderRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1AuthProviderApi + */ + public enableAuthProvider(requestParameters: ApiConsoleHaloRunV1alpha1AuthProviderApiEnableAuthProviderRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1AuthProviderApiFp(this.configuration).enableAuthProvider(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Lists all auth providers - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1AuthProviderApi - */ - public listAuthProviders(options?: AxiosRequestConfig) { - return ApiConsoleHaloRunV1alpha1AuthProviderApiFp(this.configuration) - .listAuthProviders(options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Lists all auth providers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1AuthProviderApi + */ + public listAuthProviders(options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1AuthProviderApiFp(this.configuration).listAuthProviders(options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-comment-api.ts b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-comment-api.ts index c4a18cccf..6a121907e 100644 --- a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-comment-api.ts +++ b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-comment-api.ts @@ -5,452 +5,297 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Comment } from "../models"; +import { Comment } from '../models'; // @ts-ignore -import { CommentRequest } from "../models"; +import { CommentRequest } from '../models'; // @ts-ignore -import { ListedCommentList } from "../models"; +import { ListedCommentList } from '../models'; // @ts-ignore -import { Reply } from "../models"; +import { Reply } from '../models'; // @ts-ignore -import { ReplyRequest } from "../models"; +import { ReplyRequest } from '../models'; /** * ApiConsoleHaloRunV1alpha1CommentApi - axios parameter creator * @export */ -export const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create a comment. - * @param {CommentRequest} commentRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createComment: async ( - commentRequest: CommentRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'commentRequest' is not null or undefined - assertParamExists("createComment", "commentRequest", commentRequest); - const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create a comment. + * @param {CommentRequest} commentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createComment: async (commentRequest: CommentRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'commentRequest' is not null or undefined + assertParamExists('createComment', 'commentRequest', commentRequest) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - commentRequest, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Create a reply. - * @param {string} name - * @param {ReplyRequest} replyRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createReply: async ( - name: string, - replyRequest: ReplyRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("createReply", "name", name); - // verify required parameter 'replyRequest' is not null or undefined - assertParamExists("createReply", "replyRequest", replyRequest); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/comments/{name}/reply`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(commentRequest, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Create a reply. + * @param {string} name + * @param {ReplyRequest} replyRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createReply: async (name: string, replyRequest: ReplyRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('createReply', 'name', name) + // verify required parameter 'replyRequest' is not null or undefined + assertParamExists('createReply', 'replyRequest', replyRequest) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments/{name}/reply` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - replyRequest, - localVarRequestOptions, - configuration - ); - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List comments. - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {string} [keyword] Comments filtered by keyword. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {string} [ownerKind] Commenter kind. - * @param {string} [ownerName] Commenter name. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: metadata.creationTimestamp,status.replyCount,status.lastReplyTime - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listComments: async ( - fieldSelector?: Array, - keyword?: string, - labelSelector?: Array, - ownerKind?: string, - ownerName?: string, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + + localVarHeaderParameter['Content-Type'] = 'application/json'; - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(replyRequest, localVarRequestOptions, configuration) - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List comments. + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {string} [keyword] Comments filtered by keyword. + * @param {string} [ownerKind] Commenter kind. + * @param {string} [ownerName] Commenter name. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listComments: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, keyword?: string, ownerKind?: string, ownerName?: string, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (keyword !== undefined) { - localVarQueryParameter["keyword"] = keyword; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (ownerKind !== undefined) { - localVarQueryParameter["ownerKind"] = ownerKind; - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - if (ownerName !== undefined) { - localVarQueryParameter["ownerName"] = ownerName; - } + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (sort) { + localVarQueryParameter['sort'] = sort; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (keyword !== undefined) { + localVarQueryParameter['keyword'] = keyword; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (ownerKind !== undefined) { + localVarQueryParameter['ownerKind'] = ownerKind; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + if (ownerName !== undefined) { + localVarQueryParameter['ownerName'] = ownerName; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ApiConsoleHaloRunV1alpha1CommentApi - functional programming interface * @export */ -export const ApiConsoleHaloRunV1alpha1CommentApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator(configuration); - return { - /** - * Create a comment. - * @param {CommentRequest} commentRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createComment( - commentRequest: CommentRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.createComment( - commentRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Create a reply. - * @param {string} name - * @param {ReplyRequest} replyRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createReply( - name: string, - replyRequest: ReplyRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.createReply( - name, - replyRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List comments. - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {string} [keyword] Comments filtered by keyword. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {string} [ownerKind] Commenter kind. - * @param {string} [ownerName] Commenter name. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: metadata.creationTimestamp,status.replyCount,status.lastReplyTime - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listComments( - fieldSelector?: Array, - keyword?: string, - labelSelector?: Array, - ownerKind?: string, - ownerName?: string, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.listComments( - fieldSelector, - keyword, - labelSelector, - ownerKind, - ownerName, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator(configuration) + return { + /** + * Create a comment. + * @param {CommentRequest} commentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createComment(commentRequest: CommentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createComment(commentRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1CommentApi.createComment']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Create a reply. + * @param {string} name + * @param {ReplyRequest} replyRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createReply(name: string, replyRequest: ReplyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1CommentApi.createReply']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List comments. + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {string} [keyword] Comments filtered by keyword. + * @param {string} [ownerKind] Commenter kind. + * @param {string} [ownerName] Commenter name. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listComments(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, keyword?: string, ownerKind?: string, ownerName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(page, size, labelSelector, fieldSelector, sort, keyword, ownerKind, ownerName, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1CommentApi.listComments']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiConsoleHaloRunV1alpha1CommentApi - factory interface * @export */ -export const ApiConsoleHaloRunV1alpha1CommentApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiConsoleHaloRunV1alpha1CommentApiFp(configuration); - return { - /** - * Create a comment. - * @param {ApiConsoleHaloRunV1alpha1CommentApiCreateCommentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createComment( - requestParameters: ApiConsoleHaloRunV1alpha1CommentApiCreateCommentRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createComment(requestParameters.commentRequest, options) - .then((request) => request(axios, basePath)); - }, - /** - * Create a reply. - * @param {ApiConsoleHaloRunV1alpha1CommentApiCreateReplyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createReply( - requestParameters: ApiConsoleHaloRunV1alpha1CommentApiCreateReplyRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createReply( - requestParameters.name, - requestParameters.replyRequest, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * List comments. - * @param {ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listComments( - requestParameters: ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listComments( - requestParameters.fieldSelector, - requestParameters.keyword, - requestParameters.labelSelector, - requestParameters.ownerKind, - requestParameters.ownerName, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiConsoleHaloRunV1alpha1CommentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiConsoleHaloRunV1alpha1CommentApiFp(configuration) + return { + /** + * Create a comment. + * @param {ApiConsoleHaloRunV1alpha1CommentApiCreateCommentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createComment(requestParameters: ApiConsoleHaloRunV1alpha1CommentApiCreateCommentRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createComment(requestParameters.commentRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Create a reply. + * @param {ApiConsoleHaloRunV1alpha1CommentApiCreateReplyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createReply(requestParameters: ApiConsoleHaloRunV1alpha1CommentApiCreateReplyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(axios, basePath)); + }, + /** + * List comments. + * @param {ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listComments(requestParameters: ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listComments(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, requestParameters.keyword, requestParameters.ownerKind, requestParameters.ownerName, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -459,12 +304,12 @@ export const ApiConsoleHaloRunV1alpha1CommentApiFactory = function ( * @interface ApiConsoleHaloRunV1alpha1CommentApiCreateCommentRequest */ export interface ApiConsoleHaloRunV1alpha1CommentApiCreateCommentRequest { - /** - * - * @type {CommentRequest} - * @memberof ApiConsoleHaloRunV1alpha1CommentApiCreateComment - */ - readonly commentRequest: CommentRequest; + /** + * + * @type {CommentRequest} + * @memberof ApiConsoleHaloRunV1alpha1CommentApiCreateComment + */ + readonly commentRequest: CommentRequest } /** @@ -473,19 +318,19 @@ export interface ApiConsoleHaloRunV1alpha1CommentApiCreateCommentRequest { * @interface ApiConsoleHaloRunV1alpha1CommentApiCreateReplyRequest */ export interface ApiConsoleHaloRunV1alpha1CommentApiCreateReplyRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1CommentApiCreateReply - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1CommentApiCreateReply + */ + readonly name: string - /** - * - * @type {ReplyRequest} - * @memberof ApiConsoleHaloRunV1alpha1CommentApiCreateReply - */ - readonly replyRequest: ReplyRequest; + /** + * + * @type {ReplyRequest} + * @memberof ApiConsoleHaloRunV1alpha1CommentApiCreateReply + */ + readonly replyRequest: ReplyRequest } /** @@ -494,61 +339,61 @@ export interface ApiConsoleHaloRunV1alpha1CommentApiCreateReplyRequest { * @interface ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest */ export interface ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments + */ + readonly page?: number - /** - * Comments filtered by keyword. - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments - */ - readonly keyword?: string; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments + */ + readonly size?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments - */ - readonly labelSelector?: Array; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments + */ + readonly labelSelector?: Array - /** - * Commenter kind. - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments - */ - readonly ownerKind?: string; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments + */ + readonly fieldSelector?: Array - /** - * Commenter name. - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments - */ - readonly ownerName?: string; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments + */ + readonly sort?: Array - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments - */ - readonly page?: number; + /** + * Comments filtered by keyword. + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments + */ + readonly keyword?: string - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments - */ - readonly size?: number; + /** + * Commenter kind. + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments + */ + readonly ownerKind?: string - /** - * Sort property and direction of the list result. Supported fields: metadata.creationTimestamp,status.replyCount,status.lastReplyTime - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments - */ - readonly sort?: Array; + /** + * Commenter name. + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments + */ + readonly ownerName?: string } /** @@ -558,65 +403,37 @@ export interface ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest { * @extends {BaseAPI} */ export class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI { - /** - * Create a comment. - * @param {ApiConsoleHaloRunV1alpha1CommentApiCreateCommentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1CommentApi - */ - public createComment( - requestParameters: ApiConsoleHaloRunV1alpha1CommentApiCreateCommentRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration) - .createComment(requestParameters.commentRequest, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create a comment. + * @param {ApiConsoleHaloRunV1alpha1CommentApiCreateCommentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1CommentApi + */ + public createComment(requestParameters: ApiConsoleHaloRunV1alpha1CommentApiCreateCommentRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createComment(requestParameters.commentRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Create a reply. - * @param {ApiConsoleHaloRunV1alpha1CommentApiCreateReplyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1CommentApi - */ - public createReply( - requestParameters: ApiConsoleHaloRunV1alpha1CommentApiCreateReplyRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration) - .createReply( - requestParameters.name, - requestParameters.replyRequest, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create a reply. + * @param {ApiConsoleHaloRunV1alpha1CommentApiCreateReplyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1CommentApi + */ + public createReply(requestParameters: ApiConsoleHaloRunV1alpha1CommentApiCreateReplyRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List comments. - * @param {ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1CommentApi - */ - public listComments( - requestParameters: ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest = {}, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration) - .listComments( - requestParameters.fieldSelector, - requestParameters.keyword, - requestParameters.labelSelector, - requestParameters.ownerKind, - requestParameters.ownerName, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List comments. + * @param {ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1CommentApi + */ + public listComments(requestParameters: ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest = {}, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, requestParameters.keyword, requestParameters.ownerKind, requestParameters.ownerName, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-indices-api.ts b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-indices-api.ts index 1184156f6..e51cee8fb 100644 --- a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-indices-api.ts +++ b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-indices-api.ts @@ -5,149 +5,105 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; /** * ApiConsoleHaloRunV1alpha1IndicesApi - axios parameter creator * @export */ -export const ApiConsoleHaloRunV1alpha1IndicesApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Build or rebuild post indices for full text search - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - buildPostIndices: async ( - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.console.halo.run/v1alpha1/indices/post`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ApiConsoleHaloRunV1alpha1IndicesApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Build or rebuild post indices for full text search + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + buildPostIndices: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.console.halo.run/v1alpha1/indices/post`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ApiConsoleHaloRunV1alpha1IndicesApi - functional programming interface * @export */ -export const ApiConsoleHaloRunV1alpha1IndicesApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiConsoleHaloRunV1alpha1IndicesApiAxiosParamCreator(configuration); - return { - /** - * Build or rebuild post indices for full text search - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async buildPostIndices( - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.buildPostIndices(options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiConsoleHaloRunV1alpha1IndicesApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1IndicesApiAxiosParamCreator(configuration) + return { + /** + * Build or rebuild post indices for full text search + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async buildPostIndices(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.buildPostIndices(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1IndicesApi.buildPostIndices']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiConsoleHaloRunV1alpha1IndicesApi - factory interface * @export */ -export const ApiConsoleHaloRunV1alpha1IndicesApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiConsoleHaloRunV1alpha1IndicesApiFp(configuration); - return { - /** - * Build or rebuild post indices for full text search - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - buildPostIndices(options?: AxiosRequestConfig): AxiosPromise { - return localVarFp - .buildPostIndices(options) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiConsoleHaloRunV1alpha1IndicesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiConsoleHaloRunV1alpha1IndicesApiFp(configuration) + return { + /** + * Build or rebuild post indices for full text search + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + buildPostIndices(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.buildPostIndices(options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -157,15 +113,14 @@ export const ApiConsoleHaloRunV1alpha1IndicesApiFactory = function ( * @extends {BaseAPI} */ export class ApiConsoleHaloRunV1alpha1IndicesApi extends BaseAPI { - /** - * Build or rebuild post indices for full text search - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1IndicesApi - */ - public buildPostIndices(options?: AxiosRequestConfig) { - return ApiConsoleHaloRunV1alpha1IndicesApiFp(this.configuration) - .buildPostIndices(options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Build or rebuild post indices for full text search + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1IndicesApi + */ + public buildPostIndices(options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1IndicesApiFp(this.configuration).buildPostIndices(options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-notification-api.ts b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-notification-api.ts deleted file mode 100644 index 473445fa1..000000000 --- a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-notification-api.ts +++ /dev/null @@ -1,662 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Halo Next API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; -// Some imports not used depending on template conditions -// @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; -// @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; -// @ts-ignore -import { MarkSpecifiedRequest } from "../models"; -// @ts-ignore -import { Notification } from "../models"; -// @ts-ignore -import { NotificationList } from "../models"; -/** - * ApiConsoleHaloRunV1alpha1NotificationApi - axios parameter creator - * @export - */ -export const ApiConsoleHaloRunV1alpha1NotificationApiAxiosParamCreator = - function (configuration?: Configuration) { - return { - /** - * List notifications for the authenticated user. - * @param {string} username Username - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {string} [keyword] - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {string} [reason] Filter by notification reason - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp - * @param {boolean} [unRead] true for unread, false for read, null for all - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listUserNotifications: async ( - username: string, - fieldSelector?: Array, - keyword?: string, - labelSelector?: Array, - page?: number, - reason?: string, - size?: number, - sort?: Array, - unRead?: boolean, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'username' is not null or undefined - assertParamExists("listUserNotifications", "username", username); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/userspaces/{username}/notifications`.replace( - `{${"username"}}`, - encodeURIComponent(String(username)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } - - if (keyword !== undefined) { - localVarQueryParameter["keyword"] = keyword; - } - - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } - - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } - - if (reason !== undefined) { - localVarQueryParameter["reason"] = reason; - } - - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } - - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } - - if (unRead !== undefined) { - localVarQueryParameter["unRead"] = unRead; - } - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Mark the specified notification as read. - * @param {string} username Username - * @param {string} name Notification name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - markNotificationAsRead: async ( - username: string, - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'username' is not null or undefined - assertParamExists("markNotificationAsRead", "username", username); - // verify required parameter 'name' is not null or undefined - assertParamExists("markNotificationAsRead", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/userspaces/{username}/notifications/{name}/mark-as-read` - .replace(`{${"username"}}`, encodeURIComponent(String(username))) - .replace(`{${"name"}}`, encodeURIComponent(String(name))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Mark the specified notifications as read. - * @param {string} username Username - * @param {MarkSpecifiedRequest} markSpecifiedRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - markNotificationsAsRead: async ( - username: string, - markSpecifiedRequest: MarkSpecifiedRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'username' is not null or undefined - assertParamExists("markNotificationsAsRead", "username", username); - // verify required parameter 'markSpecifiedRequest' is not null or undefined - assertParamExists( - "markNotificationsAsRead", - "markSpecifiedRequest", - markSpecifiedRequest - ); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/userspaces/{username}/notifications/-/mark-specified-as-read`.replace( - `{${"username"}}`, - encodeURIComponent(String(username)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - localVarHeaderParameter["Content-Type"] = "application/json"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - markSpecifiedRequest, - localVarRequestOptions, - configuration - ); - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; - -/** - * ApiConsoleHaloRunV1alpha1NotificationApi - functional programming interface - * @export - */ -export const ApiConsoleHaloRunV1alpha1NotificationApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiConsoleHaloRunV1alpha1NotificationApiAxiosParamCreator(configuration); - return { - /** - * List notifications for the authenticated user. - * @param {string} username Username - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {string} [keyword] - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {string} [reason] Filter by notification reason - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp - * @param {boolean} [unRead] true for unread, false for read, null for all - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listUserNotifications( - username: string, - fieldSelector?: Array, - keyword?: string, - labelSelector?: Array, - page?: number, - reason?: string, - size?: number, - sort?: Array, - unRead?: boolean, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listUserNotifications( - username, - fieldSelector, - keyword, - labelSelector, - page, - reason, - size, - sort, - unRead, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Mark the specified notification as read. - * @param {string} username Username - * @param {string} name Notification name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async markNotificationAsRead( - username: string, - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.markNotificationAsRead( - username, - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Mark the specified notifications as read. - * @param {string} username Username - * @param {MarkSpecifiedRequest} markSpecifiedRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async markNotificationsAsRead( - username: string, - markSpecifiedRequest: MarkSpecifiedRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise> - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.markNotificationsAsRead( - username, - markSpecifiedRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; -}; - -/** - * ApiConsoleHaloRunV1alpha1NotificationApi - factory interface - * @export - */ -export const ApiConsoleHaloRunV1alpha1NotificationApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiConsoleHaloRunV1alpha1NotificationApiFp(configuration); - return { - /** - * List notifications for the authenticated user. - * @param {ApiConsoleHaloRunV1alpha1NotificationApiListUserNotificationsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listUserNotifications( - requestParameters: ApiConsoleHaloRunV1alpha1NotificationApiListUserNotificationsRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listUserNotifications( - requestParameters.username, - requestParameters.fieldSelector, - requestParameters.keyword, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.reason, - requestParameters.size, - requestParameters.sort, - requestParameters.unRead, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Mark the specified notification as read. - * @param {ApiConsoleHaloRunV1alpha1NotificationApiMarkNotificationAsReadRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - markNotificationAsRead( - requestParameters: ApiConsoleHaloRunV1alpha1NotificationApiMarkNotificationAsReadRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .markNotificationAsRead( - requestParameters.username, - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Mark the specified notifications as read. - * @param {ApiConsoleHaloRunV1alpha1NotificationApiMarkNotificationsAsReadRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - markNotificationsAsRead( - requestParameters: ApiConsoleHaloRunV1alpha1NotificationApiMarkNotificationsAsReadRequest, - options?: AxiosRequestConfig - ): AxiosPromise> { - return localVarFp - .markNotificationsAsRead( - requestParameters.username, - requestParameters.markSpecifiedRequest, - options - ) - .then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for listUserNotifications operation in ApiConsoleHaloRunV1alpha1NotificationApi. - * @export - * @interface ApiConsoleHaloRunV1alpha1NotificationApiListUserNotificationsRequest - */ -export interface ApiConsoleHaloRunV1alpha1NotificationApiListUserNotificationsRequest { - /** - * Username - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1NotificationApiListUserNotifications - */ - readonly username: string; - - /** - * Field selector for filtering. - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1NotificationApiListUserNotifications - */ - readonly fieldSelector?: Array; - - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1NotificationApiListUserNotifications - */ - readonly keyword?: string; - - /** - * Label selector for filtering. - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1NotificationApiListUserNotifications - */ - readonly labelSelector?: Array; - - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ApiConsoleHaloRunV1alpha1NotificationApiListUserNotifications - */ - readonly page?: number; - - /** - * Filter by notification reason - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1NotificationApiListUserNotifications - */ - readonly reason?: string; - - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ApiConsoleHaloRunV1alpha1NotificationApiListUserNotifications - */ - readonly size?: number; - - /** - * Sort property and direction of the list result. Supported fields: creationTimestamp - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1NotificationApiListUserNotifications - */ - readonly sort?: Array; - - /** - * true for unread, false for read, null for all - * @type {boolean} - * @memberof ApiConsoleHaloRunV1alpha1NotificationApiListUserNotifications - */ - readonly unRead?: boolean; -} - -/** - * Request parameters for markNotificationAsRead operation in ApiConsoleHaloRunV1alpha1NotificationApi. - * @export - * @interface ApiConsoleHaloRunV1alpha1NotificationApiMarkNotificationAsReadRequest - */ -export interface ApiConsoleHaloRunV1alpha1NotificationApiMarkNotificationAsReadRequest { - /** - * Username - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1NotificationApiMarkNotificationAsRead - */ - readonly username: string; - - /** - * Notification name - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1NotificationApiMarkNotificationAsRead - */ - readonly name: string; -} - -/** - * Request parameters for markNotificationsAsRead operation in ApiConsoleHaloRunV1alpha1NotificationApi. - * @export - * @interface ApiConsoleHaloRunV1alpha1NotificationApiMarkNotificationsAsReadRequest - */ -export interface ApiConsoleHaloRunV1alpha1NotificationApiMarkNotificationsAsReadRequest { - /** - * Username - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1NotificationApiMarkNotificationsAsRead - */ - readonly username: string; - - /** - * - * @type {MarkSpecifiedRequest} - * @memberof ApiConsoleHaloRunV1alpha1NotificationApiMarkNotificationsAsRead - */ - readonly markSpecifiedRequest: MarkSpecifiedRequest; -} - -/** - * ApiConsoleHaloRunV1alpha1NotificationApi - object-oriented interface - * @export - * @class ApiConsoleHaloRunV1alpha1NotificationApi - * @extends {BaseAPI} - */ -export class ApiConsoleHaloRunV1alpha1NotificationApi extends BaseAPI { - /** - * List notifications for the authenticated user. - * @param {ApiConsoleHaloRunV1alpha1NotificationApiListUserNotificationsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1NotificationApi - */ - public listUserNotifications( - requestParameters: ApiConsoleHaloRunV1alpha1NotificationApiListUserNotificationsRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1NotificationApiFp(this.configuration) - .listUserNotifications( - requestParameters.username, - requestParameters.fieldSelector, - requestParameters.keyword, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.reason, - requestParameters.size, - requestParameters.sort, - requestParameters.unRead, - options - ) - .then((request) => request(this.axios, this.basePath)); - } - - /** - * Mark the specified notification as read. - * @param {ApiConsoleHaloRunV1alpha1NotificationApiMarkNotificationAsReadRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1NotificationApi - */ - public markNotificationAsRead( - requestParameters: ApiConsoleHaloRunV1alpha1NotificationApiMarkNotificationAsReadRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1NotificationApiFp(this.configuration) - .markNotificationAsRead( - requestParameters.username, - requestParameters.name, - options - ) - .then((request) => request(this.axios, this.basePath)); - } - - /** - * Mark the specified notifications as read. - * @param {ApiConsoleHaloRunV1alpha1NotificationApiMarkNotificationsAsReadRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1NotificationApi - */ - public markNotificationsAsRead( - requestParameters: ApiConsoleHaloRunV1alpha1NotificationApiMarkNotificationsAsReadRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1NotificationApiFp(this.configuration) - .markNotificationsAsRead( - requestParameters.username, - requestParameters.markSpecifiedRequest, - options - ) - .then((request) => request(this.axios, this.basePath)); - } -} diff --git a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-notifier-api.ts b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-notifier-api.ts index d2f3cb57f..151663ce7 100644 --- a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-notifier-api.ts +++ b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-notifier-api.ts @@ -5,269 +5,180 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; /** * ApiConsoleHaloRunV1alpha1NotifierApi - axios parameter creator * @export */ -export const ApiConsoleHaloRunV1alpha1NotifierApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Fetch sender config of notifier - * @param {string} name Notifier name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchSenderConfig: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("fetchSenderConfig", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/notifiers/{name}/sender-config`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ApiConsoleHaloRunV1alpha1NotifierApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Fetch sender config of notifier + * @param {string} name Notifier name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchSenderConfig: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('fetchSenderConfig', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/notifiers/{name}/sender-config` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Save sender config of notifier - * @param {string} name Notifier name - * @param {object} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - saveSenderConfig: async ( - name: string, - body: object, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("saveSenderConfig", "name", name); - // verify required parameter 'body' is not null or undefined - assertParamExists("saveSenderConfig", "body", body); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/notifiers/{name}/sender-config`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Save sender config of notifier + * @param {string} name Notifier name + * @param {object} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + saveSenderConfig: async (name: string, body: object, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('saveSenderConfig', 'name', name) + // verify required parameter 'body' is not null or undefined + assertParamExists('saveSenderConfig', 'body', body) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/notifiers/{name}/sender-config` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - body, - localVarRequestOptions, - configuration - ); - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ApiConsoleHaloRunV1alpha1NotifierApi - functional programming interface * @export */ -export const ApiConsoleHaloRunV1alpha1NotifierApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiConsoleHaloRunV1alpha1NotifierApiAxiosParamCreator(configuration); - return { - /** - * Fetch sender config of notifier - * @param {string} name Notifier name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async fetchSenderConfig( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.fetchSenderConfig(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Save sender config of notifier - * @param {string} name Notifier name - * @param {object} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async saveSenderConfig( - name: string, - body: object, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.saveSenderConfig(name, body, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiConsoleHaloRunV1alpha1NotifierApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1NotifierApiAxiosParamCreator(configuration) + return { + /** + * Fetch sender config of notifier + * @param {string} name Notifier name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async fetchSenderConfig(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.fetchSenderConfig(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1NotifierApi.fetchSenderConfig']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Save sender config of notifier + * @param {string} name Notifier name + * @param {object} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async saveSenderConfig(name: string, body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.saveSenderConfig(name, body, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1NotifierApi.saveSenderConfig']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiConsoleHaloRunV1alpha1NotifierApi - factory interface * @export */ -export const ApiConsoleHaloRunV1alpha1NotifierApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiConsoleHaloRunV1alpha1NotifierApiFp(configuration); - return { - /** - * Fetch sender config of notifier - * @param {ApiConsoleHaloRunV1alpha1NotifierApiFetchSenderConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchSenderConfig( - requestParameters: ApiConsoleHaloRunV1alpha1NotifierApiFetchSenderConfigRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .fetchSenderConfig(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Save sender config of notifier - * @param {ApiConsoleHaloRunV1alpha1NotifierApiSaveSenderConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - saveSenderConfig( - requestParameters: ApiConsoleHaloRunV1alpha1NotifierApiSaveSenderConfigRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .saveSenderConfig( - requestParameters.name, - requestParameters.body, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiConsoleHaloRunV1alpha1NotifierApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiConsoleHaloRunV1alpha1NotifierApiFp(configuration) + return { + /** + * Fetch sender config of notifier + * @param {ApiConsoleHaloRunV1alpha1NotifierApiFetchSenderConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchSenderConfig(requestParameters: ApiConsoleHaloRunV1alpha1NotifierApiFetchSenderConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.fetchSenderConfig(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Save sender config of notifier + * @param {ApiConsoleHaloRunV1alpha1NotifierApiSaveSenderConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + saveSenderConfig(requestParameters: ApiConsoleHaloRunV1alpha1NotifierApiSaveSenderConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.saveSenderConfig(requestParameters.name, requestParameters.body, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -276,12 +187,12 @@ export const ApiConsoleHaloRunV1alpha1NotifierApiFactory = function ( * @interface ApiConsoleHaloRunV1alpha1NotifierApiFetchSenderConfigRequest */ export interface ApiConsoleHaloRunV1alpha1NotifierApiFetchSenderConfigRequest { - /** - * Notifier name - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1NotifierApiFetchSenderConfig - */ - readonly name: string; + /** + * Notifier name + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1NotifierApiFetchSenderConfig + */ + readonly name: string } /** @@ -290,19 +201,19 @@ export interface ApiConsoleHaloRunV1alpha1NotifierApiFetchSenderConfigRequest { * @interface ApiConsoleHaloRunV1alpha1NotifierApiSaveSenderConfigRequest */ export interface ApiConsoleHaloRunV1alpha1NotifierApiSaveSenderConfigRequest { - /** - * Notifier name - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1NotifierApiSaveSenderConfig - */ - readonly name: string; + /** + * Notifier name + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1NotifierApiSaveSenderConfig + */ + readonly name: string - /** - * - * @type {object} - * @memberof ApiConsoleHaloRunV1alpha1NotifierApiSaveSenderConfig - */ - readonly body: object; + /** + * + * @type {object} + * @memberof ApiConsoleHaloRunV1alpha1NotifierApiSaveSenderConfig + */ + readonly body: object } /** @@ -312,35 +223,26 @@ export interface ApiConsoleHaloRunV1alpha1NotifierApiSaveSenderConfigRequest { * @extends {BaseAPI} */ export class ApiConsoleHaloRunV1alpha1NotifierApi extends BaseAPI { - /** - * Fetch sender config of notifier - * @param {ApiConsoleHaloRunV1alpha1NotifierApiFetchSenderConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1NotifierApi - */ - public fetchSenderConfig( - requestParameters: ApiConsoleHaloRunV1alpha1NotifierApiFetchSenderConfigRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1NotifierApiFp(this.configuration) - .fetchSenderConfig(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Fetch sender config of notifier + * @param {ApiConsoleHaloRunV1alpha1NotifierApiFetchSenderConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1NotifierApi + */ + public fetchSenderConfig(requestParameters: ApiConsoleHaloRunV1alpha1NotifierApiFetchSenderConfigRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1NotifierApiFp(this.configuration).fetchSenderConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Save sender config of notifier - * @param {ApiConsoleHaloRunV1alpha1NotifierApiSaveSenderConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1NotifierApi - */ - public saveSenderConfig( - requestParameters: ApiConsoleHaloRunV1alpha1NotifierApiSaveSenderConfigRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1NotifierApiFp(this.configuration) - .saveSenderConfig(requestParameters.name, requestParameters.body, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Save sender config of notifier + * @param {ApiConsoleHaloRunV1alpha1NotifierApiSaveSenderConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1NotifierApi + */ + public saveSenderConfig(requestParameters: ApiConsoleHaloRunV1alpha1NotifierApiSaveSenderConfigRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1NotifierApiFp(this.configuration).saveSenderConfig(requestParameters.name, requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-plugin-api.ts b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-plugin-api.ts index 12e8463dd..f1df3a180 100644 --- a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-plugin-api.ts +++ b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-plugin-api.ts @@ -5,1512 +5,1012 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { ConfigMap } from "../models"; +import { ConfigMap } from '../models'; // @ts-ignore -import { InstallFromUriRequest } from "../models"; +import { InstallFromUriRequest } from '../models'; // @ts-ignore -import { Plugin } from "../models"; +import { Plugin } from '../models'; // @ts-ignore -import { PluginList } from "../models"; +import { PluginList } from '../models'; // @ts-ignore -import { PluginRunningStateRequest } from "../models"; +import { PluginRunningStateRequest } from '../models'; // @ts-ignore -import { Setting } from "../models"; +import { Setting } from '../models'; // @ts-ignore -import { UpgradeFromUriRequest } from "../models"; +import { UpgradeFromUriRequest } from '../models'; /** * ApiConsoleHaloRunV1alpha1PluginApi - axios parameter creator * @export */ -export const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Change the running state of a plugin by name. - * @param {string} name - * @param {PluginRunningStateRequest} pluginRunningStateRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - changePluginRunningState: async ( - name: string, - pluginRunningStateRequest: PluginRunningStateRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("changePluginRunningState", "name", name); - // verify required parameter 'pluginRunningStateRequest' is not null or undefined - assertParamExists( - "changePluginRunningState", - "pluginRunningStateRequest", - pluginRunningStateRequest - ); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/plugins/{name}/plugin-state`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - localVarHeaderParameter["Content-Type"] = "application/json"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - pluginRunningStateRequest, - localVarRequestOptions, - configuration - ); - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Merge all CSS bundles of enabled plugins into one. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchCssBundle: async ( - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/-/bundle.css`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Merge all JS bundles of enabled plugins into one. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchJsBundle: async ( - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/-/bundle.js`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Fetch configMap of plugin by configured configMapName. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchPluginConfig: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("fetchPluginConfig", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/plugins/{name}/config`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Fetch setting of plugin. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchPluginSetting: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("fetchPluginSetting", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/plugins/{name}/setting`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Install a plugin by uploading a Jar file. - * @param {File} [file] - * @param {string} [presetName] Plugin preset name. We will find the plugin from plugin presets - * @param {string} [source] Install source. Default is file. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - installPlugin: async ( - file?: File, - presetName?: string, - source?: string, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/install`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - const localVarFormParams = new ((configuration && - configuration.formDataCtor) || - FormData)(); - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - if (file !== undefined) { - localVarFormParams.append("file", file as any); - } - - if (presetName !== undefined) { - localVarFormParams.append("presetName", presetName as any); - } - - if (source !== undefined) { - localVarFormParams.append("source", source as any); - } - - localVarHeaderParameter["Content-Type"] = "multipart/form-data"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = localVarFormParams; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Install a plugin from uri. - * @param {InstallFromUriRequest} installFromUriRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - installPluginFromUri: async ( - installFromUriRequest: InstallFromUriRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'installFromUriRequest' is not null or undefined - assertParamExists( - "installPluginFromUri", - "installFromUriRequest", - installFromUriRequest - ); - const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/-/install-from-uri`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - localVarHeaderParameter["Content-Type"] = "application/json"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - installFromUriRequest, - localVarRequestOptions, - configuration - ); - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List all plugin presets in the system. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listPluginPresets: async ( - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugin-presets`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List plugins using query criteria and sort params - * @param {boolean} [enabled] Whether the plugin is enabled - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {string} [keyword] Keyword of plugin name or description - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listPlugins: async ( - enabled?: boolean, - fieldSelector?: Array, - keyword?: string, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - if (enabled !== undefined) { - localVarQueryParameter["enabled"] = enabled; - } - - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } - - if (keyword !== undefined) { - localVarQueryParameter["keyword"] = keyword; - } - - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } - - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } - - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } - - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Reload a plugin by name. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - reloadPlugin: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("reloadPlugin", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/plugins/{name}/reload`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Reset the configMap of plugin setting. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - resetPluginConfig: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("resetPluginConfig", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/plugins/{name}/reset-config`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update the configMap of plugin setting. - * @param {string} name - * @param {ConfigMap} configMap - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatePluginConfig: async ( - name: string, - configMap: ConfigMap, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatePluginConfig", "name", name); - // verify required parameter 'configMap' is not null or undefined - assertParamExists("updatePluginConfig", "configMap", configMap); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/plugins/{name}/config`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - localVarHeaderParameter["Content-Type"] = "application/json"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - configMap, - localVarRequestOptions, - configuration - ); - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Upgrade a plugin by uploading a Jar file - * @param {string} name - * @param {File} [file] - * @param {string} [presetName] Plugin preset name. We will find the plugin from plugin presets - * @param {string} [source] Install source. Default is file. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - upgradePlugin: async ( - name: string, - file?: File, - presetName?: string, - source?: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("upgradePlugin", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/plugins/{name}/upgrade`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - const localVarFormParams = new ((configuration && - configuration.formDataCtor) || - FormData)(); - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - if (file !== undefined) { - localVarFormParams.append("file", file as any); - } - - if (presetName !== undefined) { - localVarFormParams.append("presetName", presetName as any); - } - - if (source !== undefined) { - localVarFormParams.append("source", source as any); - } - - localVarHeaderParameter["Content-Type"] = "multipart/form-data"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = localVarFormParams; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Upgrade a plugin from uri. - * @param {string} name - * @param {UpgradeFromUriRequest} upgradeFromUriRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - upgradePluginFromUri: async ( - name: string, - upgradeFromUriRequest: UpgradeFromUriRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("upgradePluginFromUri", "name", name); - // verify required parameter 'upgradeFromUriRequest' is not null or undefined - assertParamExists( - "upgradePluginFromUri", - "upgradeFromUriRequest", - upgradeFromUriRequest - ); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/plugins/{name}/upgrade-from-uri`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - localVarHeaderParameter["Content-Type"] = "application/json"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - upgradeFromUriRequest, - localVarRequestOptions, - configuration - ); - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; +export const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Change the running state of a plugin by name. + * @param {string} name + * @param {PluginRunningStateRequest} pluginRunningStateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + changePluginRunningState: async (name: string, pluginRunningStateRequest: PluginRunningStateRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('changePluginRunningState', 'name', name) + // verify required parameter 'pluginRunningStateRequest' is not null or undefined + assertParamExists('changePluginRunningState', 'pluginRunningStateRequest', pluginRunningStateRequest) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/{name}/plugin-state` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(pluginRunningStateRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Merge all CSS bundles of enabled plugins into one. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchCssBundle: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/-/bundle.css`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Merge all JS bundles of enabled plugins into one. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchJsBundle: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/-/bundle.js`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Fetch configMap of plugin by configured configMapName. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchPluginConfig: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('fetchPluginConfig', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/{name}/config` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Fetch setting of plugin. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchPluginSetting: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('fetchPluginSetting', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/{name}/setting` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Install a plugin by uploading a Jar file. + * @param {File} [file] + * @param {string} [presetName] Plugin preset name. We will find the plugin from plugin presets + * @param {InstallPluginSourceEnum} [source] Install source. Default is file. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + installPlugin: async (file?: File, presetName?: string, source?: InstallPluginSourceEnum, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/install`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + if (file !== undefined) { + localVarFormParams.append('file', file as any); + } + + if (presetName !== undefined) { + localVarFormParams.append('presetName', presetName as any); + } + + if (source !== undefined) { + localVarFormParams.append('source', source as any); + } + + + localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = localVarFormParams; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Install a plugin from uri. + * @param {InstallFromUriRequest} installFromUriRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + installPluginFromUri: async (installFromUriRequest: InstallFromUriRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'installFromUriRequest' is not null or undefined + assertParamExists('installPluginFromUri', 'installFromUriRequest', installFromUriRequest) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/-/install-from-uri`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(installFromUriRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List all plugin presets in the system. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPluginPresets: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugin-presets`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List plugins using query criteria and sort params + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {string} [keyword] Keyword of plugin name or description + * @param {boolean} [enabled] Whether the plugin is enabled + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPlugins: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, keyword?: string, enabled?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } + + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } + + if (sort) { + localVarQueryParameter['sort'] = sort; + } + + if (keyword !== undefined) { + localVarQueryParameter['keyword'] = keyword; + } + + if (enabled !== undefined) { + localVarQueryParameter['enabled'] = enabled; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Reload a plugin by name. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + reloadPlugin: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('reloadPlugin', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/{name}/reload` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Reset the configMap of plugin setting. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetPluginConfig: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('resetPluginConfig', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/{name}/reset-config` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update the configMap of plugin setting. + * @param {string} name + * @param {ConfigMap} configMap + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatePluginConfig: async (name: string, configMap: ConfigMap, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatePluginConfig', 'name', name) + // verify required parameter 'configMap' is not null or undefined + assertParamExists('updatePluginConfig', 'configMap', configMap) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/{name}/config` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(configMap, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Upgrade a plugin by uploading a Jar file + * @param {string} name + * @param {File} [file] + * @param {string} [presetName] Plugin preset name. We will find the plugin from plugin presets + * @param {UpgradePluginSourceEnum} [source] Install source. Default is file. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + upgradePlugin: async (name: string, file?: File, presetName?: string, source?: UpgradePluginSourceEnum, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('upgradePlugin', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/{name}/upgrade` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + if (file !== undefined) { + localVarFormParams.append('file', file as any); + } + + if (presetName !== undefined) { + localVarFormParams.append('presetName', presetName as any); + } + + if (source !== undefined) { + localVarFormParams.append('source', source as any); + } + + + localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = localVarFormParams; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Upgrade a plugin from uri. + * @param {string} name + * @param {UpgradeFromUriRequest} upgradeFromUriRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + upgradePluginFromUri: async (name: string, upgradeFromUriRequest: UpgradeFromUriRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('upgradePluginFromUri', 'name', name) + // verify required parameter 'upgradeFromUriRequest' is not null or undefined + assertParamExists('upgradePluginFromUri', 'upgradeFromUriRequest', upgradeFromUriRequest) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/{name}/upgrade-from-uri` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(upgradeFromUriRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ApiConsoleHaloRunV1alpha1PluginApi - functional programming interface * @export */ -export const ApiConsoleHaloRunV1alpha1PluginApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator(configuration); - return { - /** - * Change the running state of a plugin by name. - * @param {string} name - * @param {PluginRunningStateRequest} pluginRunningStateRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async changePluginRunningState( - name: string, - pluginRunningStateRequest: PluginRunningStateRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.changePluginRunningState( - name, - pluginRunningStateRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Merge all CSS bundles of enabled plugins into one. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async fetchCssBundle( - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.fetchCssBundle( - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Merge all JS bundles of enabled plugins into one. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async fetchJsBundle( - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.fetchJsBundle( - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Fetch configMap of plugin by configured configMapName. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async fetchPluginConfig( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.fetchPluginConfig(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Fetch setting of plugin. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async fetchPluginSetting( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.fetchPluginSetting(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Install a plugin by uploading a Jar file. - * @param {File} [file] - * @param {string} [presetName] Plugin preset name. We will find the plugin from plugin presets - * @param {string} [source] Install source. Default is file. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async installPlugin( - file?: File, - presetName?: string, - source?: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin( - file, - presetName, - source, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Install a plugin from uri. - * @param {InstallFromUriRequest} installFromUriRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async installPluginFromUri( - installFromUriRequest: InstallFromUriRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.installPluginFromUri( - installFromUriRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List all plugin presets in the system. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listPluginPresets( - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise> - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listPluginPresets(options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List plugins using query criteria and sort params - * @param {boolean} [enabled] Whether the plugin is enabled - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {string} [keyword] Keyword of plugin name or description - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listPlugins( - enabled?: boolean, - fieldSelector?: Array, - keyword?: string, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins( - enabled, - fieldSelector, - keyword, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Reload a plugin by name. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async reloadPlugin( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.reloadPlugin( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Reset the configMap of plugin setting. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async resetPluginConfig( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.resetPluginConfig(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update the configMap of plugin setting. - * @param {string} name - * @param {ConfigMap} configMap - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatePluginConfig( - name: string, - configMap: ConfigMap, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatePluginConfig( - name, - configMap, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Upgrade a plugin by uploading a Jar file - * @param {string} name - * @param {File} [file] - * @param {string} [presetName] Plugin preset name. We will find the plugin from plugin presets - * @param {string} [source] Install source. Default is file. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async upgradePlugin( - name: string, - file?: File, - presetName?: string, - source?: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.upgradePlugin( - name, - file, - presetName, - source, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Upgrade a plugin from uri. - * @param {string} name - * @param {UpgradeFromUriRequest} upgradeFromUriRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async upgradePluginFromUri( - name: string, - upgradeFromUriRequest: UpgradeFromUriRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.upgradePluginFromUri( - name, - upgradeFromUriRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator(configuration) + return { + /** + * Change the running state of a plugin by name. + * @param {string} name + * @param {PluginRunningStateRequest} pluginRunningStateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async changePluginRunningState(name: string, pluginRunningStateRequest: PluginRunningStateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.changePluginRunningState(name, pluginRunningStateRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PluginApi.changePluginRunningState']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Merge all CSS bundles of enabled plugins into one. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async fetchCssBundle(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.fetchCssBundle(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PluginApi.fetchCssBundle']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Merge all JS bundles of enabled plugins into one. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async fetchJsBundle(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.fetchJsBundle(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PluginApi.fetchJsBundle']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Fetch configMap of plugin by configured configMapName. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async fetchPluginConfig(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.fetchPluginConfig(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PluginApi.fetchPluginConfig']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Fetch setting of plugin. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async fetchPluginSetting(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.fetchPluginSetting(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PluginApi.fetchPluginSetting']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Install a plugin by uploading a Jar file. + * @param {File} [file] + * @param {string} [presetName] Plugin preset name. We will find the plugin from plugin presets + * @param {InstallPluginSourceEnum} [source] Install source. Default is file. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async installPlugin(file?: File, presetName?: string, source?: InstallPluginSourceEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, presetName, source, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PluginApi.installPlugin']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Install a plugin from uri. + * @param {InstallFromUriRequest} installFromUriRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async installPluginFromUri(installFromUriRequest: InstallFromUriRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.installPluginFromUri(installFromUriRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PluginApi.installPluginFromUri']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List all plugin presets in the system. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listPluginPresets(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listPluginPresets(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PluginApi.listPluginPresets']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List plugins using query criteria and sort params + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {string} [keyword] Keyword of plugin name or description + * @param {boolean} [enabled] Whether the plugin is enabled + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listPlugins(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, keyword?: string, enabled?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(page, size, labelSelector, fieldSelector, sort, keyword, enabled, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PluginApi.listPlugins']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Reload a plugin by name. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async reloadPlugin(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.reloadPlugin(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PluginApi.reloadPlugin']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Reset the configMap of plugin setting. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async resetPluginConfig(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.resetPluginConfig(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PluginApi.resetPluginConfig']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update the configMap of plugin setting. + * @param {string} name + * @param {ConfigMap} configMap + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatePluginConfig(name: string, configMap: ConfigMap, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatePluginConfig(name, configMap, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PluginApi.updatePluginConfig']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Upgrade a plugin by uploading a Jar file + * @param {string} name + * @param {File} [file] + * @param {string} [presetName] Plugin preset name. We will find the plugin from plugin presets + * @param {UpgradePluginSourceEnum} [source] Install source. Default is file. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async upgradePlugin(name: string, file?: File, presetName?: string, source?: UpgradePluginSourceEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.upgradePlugin(name, file, presetName, source, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PluginApi.upgradePlugin']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Upgrade a plugin from uri. + * @param {string} name + * @param {UpgradeFromUriRequest} upgradeFromUriRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async upgradePluginFromUri(name: string, upgradeFromUriRequest: UpgradeFromUriRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.upgradePluginFromUri(name, upgradeFromUriRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PluginApi.upgradePluginFromUri']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiConsoleHaloRunV1alpha1PluginApi - factory interface * @export */ -export const ApiConsoleHaloRunV1alpha1PluginApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiConsoleHaloRunV1alpha1PluginApiFp(configuration); - return { - /** - * Change the running state of a plugin by name. - * @param {ApiConsoleHaloRunV1alpha1PluginApiChangePluginRunningStateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - changePluginRunningState( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiChangePluginRunningStateRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .changePluginRunningState( - requestParameters.name, - requestParameters.pluginRunningStateRequest, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Merge all CSS bundles of enabled plugins into one. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchCssBundle(options?: AxiosRequestConfig): AxiosPromise { - return localVarFp - .fetchCssBundle(options) - .then((request) => request(axios, basePath)); - }, - /** - * Merge all JS bundles of enabled plugins into one. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchJsBundle(options?: AxiosRequestConfig): AxiosPromise { - return localVarFp - .fetchJsBundle(options) - .then((request) => request(axios, basePath)); - }, - /** - * Fetch configMap of plugin by configured configMapName. - * @param {ApiConsoleHaloRunV1alpha1PluginApiFetchPluginConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchPluginConfig( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiFetchPluginConfigRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .fetchPluginConfig(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Fetch setting of plugin. - * @param {ApiConsoleHaloRunV1alpha1PluginApiFetchPluginSettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchPluginSetting( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiFetchPluginSettingRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .fetchPluginSetting(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Install a plugin by uploading a Jar file. - * @param {ApiConsoleHaloRunV1alpha1PluginApiInstallPluginRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - installPlugin( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiInstallPluginRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .installPlugin( - requestParameters.file, - requestParameters.presetName, - requestParameters.source, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Install a plugin from uri. - * @param {ApiConsoleHaloRunV1alpha1PluginApiInstallPluginFromUriRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - installPluginFromUri( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiInstallPluginFromUriRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .installPluginFromUri(requestParameters.installFromUriRequest, options) - .then((request) => request(axios, basePath)); - }, - /** - * List all plugin presets in the system. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listPluginPresets( - options?: AxiosRequestConfig - ): AxiosPromise> { - return localVarFp - .listPluginPresets(options) - .then((request) => request(axios, basePath)); - }, - /** - * List plugins using query criteria and sort params - * @param {ApiConsoleHaloRunV1alpha1PluginApiListPluginsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listPlugins( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiListPluginsRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listPlugins( - requestParameters.enabled, - requestParameters.fieldSelector, - requestParameters.keyword, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Reload a plugin by name. - * @param {ApiConsoleHaloRunV1alpha1PluginApiReloadPluginRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - reloadPlugin( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiReloadPluginRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .reloadPlugin(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Reset the configMap of plugin setting. - * @param {ApiConsoleHaloRunV1alpha1PluginApiResetPluginConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - resetPluginConfig( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiResetPluginConfigRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .resetPluginConfig(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Update the configMap of plugin setting. - * @param {ApiConsoleHaloRunV1alpha1PluginApiUpdatePluginConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatePluginConfig( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiUpdatePluginConfigRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatePluginConfig( - requestParameters.name, - requestParameters.configMap, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Upgrade a plugin by uploading a Jar file - * @param {ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - upgradePlugin( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .upgradePlugin( - requestParameters.name, - requestParameters.file, - requestParameters.presetName, - requestParameters.source, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Upgrade a plugin from uri. - * @param {ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginFromUriRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - upgradePluginFromUri( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginFromUriRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .upgradePluginFromUri( - requestParameters.name, - requestParameters.upgradeFromUriRequest, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiConsoleHaloRunV1alpha1PluginApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiConsoleHaloRunV1alpha1PluginApiFp(configuration) + return { + /** + * Change the running state of a plugin by name. + * @param {ApiConsoleHaloRunV1alpha1PluginApiChangePluginRunningStateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + changePluginRunningState(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiChangePluginRunningStateRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.changePluginRunningState(requestParameters.name, requestParameters.pluginRunningStateRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Merge all CSS bundles of enabled plugins into one. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchCssBundle(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.fetchCssBundle(options).then((request) => request(axios, basePath)); + }, + /** + * Merge all JS bundles of enabled plugins into one. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchJsBundle(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.fetchJsBundle(options).then((request) => request(axios, basePath)); + }, + /** + * Fetch configMap of plugin by configured configMapName. + * @param {ApiConsoleHaloRunV1alpha1PluginApiFetchPluginConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchPluginConfig(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiFetchPluginConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.fetchPluginConfig(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Fetch setting of plugin. + * @param {ApiConsoleHaloRunV1alpha1PluginApiFetchPluginSettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchPluginSetting(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiFetchPluginSettingRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.fetchPluginSetting(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Install a plugin by uploading a Jar file. + * @param {ApiConsoleHaloRunV1alpha1PluginApiInstallPluginRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + installPlugin(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiInstallPluginRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.installPlugin(requestParameters.file, requestParameters.presetName, requestParameters.source, options).then((request) => request(axios, basePath)); + }, + /** + * Install a plugin from uri. + * @param {ApiConsoleHaloRunV1alpha1PluginApiInstallPluginFromUriRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + installPluginFromUri(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiInstallPluginFromUriRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.installPluginFromUri(requestParameters.installFromUriRequest, options).then((request) => request(axios, basePath)); + }, + /** + * List all plugin presets in the system. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPluginPresets(options?: RawAxiosRequestConfig): AxiosPromise> { + return localVarFp.listPluginPresets(options).then((request) => request(axios, basePath)); + }, + /** + * List plugins using query criteria and sort params + * @param {ApiConsoleHaloRunV1alpha1PluginApiListPluginsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPlugins(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiListPluginsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listPlugins(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, requestParameters.keyword, requestParameters.enabled, options).then((request) => request(axios, basePath)); + }, + /** + * Reload a plugin by name. + * @param {ApiConsoleHaloRunV1alpha1PluginApiReloadPluginRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + reloadPlugin(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiReloadPluginRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.reloadPlugin(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Reset the configMap of plugin setting. + * @param {ApiConsoleHaloRunV1alpha1PluginApiResetPluginConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetPluginConfig(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiResetPluginConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.resetPluginConfig(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Update the configMap of plugin setting. + * @param {ApiConsoleHaloRunV1alpha1PluginApiUpdatePluginConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatePluginConfig(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiUpdatePluginConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatePluginConfig(requestParameters.name, requestParameters.configMap, options).then((request) => request(axios, basePath)); + }, + /** + * Upgrade a plugin by uploading a Jar file + * @param {ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + upgradePlugin(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.upgradePlugin(requestParameters.name, requestParameters.file, requestParameters.presetName, requestParameters.source, options).then((request) => request(axios, basePath)); + }, + /** + * Upgrade a plugin from uri. + * @param {ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginFromUriRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + upgradePluginFromUri(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginFromUriRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.upgradePluginFromUri(requestParameters.name, requestParameters.upgradeFromUriRequest, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -1519,19 +1019,19 @@ export const ApiConsoleHaloRunV1alpha1PluginApiFactory = function ( * @interface ApiConsoleHaloRunV1alpha1PluginApiChangePluginRunningStateRequest */ export interface ApiConsoleHaloRunV1alpha1PluginApiChangePluginRunningStateRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiChangePluginRunningState - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiChangePluginRunningState + */ + readonly name: string - /** - * - * @type {PluginRunningStateRequest} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiChangePluginRunningState - */ - readonly pluginRunningStateRequest: PluginRunningStateRequest; + /** + * + * @type {PluginRunningStateRequest} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiChangePluginRunningState + */ + readonly pluginRunningStateRequest: PluginRunningStateRequest } /** @@ -1540,12 +1040,12 @@ export interface ApiConsoleHaloRunV1alpha1PluginApiChangePluginRunningStateReque * @interface ApiConsoleHaloRunV1alpha1PluginApiFetchPluginConfigRequest */ export interface ApiConsoleHaloRunV1alpha1PluginApiFetchPluginConfigRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiFetchPluginConfig - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiFetchPluginConfig + */ + readonly name: string } /** @@ -1554,12 +1054,12 @@ export interface ApiConsoleHaloRunV1alpha1PluginApiFetchPluginConfigRequest { * @interface ApiConsoleHaloRunV1alpha1PluginApiFetchPluginSettingRequest */ export interface ApiConsoleHaloRunV1alpha1PluginApiFetchPluginSettingRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiFetchPluginSetting - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiFetchPluginSetting + */ + readonly name: string } /** @@ -1568,26 +1068,26 @@ export interface ApiConsoleHaloRunV1alpha1PluginApiFetchPluginSettingRequest { * @interface ApiConsoleHaloRunV1alpha1PluginApiInstallPluginRequest */ export interface ApiConsoleHaloRunV1alpha1PluginApiInstallPluginRequest { - /** - * - * @type {File} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiInstallPlugin - */ - readonly file?: File; + /** + * + * @type {File} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiInstallPlugin + */ + readonly file?: File - /** - * Plugin preset name. We will find the plugin from plugin presets - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiInstallPlugin - */ - readonly presetName?: string; + /** + * Plugin preset name. We will find the plugin from plugin presets + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiInstallPlugin + */ + readonly presetName?: string - /** - * Install source. Default is file. - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiInstallPlugin - */ - readonly source?: string; + /** + * Install source. Default is file. + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiInstallPlugin + */ + readonly source?: InstallPluginSourceEnum } /** @@ -1596,12 +1096,12 @@ export interface ApiConsoleHaloRunV1alpha1PluginApiInstallPluginRequest { * @interface ApiConsoleHaloRunV1alpha1PluginApiInstallPluginFromUriRequest */ export interface ApiConsoleHaloRunV1alpha1PluginApiInstallPluginFromUriRequest { - /** - * - * @type {InstallFromUriRequest} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiInstallPluginFromUri - */ - readonly installFromUriRequest: InstallFromUriRequest; + /** + * + * @type {InstallFromUriRequest} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiInstallPluginFromUri + */ + readonly installFromUriRequest: InstallFromUriRequest } /** @@ -1610,54 +1110,54 @@ export interface ApiConsoleHaloRunV1alpha1PluginApiInstallPluginFromUriRequest { * @interface ApiConsoleHaloRunV1alpha1PluginApiListPluginsRequest */ export interface ApiConsoleHaloRunV1alpha1PluginApiListPluginsRequest { - /** - * Whether the plugin is enabled - * @type {boolean} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins - */ - readonly enabled?: boolean; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins + */ + readonly page?: number - /** - * Field selector for filtering. - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins - */ - readonly fieldSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins + */ + readonly size?: number - /** - * Keyword of plugin name or description - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins - */ - readonly keyword?: string; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins + */ + readonly labelSelector?: Array - /** - * Label selector for filtering. - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins - */ - readonly labelSelector?: Array; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins + */ + readonly fieldSelector?: Array - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins - */ - readonly page?: number; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins + */ + readonly sort?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins - */ - readonly size?: number; + /** + * Keyword of plugin name or description + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins + */ + readonly keyword?: string - /** - * Sort property and direction of the list result. Supported fields: creationTimestamp - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins - */ - readonly sort?: Array; + /** + * Whether the plugin is enabled + * @type {boolean} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins + */ + readonly enabled?: boolean } /** @@ -1666,12 +1166,12 @@ export interface ApiConsoleHaloRunV1alpha1PluginApiListPluginsRequest { * @interface ApiConsoleHaloRunV1alpha1PluginApiReloadPluginRequest */ export interface ApiConsoleHaloRunV1alpha1PluginApiReloadPluginRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiReloadPlugin - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiReloadPlugin + */ + readonly name: string } /** @@ -1680,12 +1180,12 @@ export interface ApiConsoleHaloRunV1alpha1PluginApiReloadPluginRequest { * @interface ApiConsoleHaloRunV1alpha1PluginApiResetPluginConfigRequest */ export interface ApiConsoleHaloRunV1alpha1PluginApiResetPluginConfigRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiResetPluginConfig - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiResetPluginConfig + */ + readonly name: string } /** @@ -1694,19 +1194,19 @@ export interface ApiConsoleHaloRunV1alpha1PluginApiResetPluginConfigRequest { * @interface ApiConsoleHaloRunV1alpha1PluginApiUpdatePluginConfigRequest */ export interface ApiConsoleHaloRunV1alpha1PluginApiUpdatePluginConfigRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiUpdatePluginConfig - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiUpdatePluginConfig + */ + readonly name: string - /** - * - * @type {ConfigMap} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiUpdatePluginConfig - */ - readonly configMap: ConfigMap; + /** + * + * @type {ConfigMap} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiUpdatePluginConfig + */ + readonly configMap: ConfigMap } /** @@ -1715,33 +1215,33 @@ export interface ApiConsoleHaloRunV1alpha1PluginApiUpdatePluginConfigRequest { * @interface ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginRequest */ export interface ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiUpgradePlugin - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiUpgradePlugin + */ + readonly name: string - /** - * - * @type {File} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiUpgradePlugin - */ - readonly file?: File; + /** + * + * @type {File} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiUpgradePlugin + */ + readonly file?: File - /** - * Plugin preset name. We will find the plugin from plugin presets - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiUpgradePlugin - */ - readonly presetName?: string; + /** + * Plugin preset name. We will find the plugin from plugin presets + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiUpgradePlugin + */ + readonly presetName?: string - /** - * Install source. Default is file. - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiUpgradePlugin - */ - readonly source?: string; + /** + * Install source. Default is file. + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiUpgradePlugin + */ + readonly source?: UpgradePluginSourceEnum } /** @@ -1750,19 +1250,19 @@ export interface ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginRequest { * @interface ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginFromUriRequest */ export interface ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginFromUriRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginFromUri - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginFromUri + */ + readonly name: string - /** - * - * @type {UpgradeFromUriRequest} - * @memberof ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginFromUri - */ - readonly upgradeFromUriRequest: UpgradeFromUriRequest; + /** + * + * @type {UpgradeFromUriRequest} + * @memberof ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginFromUri + */ + readonly upgradeFromUriRequest: UpgradeFromUriRequest } /** @@ -1772,247 +1272,173 @@ export interface ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginFromUriRequest { * @extends {BaseAPI} */ export class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI { - /** - * Change the running state of a plugin by name. - * @param {ApiConsoleHaloRunV1alpha1PluginApiChangePluginRunningStateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PluginApi - */ - public changePluginRunningState( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiChangePluginRunningStateRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration) - .changePluginRunningState( - requestParameters.name, - requestParameters.pluginRunningStateRequest, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Change the running state of a plugin by name. + * @param {ApiConsoleHaloRunV1alpha1PluginApiChangePluginRunningStateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PluginApi + */ + public changePluginRunningState(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiChangePluginRunningStateRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).changePluginRunningState(requestParameters.name, requestParameters.pluginRunningStateRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Merge all CSS bundles of enabled plugins into one. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PluginApi - */ - public fetchCssBundle(options?: AxiosRequestConfig) { - return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration) - .fetchCssBundle(options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Merge all CSS bundles of enabled plugins into one. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PluginApi + */ + public fetchCssBundle(options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).fetchCssBundle(options).then((request) => request(this.axios, this.basePath)); + } - /** - * Merge all JS bundles of enabled plugins into one. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PluginApi - */ - public fetchJsBundle(options?: AxiosRequestConfig) { - return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration) - .fetchJsBundle(options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Merge all JS bundles of enabled plugins into one. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PluginApi + */ + public fetchJsBundle(options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).fetchJsBundle(options).then((request) => request(this.axios, this.basePath)); + } - /** - * Fetch configMap of plugin by configured configMapName. - * @param {ApiConsoleHaloRunV1alpha1PluginApiFetchPluginConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PluginApi - */ - public fetchPluginConfig( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiFetchPluginConfigRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration) - .fetchPluginConfig(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Fetch configMap of plugin by configured configMapName. + * @param {ApiConsoleHaloRunV1alpha1PluginApiFetchPluginConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PluginApi + */ + public fetchPluginConfig(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiFetchPluginConfigRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).fetchPluginConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Fetch setting of plugin. - * @param {ApiConsoleHaloRunV1alpha1PluginApiFetchPluginSettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PluginApi - */ - public fetchPluginSetting( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiFetchPluginSettingRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration) - .fetchPluginSetting(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Fetch setting of plugin. + * @param {ApiConsoleHaloRunV1alpha1PluginApiFetchPluginSettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PluginApi + */ + public fetchPluginSetting(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiFetchPluginSettingRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).fetchPluginSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Install a plugin by uploading a Jar file. - * @param {ApiConsoleHaloRunV1alpha1PluginApiInstallPluginRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PluginApi - */ - public installPlugin( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiInstallPluginRequest = {}, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration) - .installPlugin( - requestParameters.file, - requestParameters.presetName, - requestParameters.source, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Install a plugin by uploading a Jar file. + * @param {ApiConsoleHaloRunV1alpha1PluginApiInstallPluginRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PluginApi + */ + public installPlugin(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiInstallPluginRequest = {}, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, requestParameters.presetName, requestParameters.source, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Install a plugin from uri. - * @param {ApiConsoleHaloRunV1alpha1PluginApiInstallPluginFromUriRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PluginApi - */ - public installPluginFromUri( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiInstallPluginFromUriRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration) - .installPluginFromUri(requestParameters.installFromUriRequest, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Install a plugin from uri. + * @param {ApiConsoleHaloRunV1alpha1PluginApiInstallPluginFromUriRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PluginApi + */ + public installPluginFromUri(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiInstallPluginFromUriRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPluginFromUri(requestParameters.installFromUriRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List all plugin presets in the system. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PluginApi - */ - public listPluginPresets(options?: AxiosRequestConfig) { - return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration) - .listPluginPresets(options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List all plugin presets in the system. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PluginApi + */ + public listPluginPresets(options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPluginPresets(options).then((request) => request(this.axios, this.basePath)); + } - /** - * List plugins using query criteria and sort params - * @param {ApiConsoleHaloRunV1alpha1PluginApiListPluginsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PluginApi - */ - public listPlugins( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiListPluginsRequest = {}, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration) - .listPlugins( - requestParameters.enabled, - requestParameters.fieldSelector, - requestParameters.keyword, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List plugins using query criteria and sort params + * @param {ApiConsoleHaloRunV1alpha1PluginApiListPluginsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PluginApi + */ + public listPlugins(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiListPluginsRequest = {}, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, requestParameters.keyword, requestParameters.enabled, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Reload a plugin by name. - * @param {ApiConsoleHaloRunV1alpha1PluginApiReloadPluginRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PluginApi - */ - public reloadPlugin( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiReloadPluginRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration) - .reloadPlugin(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Reload a plugin by name. + * @param {ApiConsoleHaloRunV1alpha1PluginApiReloadPluginRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PluginApi + */ + public reloadPlugin(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiReloadPluginRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).reloadPlugin(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Reset the configMap of plugin setting. - * @param {ApiConsoleHaloRunV1alpha1PluginApiResetPluginConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PluginApi - */ - public resetPluginConfig( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiResetPluginConfigRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration) - .resetPluginConfig(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Reset the configMap of plugin setting. + * @param {ApiConsoleHaloRunV1alpha1PluginApiResetPluginConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PluginApi + */ + public resetPluginConfig(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiResetPluginConfigRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).resetPluginConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update the configMap of plugin setting. - * @param {ApiConsoleHaloRunV1alpha1PluginApiUpdatePluginConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PluginApi - */ - public updatePluginConfig( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiUpdatePluginConfigRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration) - .updatePluginConfig( - requestParameters.name, - requestParameters.configMap, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update the configMap of plugin setting. + * @param {ApiConsoleHaloRunV1alpha1PluginApiUpdatePluginConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PluginApi + */ + public updatePluginConfig(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiUpdatePluginConfigRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).updatePluginConfig(requestParameters.name, requestParameters.configMap, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Upgrade a plugin by uploading a Jar file - * @param {ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PluginApi - */ - public upgradePlugin( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration) - .upgradePlugin( - requestParameters.name, - requestParameters.file, - requestParameters.presetName, - requestParameters.source, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Upgrade a plugin by uploading a Jar file + * @param {ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PluginApi + */ + public upgradePlugin(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, requestParameters.presetName, requestParameters.source, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Upgrade a plugin from uri. - * @param {ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginFromUriRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PluginApi - */ - public upgradePluginFromUri( - requestParameters: ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginFromUriRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration) - .upgradePluginFromUri( - requestParameters.name, - requestParameters.upgradeFromUriRequest, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Upgrade a plugin from uri. + * @param {ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginFromUriRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PluginApi + */ + public upgradePluginFromUri(requestParameters: ApiConsoleHaloRunV1alpha1PluginApiUpgradePluginFromUriRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePluginFromUri(requestParameters.name, requestParameters.upgradeFromUriRequest, options).then((request) => request(this.axios, this.basePath)); + } } + +/** + * @export + */ +export const InstallPluginSourceEnum = { + File: 'FILE', + Preset: 'PRESET', + Url: 'URL' +} as const; +export type InstallPluginSourceEnum = typeof InstallPluginSourceEnum[keyof typeof InstallPluginSourceEnum]; +/** + * @export + */ +export const UpgradePluginSourceEnum = { + File: 'FILE', + Preset: 'PRESET', + Url: 'URL' +} as const; +export type UpgradePluginSourceEnum = typeof UpgradePluginSourceEnum[keyof typeof UpgradePluginSourceEnum]; diff --git a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-post-api.ts b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-post-api.ts index 963741537..b3572eeca 100644 --- a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-post-api.ts +++ b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-post-api.ts @@ -5,1013 +5,676 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Content } from "../models"; +import { Content } from '../models'; // @ts-ignore -import { ContentWrapper } from "../models"; +import { ContentWrapper } from '../models'; // @ts-ignore -import { ListedPostList } from "../models"; +import { ListedPostList } from '../models'; // @ts-ignore -import { Post } from "../models"; +import { Post } from '../models'; // @ts-ignore -import { PostRequest } from "../models"; +import { PostRequest } from '../models'; /** * ApiConsoleHaloRunV1alpha1PostApi - axios parameter creator * @export */ -export const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Draft a post. - * @param {PostRequest} postRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - draftPost: async ( - postRequest: PostRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'postRequest' is not null or undefined - assertParamExists("draftPost", "postRequest", postRequest); - const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Draft a post. + * @param {PostRequest} postRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + draftPost: async (postRequest: PostRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'postRequest' is not null or undefined + assertParamExists('draftPost', 'postRequest', postRequest) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - postRequest, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Fetch head content of post. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchPostHeadContent: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("fetchPostHeadContent", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/posts/{name}/head-content`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(postRequest, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Fetch head content of post. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchPostHeadContent: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('fetchPostHeadContent', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}/head-content` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Fetch release content of post. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchPostReleaseContent: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("fetchPostReleaseContent", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/posts/{name}/release-content`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Fetch release content of post. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchPostReleaseContent: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('fetchPostReleaseContent', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}/release-content` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List posts. - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {string} [keyword] Posts filtered by keyword. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase] - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp,publishTime - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listPosts: async ( - fieldSelector?: Array, - keyword?: string, - labelSelector?: Array, - page?: number, - publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED", - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List posts. + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {ListPostsPublishPhaseEnum} [publishPhase] Posts filtered by publish phase. + * @param {string} [keyword] Posts filtered by keyword. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPosts: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, publishPhase?: ListPostsPublishPhaseEnum, keyword?: string, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (keyword !== undefined) { - localVarQueryParameter["keyword"] = keyword; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (publishPhase !== undefined) { - localVarQueryParameter["publishPhase"] = publishPhase; - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Publish a post. - * @param {string} name - * @param {string} [headSnapshot] Head snapshot name of content. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - publishPost: async ( - name: string, - headSnapshot?: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("publishPost", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/posts/{name}/publish`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (publishPhase !== undefined) { + localVarQueryParameter['publishPhase'] = publishPhase; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (keyword !== undefined) { + localVarQueryParameter['keyword'] = keyword; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - if (headSnapshot !== undefined) { - localVarQueryParameter["headSnapshot"] = headSnapshot; - } + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Publish a post. + * @param {string} name + * @param {string} [headSnapshot] Head snapshot name of content. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + publishPost: async (name: string, headSnapshot?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('publishPost', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}/publish` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Recycle a post. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - recyclePost: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("recyclePost", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/posts/{name}/recycle`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + if (headSnapshot !== undefined) { + localVarQueryParameter['headSnapshot'] = headSnapshot; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Publish a post. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - unpublishPost: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("unpublishPost", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/posts/{name}/unpublish`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Recycle a post. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + recyclePost: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('recyclePost', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}/recycle` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update a post. - * @param {string} name - * @param {PostRequest} postRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateDraftPost: async ( - name: string, - postRequest: PostRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updateDraftPost", "name", name); - // verify required parameter 'postRequest' is not null or undefined - assertParamExists("updateDraftPost", "postRequest", postRequest); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/posts/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Publish a post. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + unpublishPost: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('unpublishPost', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}/unpublish` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - postRequest, - localVarRequestOptions, - configuration - ); - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update a post\'s content. - * @param {string} name - * @param {Content} content - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatePostContent: async ( - name: string, - content: Content, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatePostContent", "name", name); - // verify required parameter 'content' is not null or undefined - assertParamExists("updatePostContent", "content", content); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/posts/{name}/content`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update a post. + * @param {string} name + * @param {PostRequest} postRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateDraftPost: async (name: string, postRequest: PostRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updateDraftPost', 'name', name) + // verify required parameter 'postRequest' is not null or undefined + assertParamExists('updateDraftPost', 'postRequest', postRequest) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - content, - localVarRequestOptions, - configuration - ); - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(postRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update a post\'s content. + * @param {string} name + * @param {Content} content + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatePostContent: async (name: string, content: Content, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatePostContent', 'name', name) + // verify required parameter 'content' is not null or undefined + assertParamExists('updatePostContent', 'content', content) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}/content` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(content, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ApiConsoleHaloRunV1alpha1PostApi - functional programming interface * @export */ -export const ApiConsoleHaloRunV1alpha1PostApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator(configuration); - return { - /** - * Draft a post. - * @param {PostRequest} postRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async draftPost( - postRequest: PostRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost( - postRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Fetch head content of post. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async fetchPostHeadContent( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.fetchPostHeadContent(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Fetch release content of post. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async fetchPostReleaseContent( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.fetchPostReleaseContent(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List posts. - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {string} [keyword] Posts filtered by keyword. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase] - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp,publishTime - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listPosts( - fieldSelector?: Array, - keyword?: string, - labelSelector?: Array, - page?: number, - publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED", - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts( - fieldSelector, - keyword, - labelSelector, - page, - publishPhase, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Publish a post. - * @param {string} name - * @param {string} [headSnapshot] Head snapshot name of content. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async publishPost( - name: string, - headSnapshot?: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.publishPost( - name, - headSnapshot, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Recycle a post. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async recyclePost( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.recyclePost( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Publish a post. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async unpublishPost( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.unpublishPost( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update a post. - * @param {string} name - * @param {PostRequest} postRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateDraftPost( - name: string, - postRequest: PostRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftPost( - name, - postRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update a post\'s content. - * @param {string} name - * @param {Content} content - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatePostContent( - name: string, - content: Content, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatePostContent( - name, - content, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator(configuration) + return { + /** + * Draft a post. + * @param {PostRequest} postRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async draftPost(postRequest: PostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PostApi.draftPost']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Fetch head content of post. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async fetchPostHeadContent(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.fetchPostHeadContent(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PostApi.fetchPostHeadContent']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Fetch release content of post. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async fetchPostReleaseContent(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.fetchPostReleaseContent(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PostApi.fetchPostReleaseContent']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List posts. + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {ListPostsPublishPhaseEnum} [publishPhase] Posts filtered by publish phase. + * @param {string} [keyword] Posts filtered by keyword. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listPosts(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, publishPhase?: ListPostsPublishPhaseEnum, keyword?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(page, size, labelSelector, fieldSelector, sort, publishPhase, keyword, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PostApi.listPosts']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Publish a post. + * @param {string} name + * @param {string} [headSnapshot] Head snapshot name of content. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async publishPost(name: string, headSnapshot?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.publishPost(name, headSnapshot, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PostApi.publishPost']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Recycle a post. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async recyclePost(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.recyclePost(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PostApi.recyclePost']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Publish a post. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async unpublishPost(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.unpublishPost(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PostApi.unpublishPost']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update a post. + * @param {string} name + * @param {PostRequest} postRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateDraftPost(name: string, postRequest: PostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftPost(name, postRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PostApi.updateDraftPost']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update a post\'s content. + * @param {string} name + * @param {Content} content + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatePostContent(name: string, content: Content, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatePostContent(name, content, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1PostApi.updatePostContent']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiConsoleHaloRunV1alpha1PostApi - factory interface * @export */ -export const ApiConsoleHaloRunV1alpha1PostApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiConsoleHaloRunV1alpha1PostApiFp(configuration); - return { - /** - * Draft a post. - * @param {ApiConsoleHaloRunV1alpha1PostApiDraftPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - draftPost( - requestParameters: ApiConsoleHaloRunV1alpha1PostApiDraftPostRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .draftPost(requestParameters.postRequest, options) - .then((request) => request(axios, basePath)); - }, - /** - * Fetch head content of post. - * @param {ApiConsoleHaloRunV1alpha1PostApiFetchPostHeadContentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchPostHeadContent( - requestParameters: ApiConsoleHaloRunV1alpha1PostApiFetchPostHeadContentRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .fetchPostHeadContent(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Fetch release content of post. - * @param {ApiConsoleHaloRunV1alpha1PostApiFetchPostReleaseContentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchPostReleaseContent( - requestParameters: ApiConsoleHaloRunV1alpha1PostApiFetchPostReleaseContentRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .fetchPostReleaseContent(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List posts. - * @param {ApiConsoleHaloRunV1alpha1PostApiListPostsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listPosts( - requestParameters: ApiConsoleHaloRunV1alpha1PostApiListPostsRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listPosts( - requestParameters.fieldSelector, - requestParameters.keyword, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.publishPhase, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Publish a post. - * @param {ApiConsoleHaloRunV1alpha1PostApiPublishPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - publishPost( - requestParameters: ApiConsoleHaloRunV1alpha1PostApiPublishPostRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .publishPost( - requestParameters.name, - requestParameters.headSnapshot, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Recycle a post. - * @param {ApiConsoleHaloRunV1alpha1PostApiRecyclePostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - recyclePost( - requestParameters: ApiConsoleHaloRunV1alpha1PostApiRecyclePostRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .recyclePost(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Publish a post. - * @param {ApiConsoleHaloRunV1alpha1PostApiUnpublishPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - unpublishPost( - requestParameters: ApiConsoleHaloRunV1alpha1PostApiUnpublishPostRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .unpublishPost(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Update a post. - * @param {ApiConsoleHaloRunV1alpha1PostApiUpdateDraftPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateDraftPost( - requestParameters: ApiConsoleHaloRunV1alpha1PostApiUpdateDraftPostRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updateDraftPost( - requestParameters.name, - requestParameters.postRequest, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update a post\'s content. - * @param {ApiConsoleHaloRunV1alpha1PostApiUpdatePostContentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatePostContent( - requestParameters: ApiConsoleHaloRunV1alpha1PostApiUpdatePostContentRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatePostContent( - requestParameters.name, - requestParameters.content, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiConsoleHaloRunV1alpha1PostApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiConsoleHaloRunV1alpha1PostApiFp(configuration) + return { + /** + * Draft a post. + * @param {ApiConsoleHaloRunV1alpha1PostApiDraftPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + draftPost(requestParameters: ApiConsoleHaloRunV1alpha1PostApiDraftPostRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.draftPost(requestParameters.postRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Fetch head content of post. + * @param {ApiConsoleHaloRunV1alpha1PostApiFetchPostHeadContentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchPostHeadContent(requestParameters: ApiConsoleHaloRunV1alpha1PostApiFetchPostHeadContentRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.fetchPostHeadContent(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Fetch release content of post. + * @param {ApiConsoleHaloRunV1alpha1PostApiFetchPostReleaseContentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchPostReleaseContent(requestParameters: ApiConsoleHaloRunV1alpha1PostApiFetchPostReleaseContentRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.fetchPostReleaseContent(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List posts. + * @param {ApiConsoleHaloRunV1alpha1PostApiListPostsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPosts(requestParameters: ApiConsoleHaloRunV1alpha1PostApiListPostsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listPosts(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, requestParameters.publishPhase, requestParameters.keyword, options).then((request) => request(axios, basePath)); + }, + /** + * Publish a post. + * @param {ApiConsoleHaloRunV1alpha1PostApiPublishPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + publishPost(requestParameters: ApiConsoleHaloRunV1alpha1PostApiPublishPostRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(axios, basePath)); + }, + /** + * Recycle a post. + * @param {ApiConsoleHaloRunV1alpha1PostApiRecyclePostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + recyclePost(requestParameters: ApiConsoleHaloRunV1alpha1PostApiRecyclePostRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.recyclePost(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Publish a post. + * @param {ApiConsoleHaloRunV1alpha1PostApiUnpublishPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + unpublishPost(requestParameters: ApiConsoleHaloRunV1alpha1PostApiUnpublishPostRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.unpublishPost(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Update a post. + * @param {ApiConsoleHaloRunV1alpha1PostApiUpdateDraftPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateDraftPost(requestParameters: ApiConsoleHaloRunV1alpha1PostApiUpdateDraftPostRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updateDraftPost(requestParameters.name, requestParameters.postRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Update a post\'s content. + * @param {ApiConsoleHaloRunV1alpha1PostApiUpdatePostContentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatePostContent(requestParameters: ApiConsoleHaloRunV1alpha1PostApiUpdatePostContentRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatePostContent(requestParameters.name, requestParameters.content, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -1020,12 +683,12 @@ export const ApiConsoleHaloRunV1alpha1PostApiFactory = function ( * @interface ApiConsoleHaloRunV1alpha1PostApiDraftPostRequest */ export interface ApiConsoleHaloRunV1alpha1PostApiDraftPostRequest { - /** - * - * @type {PostRequest} - * @memberof ApiConsoleHaloRunV1alpha1PostApiDraftPost - */ - readonly postRequest: PostRequest; + /** + * + * @type {PostRequest} + * @memberof ApiConsoleHaloRunV1alpha1PostApiDraftPost + */ + readonly postRequest: PostRequest } /** @@ -1034,12 +697,12 @@ export interface ApiConsoleHaloRunV1alpha1PostApiDraftPostRequest { * @interface ApiConsoleHaloRunV1alpha1PostApiFetchPostHeadContentRequest */ export interface ApiConsoleHaloRunV1alpha1PostApiFetchPostHeadContentRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PostApiFetchPostHeadContent - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PostApiFetchPostHeadContent + */ + readonly name: string } /** @@ -1048,12 +711,12 @@ export interface ApiConsoleHaloRunV1alpha1PostApiFetchPostHeadContentRequest { * @interface ApiConsoleHaloRunV1alpha1PostApiFetchPostReleaseContentRequest */ export interface ApiConsoleHaloRunV1alpha1PostApiFetchPostReleaseContentRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PostApiFetchPostReleaseContent - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PostApiFetchPostReleaseContent + */ + readonly name: string } /** @@ -1062,54 +725,54 @@ export interface ApiConsoleHaloRunV1alpha1PostApiFetchPostReleaseContentRequest * @interface ApiConsoleHaloRunV1alpha1PostApiListPostsRequest */ export interface ApiConsoleHaloRunV1alpha1PostApiListPostsRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts + */ + readonly page?: number - /** - * Posts filtered by keyword. - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts - */ - readonly keyword?: string; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts + */ + readonly size?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts - */ - readonly labelSelector?: Array; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts + */ + readonly labelSelector?: Array - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts - */ - readonly page?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts + */ + readonly fieldSelector?: Array - /** - * - * @type {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} - * @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts - */ - readonly publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED"; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts + */ + readonly sort?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts - */ - readonly size?: number; + /** + * Posts filtered by publish phase. + * @type {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} + * @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts + */ + readonly publishPhase?: ListPostsPublishPhaseEnum - /** - * Sort property and direction of the list result. Supported fields: creationTimestamp,publishTime - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts - */ - readonly sort?: Array; + /** + * Posts filtered by keyword. + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts + */ + readonly keyword?: string } /** @@ -1118,19 +781,19 @@ export interface ApiConsoleHaloRunV1alpha1PostApiListPostsRequest { * @interface ApiConsoleHaloRunV1alpha1PostApiPublishPostRequest */ export interface ApiConsoleHaloRunV1alpha1PostApiPublishPostRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PostApiPublishPost - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PostApiPublishPost + */ + readonly name: string - /** - * Head snapshot name of content. - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PostApiPublishPost - */ - readonly headSnapshot?: string; + /** + * Head snapshot name of content. + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PostApiPublishPost + */ + readonly headSnapshot?: string } /** @@ -1139,12 +802,12 @@ export interface ApiConsoleHaloRunV1alpha1PostApiPublishPostRequest { * @interface ApiConsoleHaloRunV1alpha1PostApiRecyclePostRequest */ export interface ApiConsoleHaloRunV1alpha1PostApiRecyclePostRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PostApiRecyclePost - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PostApiRecyclePost + */ + readonly name: string } /** @@ -1153,12 +816,12 @@ export interface ApiConsoleHaloRunV1alpha1PostApiRecyclePostRequest { * @interface ApiConsoleHaloRunV1alpha1PostApiUnpublishPostRequest */ export interface ApiConsoleHaloRunV1alpha1PostApiUnpublishPostRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PostApiUnpublishPost - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PostApiUnpublishPost + */ + readonly name: string } /** @@ -1167,19 +830,19 @@ export interface ApiConsoleHaloRunV1alpha1PostApiUnpublishPostRequest { * @interface ApiConsoleHaloRunV1alpha1PostApiUpdateDraftPostRequest */ export interface ApiConsoleHaloRunV1alpha1PostApiUpdateDraftPostRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PostApiUpdateDraftPost - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PostApiUpdateDraftPost + */ + readonly name: string - /** - * - * @type {PostRequest} - * @memberof ApiConsoleHaloRunV1alpha1PostApiUpdateDraftPost - */ - readonly postRequest: PostRequest; + /** + * + * @type {PostRequest} + * @memberof ApiConsoleHaloRunV1alpha1PostApiUpdateDraftPost + */ + readonly postRequest: PostRequest } /** @@ -1188,19 +851,19 @@ export interface ApiConsoleHaloRunV1alpha1PostApiUpdateDraftPostRequest { * @interface ApiConsoleHaloRunV1alpha1PostApiUpdatePostContentRequest */ export interface ApiConsoleHaloRunV1alpha1PostApiUpdatePostContentRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1PostApiUpdatePostContent - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1PostApiUpdatePostContent + */ + readonly name: string - /** - * - * @type {Content} - * @memberof ApiConsoleHaloRunV1alpha1PostApiUpdatePostContent - */ - readonly content: Content; + /** + * + * @type {Content} + * @memberof ApiConsoleHaloRunV1alpha1PostApiUpdatePostContent + */ + readonly content: Content } /** @@ -1210,168 +873,113 @@ export interface ApiConsoleHaloRunV1alpha1PostApiUpdatePostContentRequest { * @extends {BaseAPI} */ export class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI { - /** - * Draft a post. - * @param {ApiConsoleHaloRunV1alpha1PostApiDraftPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PostApi - */ - public draftPost( - requestParameters: ApiConsoleHaloRunV1alpha1PostApiDraftPostRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration) - .draftPost(requestParameters.postRequest, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Draft a post. + * @param {ApiConsoleHaloRunV1alpha1PostApiDraftPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PostApi + */ + public draftPost(requestParameters: ApiConsoleHaloRunV1alpha1PostApiDraftPostRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Fetch head content of post. - * @param {ApiConsoleHaloRunV1alpha1PostApiFetchPostHeadContentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PostApi - */ - public fetchPostHeadContent( - requestParameters: ApiConsoleHaloRunV1alpha1PostApiFetchPostHeadContentRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration) - .fetchPostHeadContent(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Fetch head content of post. + * @param {ApiConsoleHaloRunV1alpha1PostApiFetchPostHeadContentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PostApi + */ + public fetchPostHeadContent(requestParameters: ApiConsoleHaloRunV1alpha1PostApiFetchPostHeadContentRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).fetchPostHeadContent(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Fetch release content of post. - * @param {ApiConsoleHaloRunV1alpha1PostApiFetchPostReleaseContentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PostApi - */ - public fetchPostReleaseContent( - requestParameters: ApiConsoleHaloRunV1alpha1PostApiFetchPostReleaseContentRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration) - .fetchPostReleaseContent(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Fetch release content of post. + * @param {ApiConsoleHaloRunV1alpha1PostApiFetchPostReleaseContentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PostApi + */ + public fetchPostReleaseContent(requestParameters: ApiConsoleHaloRunV1alpha1PostApiFetchPostReleaseContentRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).fetchPostReleaseContent(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List posts. - * @param {ApiConsoleHaloRunV1alpha1PostApiListPostsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PostApi - */ - public listPosts( - requestParameters: ApiConsoleHaloRunV1alpha1PostApiListPostsRequest = {}, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration) - .listPosts( - requestParameters.fieldSelector, - requestParameters.keyword, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.publishPhase, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List posts. + * @param {ApiConsoleHaloRunV1alpha1PostApiListPostsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PostApi + */ + public listPosts(requestParameters: ApiConsoleHaloRunV1alpha1PostApiListPostsRequest = {}, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, requestParameters.publishPhase, requestParameters.keyword, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Publish a post. - * @param {ApiConsoleHaloRunV1alpha1PostApiPublishPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PostApi - */ - public publishPost( - requestParameters: ApiConsoleHaloRunV1alpha1PostApiPublishPostRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration) - .publishPost( - requestParameters.name, - requestParameters.headSnapshot, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Publish a post. + * @param {ApiConsoleHaloRunV1alpha1PostApiPublishPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PostApi + */ + public publishPost(requestParameters: ApiConsoleHaloRunV1alpha1PostApiPublishPostRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Recycle a post. - * @param {ApiConsoleHaloRunV1alpha1PostApiRecyclePostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PostApi - */ - public recyclePost( - requestParameters: ApiConsoleHaloRunV1alpha1PostApiRecyclePostRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration) - .recyclePost(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Recycle a post. + * @param {ApiConsoleHaloRunV1alpha1PostApiRecyclePostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PostApi + */ + public recyclePost(requestParameters: ApiConsoleHaloRunV1alpha1PostApiRecyclePostRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).recyclePost(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Publish a post. - * @param {ApiConsoleHaloRunV1alpha1PostApiUnpublishPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PostApi - */ - public unpublishPost( - requestParameters: ApiConsoleHaloRunV1alpha1PostApiUnpublishPostRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration) - .unpublishPost(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Publish a post. + * @param {ApiConsoleHaloRunV1alpha1PostApiUnpublishPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PostApi + */ + public unpublishPost(requestParameters: ApiConsoleHaloRunV1alpha1PostApiUnpublishPostRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).unpublishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update a post. - * @param {ApiConsoleHaloRunV1alpha1PostApiUpdateDraftPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PostApi - */ - public updateDraftPost( - requestParameters: ApiConsoleHaloRunV1alpha1PostApiUpdateDraftPostRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration) - .updateDraftPost( - requestParameters.name, - requestParameters.postRequest, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update a post. + * @param {ApiConsoleHaloRunV1alpha1PostApiUpdateDraftPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PostApi + */ + public updateDraftPost(requestParameters: ApiConsoleHaloRunV1alpha1PostApiUpdateDraftPostRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).updateDraftPost(requestParameters.name, requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update a post\'s content. - * @param {ApiConsoleHaloRunV1alpha1PostApiUpdatePostContentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1PostApi - */ - public updatePostContent( - requestParameters: ApiConsoleHaloRunV1alpha1PostApiUpdatePostContentRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration) - .updatePostContent( - requestParameters.name, - requestParameters.content, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update a post\'s content. + * @param {ApiConsoleHaloRunV1alpha1PostApiUpdatePostContentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1PostApi + */ + public updatePostContent(requestParameters: ApiConsoleHaloRunV1alpha1PostApiUpdatePostContentRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).updatePostContent(requestParameters.name, requestParameters.content, options).then((request) => request(this.axios, this.basePath)); + } } + +/** + * @export + */ +export const ListPostsPublishPhaseEnum = { + Draft: 'DRAFT', + PendingApproval: 'PENDING_APPROVAL', + Published: 'PUBLISHED', + Failed: 'FAILED' +} as const; +export type ListPostsPublishPhaseEnum = typeof ListPostsPublishPhaseEnum[keyof typeof ListPostsPublishPhaseEnum]; diff --git a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-reply-api.ts b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-reply-api.ts index 475e1c557..1f8431699 100644 --- a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-reply-api.ts +++ b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-reply-api.ts @@ -5,221 +5,146 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { ListedReplyList } from "../models"; +import { ListedReplyList } from '../models'; /** * ApiConsoleHaloRunV1alpha1ReplyApi - axios parameter creator * @export */ -export const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * List replies. - * @param {string} [commentName] Replies filtered by commentName. - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listReplies: async ( - commentName?: string, - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * List replies. + * @param {string} commentName Replies filtered by commentName. + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listReplies: async (commentName: string, page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'commentName' is not null or undefined + assertParamExists('listReplies', 'commentName', commentName) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (commentName !== undefined) { - localVarQueryParameter["commentName"] = commentName; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (sort) { + localVarQueryParameter['sort'] = sort; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (commentName !== undefined) { + localVarQueryParameter['commentName'] = commentName; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ApiConsoleHaloRunV1alpha1ReplyApi - functional programming interface * @export */ -export const ApiConsoleHaloRunV1alpha1ReplyApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration); - return { - /** - * List replies. - * @param {string} [commentName] Replies filtered by commentName. - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listReplies( - commentName?: string, - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies( - commentName, - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration) + return { + /** + * List replies. + * @param {string} commentName Replies filtered by commentName. + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listReplies(commentName: string, page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1ReplyApi.listReplies']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiConsoleHaloRunV1alpha1ReplyApi - factory interface * @export */ -export const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration); - return { - /** - * List replies. - * @param {ApiConsoleHaloRunV1alpha1ReplyApiListRepliesRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listReplies( - requestParameters: ApiConsoleHaloRunV1alpha1ReplyApiListRepliesRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listReplies( - requestParameters.commentName, - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration) + return { + /** + * List replies. + * @param {ApiConsoleHaloRunV1alpha1ReplyApiListRepliesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listReplies(requestParameters: ApiConsoleHaloRunV1alpha1ReplyApiListRepliesRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listReplies(requestParameters.commentName, requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -228,47 +153,47 @@ export const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function ( * @interface ApiConsoleHaloRunV1alpha1ReplyApiListRepliesRequest */ export interface ApiConsoleHaloRunV1alpha1ReplyApiListRepliesRequest { - /** - * Replies filtered by commentName. - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies - */ - readonly commentName?: string; + /** + * Replies filtered by commentName. + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies + */ + readonly commentName: string - /** - * Field selector for filtering. - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies + */ + readonly sort?: Array } /** @@ -278,27 +203,15 @@ export interface ApiConsoleHaloRunV1alpha1ReplyApiListRepliesRequest { * @extends {BaseAPI} */ export class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI { - /** - * List replies. - * @param {ApiConsoleHaloRunV1alpha1ReplyApiListRepliesRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1ReplyApi - */ - public listReplies( - requestParameters: ApiConsoleHaloRunV1alpha1ReplyApiListRepliesRequest = {}, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration) - .listReplies( - requestParameters.commentName, - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List replies. + * @param {ApiConsoleHaloRunV1alpha1ReplyApiListRepliesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1ReplyApi + */ + public listReplies(requestParameters: ApiConsoleHaloRunV1alpha1ReplyApiListRepliesRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-restoration-api.ts b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-restoration-api.ts deleted file mode 100644 index 3c769a06e..000000000 --- a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-restoration-api.ts +++ /dev/null @@ -1,210 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Halo Next API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; -// Some imports not used depending on template conditions -// @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; -// @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; -/** - * ApiConsoleHaloRunV1alpha1RestorationApi - axios parameter creator - * @export - */ -export const ApiConsoleHaloRunV1alpha1RestorationApiAxiosParamCreator = - function (configuration?: Configuration) { - return { - /** - * - * @param {File} file - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - restoreBackup: async ( - file: File, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'file' is not null or undefined - assertParamExists("restoreBackup", "file", file); - const localVarPath = `/apis/api.console.halo.run/v1alpha1/restorations`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - const localVarFormParams = new ((configuration && - configuration.formDataCtor) || - FormData)(); - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - if (file !== undefined) { - localVarFormParams.append("file", file as any); - } - - localVarHeaderParameter["Content-Type"] = "multipart/form-data"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = localVarFormParams; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; - -/** - * ApiConsoleHaloRunV1alpha1RestorationApi - functional programming interface - * @export - */ -export const ApiConsoleHaloRunV1alpha1RestorationApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiConsoleHaloRunV1alpha1RestorationApiAxiosParamCreator(configuration); - return { - /** - * - * @param {File} file - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async restoreBackup( - file: File, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.restoreBackup( - file, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; -}; - -/** - * ApiConsoleHaloRunV1alpha1RestorationApi - factory interface - * @export - */ -export const ApiConsoleHaloRunV1alpha1RestorationApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiConsoleHaloRunV1alpha1RestorationApiFp(configuration); - return { - /** - * - * @param {ApiConsoleHaloRunV1alpha1RestorationApiRestoreBackupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - restoreBackup( - requestParameters: ApiConsoleHaloRunV1alpha1RestorationApiRestoreBackupRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .restoreBackup(requestParameters.file, options) - .then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for restoreBackup operation in ApiConsoleHaloRunV1alpha1RestorationApi. - * @export - * @interface ApiConsoleHaloRunV1alpha1RestorationApiRestoreBackupRequest - */ -export interface ApiConsoleHaloRunV1alpha1RestorationApiRestoreBackupRequest { - /** - * - * @type {File} - * @memberof ApiConsoleHaloRunV1alpha1RestorationApiRestoreBackup - */ - readonly file: File; -} - -/** - * ApiConsoleHaloRunV1alpha1RestorationApi - object-oriented interface - * @export - * @class ApiConsoleHaloRunV1alpha1RestorationApi - * @extends {BaseAPI} - */ -export class ApiConsoleHaloRunV1alpha1RestorationApi extends BaseAPI { - /** - * - * @param {ApiConsoleHaloRunV1alpha1RestorationApiRestoreBackupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1RestorationApi - */ - public restoreBackup( - requestParameters: ApiConsoleHaloRunV1alpha1RestorationApiRestoreBackupRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1RestorationApiFp(this.configuration) - .restoreBackup(requestParameters.file, options) - .then((request) => request(this.axios, this.basePath)); - } -} diff --git a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-single-page-api.ts b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-single-page-api.ts index ff8940004..9c52f01e3 100644 --- a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-single-page-api.ts +++ b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-single-page-api.ts @@ -5,855 +5,560 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Content } from "../models"; +import { Content } from '../models'; // @ts-ignore -import { ContentWrapper } from "../models"; +import { ContentWrapper } from '../models'; // @ts-ignore -import { ListedSinglePageList } from "../models"; +import { ListedSinglePageList } from '../models'; // @ts-ignore -import { Post } from "../models"; +import { Post } from '../models'; // @ts-ignore -import { SinglePage } from "../models"; +import { SinglePage } from '../models'; // @ts-ignore -import { SinglePageRequest } from "../models"; +import { SinglePageRequest } from '../models'; /** * ApiConsoleHaloRunV1alpha1SinglePageApi - axios parameter creator * @export */ -export const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = - function (configuration?: Configuration) { +export const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Draft a single page. - * @param {SinglePageRequest} singlePageRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - draftSinglePage: async ( - singlePageRequest: SinglePageRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'singlePageRequest' is not null or undefined - assertParamExists( - "draftSinglePage", - "singlePageRequest", - singlePageRequest - ); - const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * Draft a single page. + * @param {SinglePageRequest} singlePageRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + draftSinglePage: async (singlePageRequest: SinglePageRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'singlePageRequest' is not null or undefined + assertParamExists('draftSinglePage', 'singlePageRequest', singlePageRequest) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - singlePageRequest, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Fetch head content of single page. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchSinglePageHeadContent: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("fetchSinglePageHeadContent", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/singlepages/{name}/head-content`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(singlePageRequest, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Fetch head content of single page. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchSinglePageHeadContent: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('fetchSinglePageHeadContent', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages/{name}/head-content` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Fetch release content of single page. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchSinglePageReleaseContent: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("fetchSinglePageReleaseContent", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/singlepages/{name}/release-content`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Fetch release content of single page. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchSinglePageReleaseContent: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('fetchSinglePageReleaseContent', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages/{name}/release-content` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List single pages. - * @param {Array} [contributor] - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {string} [keyword] SinglePages filtered by keyword. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase] - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp,publishTime - * @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listSinglePages: async ( - contributor?: Array, - fieldSelector?: Array, - keyword?: string, - labelSelector?: Array, - page?: number, - publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED", - size?: number, - sort?: Array, - visible?: "PUBLIC" | "INTERNAL" | "PRIVATE", - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List single pages. + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {Array} [contributor] SinglePages filtered by contributor. + * @param {ListSinglePagesPublishPhaseEnum} [publishPhase] SinglePages filtered by publish phase. + * @param {ListSinglePagesVisibleEnum} [visible] SinglePages filtered by visibility. + * @param {string} [keyword] SinglePages filtered by keyword. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listSinglePages: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, contributor?: Array, publishPhase?: ListSinglePagesPublishPhaseEnum, visible?: ListSinglePagesVisibleEnum, keyword?: string, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (contributor) { - localVarQueryParameter["contributor"] = Array.from(contributor); - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (keyword !== undefined) { - localVarQueryParameter["keyword"] = keyword; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - if (publishPhase !== undefined) { - localVarQueryParameter["publishPhase"] = publishPhase; - } + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (sort) { + localVarQueryParameter['sort'] = sort; + } - if (visible !== undefined) { - localVarQueryParameter["visible"] = visible; - } + if (contributor) { + localVarQueryParameter['contributor'] = contributor; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (publishPhase !== undefined) { + localVarQueryParameter['publishPhase'] = publishPhase; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Publish a single page. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - publishSinglePage: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("publishSinglePage", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/singlepages/{name}/publish`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (visible !== undefined) { + localVarQueryParameter['visible'] = visible; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (keyword !== undefined) { + localVarQueryParameter['keyword'] = keyword; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Publish a single page. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + publishSinglePage: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('publishSinglePage', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages/{name}/publish` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update a single page. - * @param {string} name - * @param {SinglePageRequest} singlePageRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateDraftSinglePage: async ( - name: string, - singlePageRequest: SinglePageRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updateDraftSinglePage", "name", name); - // verify required parameter 'singlePageRequest' is not null or undefined - assertParamExists( - "updateDraftSinglePage", - "singlePageRequest", - singlePageRequest - ); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/singlepages/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - singlePageRequest, - localVarRequestOptions, - configuration - ); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update a single page. + * @param {string} name + * @param {SinglePageRequest} singlePageRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateDraftSinglePage: async (name: string, singlePageRequest: SinglePageRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updateDraftSinglePage', 'name', name) + // verify required parameter 'singlePageRequest' is not null or undefined + assertParamExists('updateDraftSinglePage', 'singlePageRequest', singlePageRequest) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update a single page\'s content. - * @param {string} name - * @param {Content} content - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateSinglePageContent: async ( - name: string, - content: Content, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updateSinglePageContent", "name", name); - // verify required parameter 'content' is not null or undefined - assertParamExists("updateSinglePageContent", "content", content); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - localVarHeaderParameter["Content-Type"] = "application/json"; + + localVarHeaderParameter['Content-Type'] = 'application/json'; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - content, - localVarRequestOptions, - configuration - ); + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(singlePageRequest, localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update a single page\'s content. + * @param {string} name + * @param {Content} content + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateSinglePageContent: async (name: string, content: Content, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updateSinglePageContent', 'name', name) + // verify required parameter 'content' is not null or undefined + assertParamExists('updateSinglePageContent', 'content', content) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(content, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * ApiConsoleHaloRunV1alpha1SinglePageApi - functional programming interface * @export */ -export const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator(configuration); - return { - /** - * Draft a single page. - * @param {SinglePageRequest} singlePageRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async draftSinglePage( - singlePageRequest: SinglePageRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage( - singlePageRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Fetch head content of single page. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async fetchSinglePageHeadContent( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.fetchSinglePageHeadContent( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Fetch release content of single page. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async fetchSinglePageReleaseContent( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.fetchSinglePageReleaseContent( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List single pages. - * @param {Array} [contributor] - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {string} [keyword] SinglePages filtered by keyword. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase] - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp,publishTime - * @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listSinglePages( - contributor?: Array, - fieldSelector?: Array, - keyword?: string, - labelSelector?: Array, - page?: number, - publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED", - size?: number, - sort?: Array, - visible?: "PUBLIC" | "INTERNAL" | "PRIVATE", - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages( - contributor, - fieldSelector, - keyword, - labelSelector, - page, - publishPhase, - size, - sort, - visible, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Publish a single page. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async publishSinglePage( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.publishSinglePage(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update a single page. - * @param {string} name - * @param {SinglePageRequest} singlePageRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateDraftSinglePage( - name: string, - singlePageRequest: SinglePageRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updateDraftSinglePage( - name, - singlePageRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update a single page\'s content. - * @param {string} name - * @param {Content} content - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateSinglePageContent( - name: string, - content: Content, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updateSinglePageContent( - name, - content, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator(configuration) + return { + /** + * Draft a single page. + * @param {SinglePageRequest} singlePageRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async draftSinglePage(singlePageRequest: SinglePageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1SinglePageApi.draftSinglePage']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Fetch head content of single page. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async fetchSinglePageHeadContent(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.fetchSinglePageHeadContent(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1SinglePageApi.fetchSinglePageHeadContent']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Fetch release content of single page. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async fetchSinglePageReleaseContent(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.fetchSinglePageReleaseContent(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1SinglePageApi.fetchSinglePageReleaseContent']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List single pages. + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {Array} [contributor] SinglePages filtered by contributor. + * @param {ListSinglePagesPublishPhaseEnum} [publishPhase] SinglePages filtered by publish phase. + * @param {ListSinglePagesVisibleEnum} [visible] SinglePages filtered by visibility. + * @param {string} [keyword] SinglePages filtered by keyword. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listSinglePages(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, contributor?: Array, publishPhase?: ListSinglePagesPublishPhaseEnum, visible?: ListSinglePagesVisibleEnum, keyword?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(page, size, labelSelector, fieldSelector, sort, contributor, publishPhase, visible, keyword, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1SinglePageApi.listSinglePages']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Publish a single page. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async publishSinglePage(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.publishSinglePage(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1SinglePageApi.publishSinglePage']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update a single page. + * @param {string} name + * @param {SinglePageRequest} singlePageRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateDraftSinglePage(name: string, singlePageRequest: SinglePageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftSinglePage(name, singlePageRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1SinglePageApi.updateDraftSinglePage']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update a single page\'s content. + * @param {string} name + * @param {Content} content + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateSinglePageContent(name: string, content: Content, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateSinglePageContent(name, content, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1SinglePageApi.updateSinglePageContent']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiConsoleHaloRunV1alpha1SinglePageApi - factory interface * @export */ -export const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiConsoleHaloRunV1alpha1SinglePageApiFp(configuration); - return { - /** - * Draft a single page. - * @param {ApiConsoleHaloRunV1alpha1SinglePageApiDraftSinglePageRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - draftSinglePage( - requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiDraftSinglePageRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .draftSinglePage(requestParameters.singlePageRequest, options) - .then((request) => request(axios, basePath)); - }, - /** - * Fetch head content of single page. - * @param {ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageHeadContentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchSinglePageHeadContent( - requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageHeadContentRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .fetchSinglePageHeadContent(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Fetch release content of single page. - * @param {ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageReleaseContentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchSinglePageReleaseContent( - requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageReleaseContentRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .fetchSinglePageReleaseContent(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List single pages. - * @param {ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePagesRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listSinglePages( - requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePagesRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listSinglePages( - requestParameters.contributor, - requestParameters.fieldSelector, - requestParameters.keyword, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.publishPhase, - requestParameters.size, - requestParameters.sort, - requestParameters.visible, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Publish a single page. - * @param {ApiConsoleHaloRunV1alpha1SinglePageApiPublishSinglePageRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - publishSinglePage( - requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiPublishSinglePageRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .publishSinglePage(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Update a single page. - * @param {ApiConsoleHaloRunV1alpha1SinglePageApiUpdateDraftSinglePageRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateDraftSinglePage( - requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiUpdateDraftSinglePageRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updateDraftSinglePage( - requestParameters.name, - requestParameters.singlePageRequest, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update a single page\'s content. - * @param {ApiConsoleHaloRunV1alpha1SinglePageApiUpdateSinglePageContentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateSinglePageContent( - requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiUpdateSinglePageContentRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updateSinglePageContent( - requestParameters.name, - requestParameters.content, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiConsoleHaloRunV1alpha1SinglePageApiFp(configuration) + return { + /** + * Draft a single page. + * @param {ApiConsoleHaloRunV1alpha1SinglePageApiDraftSinglePageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + draftSinglePage(requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiDraftSinglePageRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Fetch head content of single page. + * @param {ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageHeadContentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchSinglePageHeadContent(requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageHeadContentRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.fetchSinglePageHeadContent(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Fetch release content of single page. + * @param {ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageReleaseContentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchSinglePageReleaseContent(requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageReleaseContentRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.fetchSinglePageReleaseContent(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List single pages. + * @param {ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePagesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listSinglePages(requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePagesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listSinglePages(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, requestParameters.contributor, requestParameters.publishPhase, requestParameters.visible, requestParameters.keyword, options).then((request) => request(axios, basePath)); + }, + /** + * Publish a single page. + * @param {ApiConsoleHaloRunV1alpha1SinglePageApiPublishSinglePageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + publishSinglePage(requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiPublishSinglePageRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.publishSinglePage(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Update a single page. + * @param {ApiConsoleHaloRunV1alpha1SinglePageApiUpdateDraftSinglePageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateDraftSinglePage(requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiUpdateDraftSinglePageRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updateDraftSinglePage(requestParameters.name, requestParameters.singlePageRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Update a single page\'s content. + * @param {ApiConsoleHaloRunV1alpha1SinglePageApiUpdateSinglePageContentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateSinglePageContent(requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiUpdateSinglePageContentRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updateSinglePageContent(requestParameters.name, requestParameters.content, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -862,12 +567,12 @@ export const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function ( * @interface ApiConsoleHaloRunV1alpha1SinglePageApiDraftSinglePageRequest */ export interface ApiConsoleHaloRunV1alpha1SinglePageApiDraftSinglePageRequest { - /** - * - * @type {SinglePageRequest} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiDraftSinglePage - */ - readonly singlePageRequest: SinglePageRequest; + /** + * + * @type {SinglePageRequest} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiDraftSinglePage + */ + readonly singlePageRequest: SinglePageRequest } /** @@ -876,12 +581,12 @@ export interface ApiConsoleHaloRunV1alpha1SinglePageApiDraftSinglePageRequest { * @interface ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageHeadContentRequest */ export interface ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageHeadContentRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageHeadContent - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageHeadContent + */ + readonly name: string } /** @@ -890,12 +595,12 @@ export interface ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageHeadConten * @interface ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageReleaseContentRequest */ export interface ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageReleaseContentRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageReleaseContent - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageReleaseContent + */ + readonly name: string } /** @@ -904,68 +609,68 @@ export interface ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageReleaseCon * @interface ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePagesRequest */ export interface ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePagesRequest { - /** - * - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages - */ - readonly contributor?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages + */ + readonly page?: number - /** - * Field selector for filtering. - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages - */ - readonly fieldSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages + */ + readonly size?: number - /** - * SinglePages filtered by keyword. - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages - */ - readonly keyword?: string; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages + */ + readonly labelSelector?: Array - /** - * Label selector for filtering. - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages - */ - readonly labelSelector?: Array; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages + */ + readonly fieldSelector?: Array - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages - */ - readonly page?: number; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages + */ + readonly sort?: Array - /** - * - * @type {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages - */ - readonly publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED"; + /** + * SinglePages filtered by contributor. + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages + */ + readonly contributor?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages - */ - readonly size?: number; + /** + * SinglePages filtered by publish phase. + * @type {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages + */ + readonly publishPhase?: ListSinglePagesPublishPhaseEnum - /** - * Sort property and direction of the list result. Supported fields: creationTimestamp,publishTime - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages - */ - readonly sort?: Array; + /** + * SinglePages filtered by visibility. + * @type {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages + */ + readonly visible?: ListSinglePagesVisibleEnum - /** - * - * @type {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages - */ - readonly visible?: "PUBLIC" | "INTERNAL" | "PRIVATE"; + /** + * SinglePages filtered by keyword. + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages + */ + readonly keyword?: string } /** @@ -974,12 +679,12 @@ export interface ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePagesRequest { * @interface ApiConsoleHaloRunV1alpha1SinglePageApiPublishSinglePageRequest */ export interface ApiConsoleHaloRunV1alpha1SinglePageApiPublishSinglePageRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiPublishSinglePage - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiPublishSinglePage + */ + readonly name: string } /** @@ -988,19 +693,19 @@ export interface ApiConsoleHaloRunV1alpha1SinglePageApiPublishSinglePageRequest * @interface ApiConsoleHaloRunV1alpha1SinglePageApiUpdateDraftSinglePageRequest */ export interface ApiConsoleHaloRunV1alpha1SinglePageApiUpdateDraftSinglePageRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiUpdateDraftSinglePage - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiUpdateDraftSinglePage + */ + readonly name: string - /** - * - * @type {SinglePageRequest} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiUpdateDraftSinglePage - */ - readonly singlePageRequest: SinglePageRequest; + /** + * + * @type {SinglePageRequest} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiUpdateDraftSinglePage + */ + readonly singlePageRequest: SinglePageRequest } /** @@ -1009,19 +714,19 @@ export interface ApiConsoleHaloRunV1alpha1SinglePageApiUpdateDraftSinglePageRequ * @interface ApiConsoleHaloRunV1alpha1SinglePageApiUpdateSinglePageContentRequest */ export interface ApiConsoleHaloRunV1alpha1SinglePageApiUpdateSinglePageContentRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiUpdateSinglePageContent - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiUpdateSinglePageContent + */ + readonly name: string - /** - * - * @type {Content} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiUpdateSinglePageContent - */ - readonly content: Content; + /** + * + * @type {Content} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApiUpdateSinglePageContent + */ + readonly content: Content } /** @@ -1031,134 +736,100 @@ export interface ApiConsoleHaloRunV1alpha1SinglePageApiUpdateSinglePageContentRe * @extends {BaseAPI} */ export class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI { - /** - * Draft a single page. - * @param {ApiConsoleHaloRunV1alpha1SinglePageApiDraftSinglePageRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApi - */ - public draftSinglePage( - requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiDraftSinglePageRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration) - .draftSinglePage(requestParameters.singlePageRequest, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Draft a single page. + * @param {ApiConsoleHaloRunV1alpha1SinglePageApiDraftSinglePageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApi + */ + public draftSinglePage(requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiDraftSinglePageRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Fetch head content of single page. - * @param {ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageHeadContentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApi - */ - public fetchSinglePageHeadContent( - requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageHeadContentRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration) - .fetchSinglePageHeadContent(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Fetch head content of single page. + * @param {ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageHeadContentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApi + */ + public fetchSinglePageHeadContent(requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageHeadContentRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).fetchSinglePageHeadContent(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Fetch release content of single page. - * @param {ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageReleaseContentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApi - */ - public fetchSinglePageReleaseContent( - requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageReleaseContentRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration) - .fetchSinglePageReleaseContent(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Fetch release content of single page. + * @param {ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageReleaseContentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApi + */ + public fetchSinglePageReleaseContent(requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageReleaseContentRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).fetchSinglePageReleaseContent(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List single pages. - * @param {ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePagesRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApi - */ - public listSinglePages( - requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePagesRequest = {}, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration) - .listSinglePages( - requestParameters.contributor, - requestParameters.fieldSelector, - requestParameters.keyword, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.publishPhase, - requestParameters.size, - requestParameters.sort, - requestParameters.visible, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List single pages. + * @param {ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePagesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApi + */ + public listSinglePages(requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePagesRequest = {}, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, requestParameters.contributor, requestParameters.publishPhase, requestParameters.visible, requestParameters.keyword, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Publish a single page. - * @param {ApiConsoleHaloRunV1alpha1SinglePageApiPublishSinglePageRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApi - */ - public publishSinglePage( - requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiPublishSinglePageRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration) - .publishSinglePage(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Publish a single page. + * @param {ApiConsoleHaloRunV1alpha1SinglePageApiPublishSinglePageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApi + */ + public publishSinglePage(requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiPublishSinglePageRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update a single page. - * @param {ApiConsoleHaloRunV1alpha1SinglePageApiUpdateDraftSinglePageRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApi - */ - public updateDraftSinglePage( - requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiUpdateDraftSinglePageRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration) - .updateDraftSinglePage( - requestParameters.name, - requestParameters.singlePageRequest, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update a single page. + * @param {ApiConsoleHaloRunV1alpha1SinglePageApiUpdateDraftSinglePageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApi + */ + public updateDraftSinglePage(requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiUpdateDraftSinglePageRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).updateDraftSinglePage(requestParameters.name, requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update a single page\'s content. - * @param {ApiConsoleHaloRunV1alpha1SinglePageApiUpdateSinglePageContentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1SinglePageApi - */ - public updateSinglePageContent( - requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiUpdateSinglePageContentRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration) - .updateSinglePageContent( - requestParameters.name, - requestParameters.content, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update a single page\'s content. + * @param {ApiConsoleHaloRunV1alpha1SinglePageApiUpdateSinglePageContentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1SinglePageApi + */ + public updateSinglePageContent(requestParameters: ApiConsoleHaloRunV1alpha1SinglePageApiUpdateSinglePageContentRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).updateSinglePageContent(requestParameters.name, requestParameters.content, options).then((request) => request(this.axios, this.basePath)); + } } + +/** + * @export + */ +export const ListSinglePagesPublishPhaseEnum = { + Draft: 'DRAFT', + PendingApproval: 'PENDING_APPROVAL', + Published: 'PUBLISHED', + Failed: 'FAILED' +} as const; +export type ListSinglePagesPublishPhaseEnum = typeof ListSinglePagesPublishPhaseEnum[keyof typeof ListSinglePagesPublishPhaseEnum]; +/** + * @export + */ +export const ListSinglePagesVisibleEnum = { + Public: 'PUBLIC', + Internal: 'INTERNAL', + Private: 'PRIVATE' +} as const; +export type ListSinglePagesVisibleEnum = typeof ListSinglePagesVisibleEnum[keyof typeof ListSinglePagesVisibleEnum]; diff --git a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-stats-api.ts b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-stats-api.ts index 6b24c237d..ea0fccb33 100644 --- a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-stats-api.ts +++ b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-stats-api.ts @@ -5,152 +5,107 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { DashboardStats } from "../models"; +import { DashboardStats } from '../models'; /** * ApiConsoleHaloRunV1alpha1StatsApi - axios parameter creator * @export */ -export const ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Get stats. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getStats: async ( - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.console.halo.run/v1alpha1/stats`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Get stats. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStats: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.console.halo.run/v1alpha1/stats`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ApiConsoleHaloRunV1alpha1StatsApi - functional programming interface * @export */ -export const ApiConsoleHaloRunV1alpha1StatsApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator(configuration); - return { - /** - * Get stats. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getStats( - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.getStats( - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiConsoleHaloRunV1alpha1StatsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator(configuration) + return { + /** + * Get stats. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getStats(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1StatsApi.getStats']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiConsoleHaloRunV1alpha1StatsApi - factory interface * @export */ -export const ApiConsoleHaloRunV1alpha1StatsApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiConsoleHaloRunV1alpha1StatsApiFp(configuration); - return { - /** - * Get stats. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getStats(options?: AxiosRequestConfig): AxiosPromise { - return localVarFp - .getStats(options) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiConsoleHaloRunV1alpha1StatsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiConsoleHaloRunV1alpha1StatsApiFp(configuration) + return { + /** + * Get stats. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStats(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getStats(options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -160,15 +115,14 @@ export const ApiConsoleHaloRunV1alpha1StatsApiFactory = function ( * @extends {BaseAPI} */ export class ApiConsoleHaloRunV1alpha1StatsApi extends BaseAPI { - /** - * Get stats. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1StatsApi - */ - public getStats(options?: AxiosRequestConfig) { - return ApiConsoleHaloRunV1alpha1StatsApiFp(this.configuration) - .getStats(options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get stats. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1StatsApi + */ + public getStats(options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1StatsApiFp(this.configuration).getStats(options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-system-api.ts b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-system-api.ts index 8657427b4..9322036b1 100644 --- a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-system-api.ts +++ b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-system-api.ts @@ -5,168 +5,113 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { SystemInitializationRequest } from "../models"; +import { SystemInitializationRequest } from '../models'; /** * ApiConsoleHaloRunV1alpha1SystemApi - axios parameter creator * @export */ -export const ApiConsoleHaloRunV1alpha1SystemApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Initialize system - * @param {SystemInitializationRequest} [systemInitializationRequest] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - initialize: async ( - systemInitializationRequest?: SystemInitializationRequest, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.console.halo.run/v1alpha1/system/initialize`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ApiConsoleHaloRunV1alpha1SystemApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Initialize system + * @param {SystemInitializationRequest} [systemInitializationRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + initialize: async (systemInitializationRequest?: SystemInitializationRequest, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.console.halo.run/v1alpha1/system/initialize`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - systemInitializationRequest, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(systemInitializationRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ApiConsoleHaloRunV1alpha1SystemApi - functional programming interface * @export */ -export const ApiConsoleHaloRunV1alpha1SystemApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiConsoleHaloRunV1alpha1SystemApiAxiosParamCreator(configuration); - return { - /** - * Initialize system - * @param {SystemInitializationRequest} [systemInitializationRequest] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async initialize( - systemInitializationRequest?: SystemInitializationRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.initialize( - systemInitializationRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiConsoleHaloRunV1alpha1SystemApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1SystemApiAxiosParamCreator(configuration) + return { + /** + * Initialize system + * @param {SystemInitializationRequest} [systemInitializationRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async initialize(systemInitializationRequest?: SystemInitializationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.initialize(systemInitializationRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1SystemApi.initialize']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiConsoleHaloRunV1alpha1SystemApi - factory interface * @export */ -export const ApiConsoleHaloRunV1alpha1SystemApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiConsoleHaloRunV1alpha1SystemApiFp(configuration); - return { - /** - * Initialize system - * @param {ApiConsoleHaloRunV1alpha1SystemApiInitializeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - initialize( - requestParameters: ApiConsoleHaloRunV1alpha1SystemApiInitializeRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .initialize(requestParameters.systemInitializationRequest, options) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiConsoleHaloRunV1alpha1SystemApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiConsoleHaloRunV1alpha1SystemApiFp(configuration) + return { + /** + * Initialize system + * @param {ApiConsoleHaloRunV1alpha1SystemApiInitializeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + initialize(requestParameters: ApiConsoleHaloRunV1alpha1SystemApiInitializeRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.initialize(requestParameters.systemInitializationRequest, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -175,12 +120,12 @@ export const ApiConsoleHaloRunV1alpha1SystemApiFactory = function ( * @interface ApiConsoleHaloRunV1alpha1SystemApiInitializeRequest */ export interface ApiConsoleHaloRunV1alpha1SystemApiInitializeRequest { - /** - * - * @type {SystemInitializationRequest} - * @memberof ApiConsoleHaloRunV1alpha1SystemApiInitialize - */ - readonly systemInitializationRequest?: SystemInitializationRequest; + /** + * + * @type {SystemInitializationRequest} + * @memberof ApiConsoleHaloRunV1alpha1SystemApiInitialize + */ + readonly systemInitializationRequest?: SystemInitializationRequest } /** @@ -190,19 +135,15 @@ export interface ApiConsoleHaloRunV1alpha1SystemApiInitializeRequest { * @extends {BaseAPI} */ export class ApiConsoleHaloRunV1alpha1SystemApi extends BaseAPI { - /** - * Initialize system - * @param {ApiConsoleHaloRunV1alpha1SystemApiInitializeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1SystemApi - */ - public initialize( - requestParameters: ApiConsoleHaloRunV1alpha1SystemApiInitializeRequest = {}, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1SystemApiFp(this.configuration) - .initialize(requestParameters.systemInitializationRequest, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Initialize system + * @param {ApiConsoleHaloRunV1alpha1SystemApiInitializeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1SystemApi + */ + public initialize(requestParameters: ApiConsoleHaloRunV1alpha1SystemApiInitializeRequest = {}, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1SystemApiFp(this.configuration).initialize(requestParameters.systemInitializationRequest, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-theme-api.ts b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-theme-api.ts index 6ba2e0f82..8865bf7aa 100644 --- a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-theme-api.ts +++ b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-theme-api.ts @@ -5,1251 +5,846 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { ConfigMap } from "../models"; +import { ConfigMap } from '../models'; // @ts-ignore -import { InstallFromUriRequest } from "../models"; +import { InstallFromUriRequest } from '../models'; // @ts-ignore -import { Setting } from "../models"; +import { Setting } from '../models'; // @ts-ignore -import { Theme } from "../models"; +import { Theme } from '../models'; // @ts-ignore -import { ThemeList } from "../models"; +import { ThemeList } from '../models'; // @ts-ignore -import { UpgradeFromUriRequest } from "../models"; +import { UpgradeFromUriRequest } from '../models'; /** * ApiConsoleHaloRunV1alpha1ThemeApi - axios parameter creator * @export */ -export const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Activate a theme by name. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - activateTheme: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("activateTheme", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/themes/{name}/activation`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Fetch the activated theme. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchActivatedTheme: async ( - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/-/activation`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Fetch configMap of theme by configured configMapName. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchThemeConfig: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("fetchThemeConfig", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/themes/{name}/config`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Fetch setting of theme. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchThemeSetting: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("fetchThemeSetting", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/themes/{name}/setting`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Install a theme by uploading a zip file. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - installTheme: async ( - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/install`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Install a theme from uri. - * @param {InstallFromUriRequest} installFromUriRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - installThemeFromUri: async ( - installFromUriRequest: InstallFromUriRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'installFromUriRequest' is not null or undefined - assertParamExists( - "installThemeFromUri", - "installFromUriRequest", - installFromUriRequest - ); - const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/-/install-from-uri`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - localVarHeaderParameter["Content-Type"] = "application/json"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - installFromUriRequest, - localVarRequestOptions, - configuration - ); - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List themes. - * @param {boolean} uninstalled - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listThemes: async ( - uninstalled: boolean, - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'uninstalled' is not null or undefined - assertParamExists("listThemes", "uninstalled", uninstalled); - const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } - - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } - - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } - - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } - - if (uninstalled !== undefined) { - localVarQueryParameter["uninstalled"] = uninstalled; - } - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Reload theme setting. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - reload: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("reload", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/themes/{name}/reload`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Reset the configMap of theme setting. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - resetThemeConfig: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("resetThemeConfig", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/themes/{name}/reset-config`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update the configMap of theme setting. - * @param {string} name - * @param {ConfigMap} configMap - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateThemeConfig: async ( - name: string, - configMap: ConfigMap, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updateThemeConfig", "name", name); - // verify required parameter 'configMap' is not null or undefined - assertParamExists("updateThemeConfig", "configMap", configMap); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/themes/{name}/config`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - localVarHeaderParameter["Content-Type"] = "application/json"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - configMap, - localVarRequestOptions, - configuration - ); - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Upgrade theme - * @param {string} name - * @param {File} file - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - upgradeTheme: async ( - name: string, - file: File, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("upgradeTheme", "name", name); - // verify required parameter 'file' is not null or undefined - assertParamExists("upgradeTheme", "file", file); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/themes/{name}/upgrade`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - const localVarFormParams = new ((configuration && - configuration.formDataCtor) || - FormData)(); - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - if (file !== undefined) { - localVarFormParams.append("file", file as any); - } - - localVarHeaderParameter["Content-Type"] = "multipart/form-data"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = localVarFormParams; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Upgrade a theme from uri. - * @param {string} name - * @param {UpgradeFromUriRequest} upgradeFromUriRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - upgradeThemeFromUri: async ( - name: string, - upgradeFromUriRequest: UpgradeFromUriRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("upgradeThemeFromUri", "name", name); - // verify required parameter 'upgradeFromUriRequest' is not null or undefined - assertParamExists( - "upgradeThemeFromUri", - "upgradeFromUriRequest", - upgradeFromUriRequest - ); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/themes/{name}/upgrade-from-uri`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - localVarHeaderParameter["Content-Type"] = "application/json"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - upgradeFromUriRequest, - localVarRequestOptions, - configuration - ); - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; +export const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Activate a theme by name. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + activateTheme: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('activateTheme', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/activation` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Fetch the activated theme. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchActivatedTheme: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/-/activation`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Fetch configMap of theme by configured configMapName. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchThemeConfig: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('fetchThemeConfig', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/config` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Fetch setting of theme. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchThemeSetting: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('fetchThemeSetting', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/setting` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Install a theme by uploading a zip file. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + installTheme: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/install`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Install a theme from uri. + * @param {InstallFromUriRequest} installFromUriRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + installThemeFromUri: async (installFromUriRequest: InstallFromUriRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'installFromUriRequest' is not null or undefined + assertParamExists('installThemeFromUri', 'installFromUriRequest', installFromUriRequest) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/-/install-from-uri`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(installFromUriRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List themes. + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {boolean} [uninstalled] Whether to list uninstalled themes. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listThemes: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, uninstalled?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } + + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } + + if (uninstalled !== undefined) { + localVarQueryParameter['uninstalled'] = uninstalled; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Reload theme setting. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + reload: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('reload', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/reload` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Reset the configMap of theme setting. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetThemeConfig: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('resetThemeConfig', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/reset-config` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update the configMap of theme setting. + * @param {string} name + * @param {ConfigMap} configMap + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateThemeConfig: async (name: string, configMap: ConfigMap, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updateThemeConfig', 'name', name) + // verify required parameter 'configMap' is not null or undefined + assertParamExists('updateThemeConfig', 'configMap', configMap) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/config` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(configMap, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Upgrade theme + * @param {string} name + * @param {File} file + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + upgradeTheme: async (name: string, file: File, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('upgradeTheme', 'name', name) + // verify required parameter 'file' is not null or undefined + assertParamExists('upgradeTheme', 'file', file) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/upgrade` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + if (file !== undefined) { + localVarFormParams.append('file', file as any); + } + + + localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = localVarFormParams; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Upgrade a theme from uri. + * @param {string} name + * @param {UpgradeFromUriRequest} upgradeFromUriRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + upgradeThemeFromUri: async (name: string, upgradeFromUriRequest: UpgradeFromUriRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('upgradeThemeFromUri', 'name', name) + // verify required parameter 'upgradeFromUriRequest' is not null or undefined + assertParamExists('upgradeThemeFromUri', 'upgradeFromUriRequest', upgradeFromUriRequest) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/upgrade-from-uri` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(upgradeFromUriRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ApiConsoleHaloRunV1alpha1ThemeApi - functional programming interface * @export */ -export const ApiConsoleHaloRunV1alpha1ThemeApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator(configuration); - return { - /** - * Activate a theme by name. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async activateTheme( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.activateTheme( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Fetch the activated theme. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async fetchActivatedTheme( - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.fetchActivatedTheme(options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Fetch configMap of theme by configured configMapName. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async fetchThemeConfig( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.fetchThemeConfig(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Fetch setting of theme. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async fetchThemeSetting( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.fetchThemeSetting(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Install a theme by uploading a zip file. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async installTheme( - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme( - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Install a theme from uri. - * @param {InstallFromUriRequest} installFromUriRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async installThemeFromUri( - installFromUriRequest: InstallFromUriRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.installThemeFromUri( - installFromUriRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List themes. - * @param {boolean} uninstalled - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listThemes( - uninstalled: boolean, - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes( - uninstalled, - fieldSelector, - labelSelector, - page, - size, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Reload theme setting. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async reload( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.reload( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Reset the configMap of theme setting. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async resetThemeConfig( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.resetThemeConfig(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update the configMap of theme setting. - * @param {string} name - * @param {ConfigMap} configMap - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateThemeConfig( - name: string, - configMap: ConfigMap, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updateThemeConfig( - name, - configMap, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Upgrade theme - * @param {string} name - * @param {File} file - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async upgradeTheme( - name: string, - file: File, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.upgradeTheme( - name, - file, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Upgrade a theme from uri. - * @param {string} name - * @param {UpgradeFromUriRequest} upgradeFromUriRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async upgradeThemeFromUri( - name: string, - upgradeFromUriRequest: UpgradeFromUriRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.upgradeThemeFromUri( - name, - upgradeFromUriRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator(configuration) + return { + /** + * Activate a theme by name. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async activateTheme(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.activateTheme(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1ThemeApi.activateTheme']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Fetch the activated theme. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async fetchActivatedTheme(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.fetchActivatedTheme(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1ThemeApi.fetchActivatedTheme']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Fetch configMap of theme by configured configMapName. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async fetchThemeConfig(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.fetchThemeConfig(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1ThemeApi.fetchThemeConfig']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Fetch setting of theme. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async fetchThemeSetting(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.fetchThemeSetting(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1ThemeApi.fetchThemeSetting']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Install a theme by uploading a zip file. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async installTheme(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1ThemeApi.installTheme']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Install a theme from uri. + * @param {InstallFromUriRequest} installFromUriRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async installThemeFromUri(installFromUriRequest: InstallFromUriRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.installThemeFromUri(installFromUriRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1ThemeApi.installThemeFromUri']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List themes. + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {boolean} [uninstalled] Whether to list uninstalled themes. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listThemes(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, uninstalled?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(page, size, labelSelector, fieldSelector, uninstalled, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1ThemeApi.listThemes']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Reload theme setting. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async reload(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.reload(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1ThemeApi.reload']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Reset the configMap of theme setting. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async resetThemeConfig(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.resetThemeConfig(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1ThemeApi.resetThemeConfig']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update the configMap of theme setting. + * @param {string} name + * @param {ConfigMap} configMap + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateThemeConfig(name: string, configMap: ConfigMap, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateThemeConfig(name, configMap, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1ThemeApi.updateThemeConfig']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Upgrade theme + * @param {string} name + * @param {File} file + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async upgradeTheme(name: string, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.upgradeTheme(name, file, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1ThemeApi.upgradeTheme']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Upgrade a theme from uri. + * @param {string} name + * @param {UpgradeFromUriRequest} upgradeFromUriRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async upgradeThemeFromUri(name: string, upgradeFromUriRequest: UpgradeFromUriRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.upgradeThemeFromUri(name, upgradeFromUriRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1ThemeApi.upgradeThemeFromUri']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiConsoleHaloRunV1alpha1ThemeApi - factory interface * @export */ -export const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiConsoleHaloRunV1alpha1ThemeApiFp(configuration); - return { - /** - * Activate a theme by name. - * @param {ApiConsoleHaloRunV1alpha1ThemeApiActivateThemeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - activateTheme( - requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiActivateThemeRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .activateTheme(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Fetch the activated theme. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchActivatedTheme(options?: AxiosRequestConfig): AxiosPromise { - return localVarFp - .fetchActivatedTheme(options) - .then((request) => request(axios, basePath)); - }, - /** - * Fetch configMap of theme by configured configMapName. - * @param {ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchThemeConfig( - requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeConfigRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .fetchThemeConfig(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Fetch setting of theme. - * @param {ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeSettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchThemeSetting( - requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeSettingRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .fetchThemeSetting(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Install a theme by uploading a zip file. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - installTheme(options?: AxiosRequestConfig): AxiosPromise { - return localVarFp - .installTheme(options) - .then((request) => request(axios, basePath)); - }, - /** - * Install a theme from uri. - * @param {ApiConsoleHaloRunV1alpha1ThemeApiInstallThemeFromUriRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - installThemeFromUri( - requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiInstallThemeFromUriRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .installThemeFromUri(requestParameters.installFromUriRequest, options) - .then((request) => request(axios, basePath)); - }, - /** - * List themes. - * @param {ApiConsoleHaloRunV1alpha1ThemeApiListThemesRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listThemes( - requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiListThemesRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listThemes( - requestParameters.uninstalled, - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Reload theme setting. - * @param {ApiConsoleHaloRunV1alpha1ThemeApiReloadRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - reload( - requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiReloadRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .reload(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Reset the configMap of theme setting. - * @param {ApiConsoleHaloRunV1alpha1ThemeApiResetThemeConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - resetThemeConfig( - requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiResetThemeConfigRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .resetThemeConfig(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Update the configMap of theme setting. - * @param {ApiConsoleHaloRunV1alpha1ThemeApiUpdateThemeConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateThemeConfig( - requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiUpdateThemeConfigRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updateThemeConfig( - requestParameters.name, - requestParameters.configMap, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Upgrade theme - * @param {ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - upgradeTheme( - requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .upgradeTheme(requestParameters.name, requestParameters.file, options) - .then((request) => request(axios, basePath)); - }, - /** - * Upgrade a theme from uri. - * @param {ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeFromUriRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - upgradeThemeFromUri( - requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeFromUriRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .upgradeThemeFromUri( - requestParameters.name, - requestParameters.upgradeFromUriRequest, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiConsoleHaloRunV1alpha1ThemeApiFp(configuration) + return { + /** + * Activate a theme by name. + * @param {ApiConsoleHaloRunV1alpha1ThemeApiActivateThemeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + activateTheme(requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiActivateThemeRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.activateTheme(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Fetch the activated theme. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchActivatedTheme(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.fetchActivatedTheme(options).then((request) => request(axios, basePath)); + }, + /** + * Fetch configMap of theme by configured configMapName. + * @param {ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchThemeConfig(requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.fetchThemeConfig(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Fetch setting of theme. + * @param {ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeSettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchThemeSetting(requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeSettingRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.fetchThemeSetting(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Install a theme by uploading a zip file. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + installTheme(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.installTheme(options).then((request) => request(axios, basePath)); + }, + /** + * Install a theme from uri. + * @param {ApiConsoleHaloRunV1alpha1ThemeApiInstallThemeFromUriRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + installThemeFromUri(requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiInstallThemeFromUriRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.installThemeFromUri(requestParameters.installFromUriRequest, options).then((request) => request(axios, basePath)); + }, + /** + * List themes. + * @param {ApiConsoleHaloRunV1alpha1ThemeApiListThemesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listThemes(requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiListThemesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listThemes(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.uninstalled, options).then((request) => request(axios, basePath)); + }, + /** + * Reload theme setting. + * @param {ApiConsoleHaloRunV1alpha1ThemeApiReloadRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + reload(requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiReloadRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.reload(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Reset the configMap of theme setting. + * @param {ApiConsoleHaloRunV1alpha1ThemeApiResetThemeConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetThemeConfig(requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiResetThemeConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.resetThemeConfig(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Update the configMap of theme setting. + * @param {ApiConsoleHaloRunV1alpha1ThemeApiUpdateThemeConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateThemeConfig(requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiUpdateThemeConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updateThemeConfig(requestParameters.name, requestParameters.configMap, options).then((request) => request(axios, basePath)); + }, + /** + * Upgrade theme + * @param {ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + upgradeTheme(requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.upgradeTheme(requestParameters.name, requestParameters.file, options).then((request) => request(axios, basePath)); + }, + /** + * Upgrade a theme from uri. + * @param {ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeFromUriRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + upgradeThemeFromUri(requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeFromUriRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.upgradeThemeFromUri(requestParameters.name, requestParameters.upgradeFromUriRequest, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -1258,12 +853,12 @@ export const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function ( * @interface ApiConsoleHaloRunV1alpha1ThemeApiActivateThemeRequest */ export interface ApiConsoleHaloRunV1alpha1ThemeApiActivateThemeRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApiActivateTheme - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApiActivateTheme + */ + readonly name: string } /** @@ -1272,12 +867,12 @@ export interface ApiConsoleHaloRunV1alpha1ThemeApiActivateThemeRequest { * @interface ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeConfigRequest */ export interface ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeConfigRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeConfig - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeConfig + */ + readonly name: string } /** @@ -1286,12 +881,12 @@ export interface ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeConfigRequest { * @interface ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeSettingRequest */ export interface ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeSettingRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeSetting - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeSetting + */ + readonly name: string } /** @@ -1300,12 +895,12 @@ export interface ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeSettingRequest { * @interface ApiConsoleHaloRunV1alpha1ThemeApiInstallThemeFromUriRequest */ export interface ApiConsoleHaloRunV1alpha1ThemeApiInstallThemeFromUriRequest { - /** - * - * @type {InstallFromUriRequest} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApiInstallThemeFromUri - */ - readonly installFromUriRequest: InstallFromUriRequest; + /** + * + * @type {InstallFromUriRequest} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApiInstallThemeFromUri + */ + readonly installFromUriRequest: InstallFromUriRequest } /** @@ -1314,40 +909,40 @@ export interface ApiConsoleHaloRunV1alpha1ThemeApiInstallThemeFromUriRequest { * @interface ApiConsoleHaloRunV1alpha1ThemeApiListThemesRequest */ export interface ApiConsoleHaloRunV1alpha1ThemeApiListThemesRequest { - /** - * - * @type {boolean} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApiListThemes - */ - readonly uninstalled: boolean; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApiListThemes + */ + readonly page?: number - /** - * Field selector for filtering. - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApiListThemes - */ - readonly fieldSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApiListThemes + */ + readonly size?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApiListThemes - */ - readonly labelSelector?: Array; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApiListThemes + */ + readonly labelSelector?: Array - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApiListThemes - */ - readonly page?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApiListThemes + */ + readonly fieldSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApiListThemes - */ - readonly size?: number; + /** + * Whether to list uninstalled themes. + * @type {boolean} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApiListThemes + */ + readonly uninstalled?: boolean } /** @@ -1356,12 +951,12 @@ export interface ApiConsoleHaloRunV1alpha1ThemeApiListThemesRequest { * @interface ApiConsoleHaloRunV1alpha1ThemeApiReloadRequest */ export interface ApiConsoleHaloRunV1alpha1ThemeApiReloadRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApiReload - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApiReload + */ + readonly name: string } /** @@ -1370,12 +965,12 @@ export interface ApiConsoleHaloRunV1alpha1ThemeApiReloadRequest { * @interface ApiConsoleHaloRunV1alpha1ThemeApiResetThemeConfigRequest */ export interface ApiConsoleHaloRunV1alpha1ThemeApiResetThemeConfigRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApiResetThemeConfig - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApiResetThemeConfig + */ + readonly name: string } /** @@ -1384,19 +979,19 @@ export interface ApiConsoleHaloRunV1alpha1ThemeApiResetThemeConfigRequest { * @interface ApiConsoleHaloRunV1alpha1ThemeApiUpdateThemeConfigRequest */ export interface ApiConsoleHaloRunV1alpha1ThemeApiUpdateThemeConfigRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApiUpdateThemeConfig - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApiUpdateThemeConfig + */ + readonly name: string - /** - * - * @type {ConfigMap} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApiUpdateThemeConfig - */ - readonly configMap: ConfigMap; + /** + * + * @type {ConfigMap} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApiUpdateThemeConfig + */ + readonly configMap: ConfigMap } /** @@ -1405,19 +1000,19 @@ export interface ApiConsoleHaloRunV1alpha1ThemeApiUpdateThemeConfigRequest { * @interface ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeRequest */ export interface ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApiUpgradeTheme - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApiUpgradeTheme + */ + readonly name: string - /** - * - * @type {File} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApiUpgradeTheme - */ - readonly file: File; + /** + * + * @type {File} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApiUpgradeTheme + */ + readonly file: File } /** @@ -1426,19 +1021,19 @@ export interface ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeRequest { * @interface ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeFromUriRequest */ export interface ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeFromUriRequest { - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeFromUri - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeFromUri + */ + readonly name: string - /** - * - * @type {UpgradeFromUriRequest} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeFromUri - */ - readonly upgradeFromUriRequest: UpgradeFromUriRequest; + /** + * + * @type {UpgradeFromUriRequest} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeFromUri + */ + readonly upgradeFromUriRequest: UpgradeFromUriRequest } /** @@ -1448,202 +1043,134 @@ export interface ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeFromUriRequest { * @extends {BaseAPI} */ export class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI { - /** - * Activate a theme by name. - * @param {ApiConsoleHaloRunV1alpha1ThemeApiActivateThemeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApi - */ - public activateTheme( - requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiActivateThemeRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration) - .activateTheme(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Activate a theme by name. + * @param {ApiConsoleHaloRunV1alpha1ThemeApiActivateThemeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApi + */ + public activateTheme(requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiActivateThemeRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).activateTheme(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Fetch the activated theme. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApi - */ - public fetchActivatedTheme(options?: AxiosRequestConfig) { - return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration) - .fetchActivatedTheme(options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Fetch the activated theme. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApi + */ + public fetchActivatedTheme(options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).fetchActivatedTheme(options).then((request) => request(this.axios, this.basePath)); + } - /** - * Fetch configMap of theme by configured configMapName. - * @param {ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApi - */ - public fetchThemeConfig( - requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeConfigRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration) - .fetchThemeConfig(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Fetch configMap of theme by configured configMapName. + * @param {ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApi + */ + public fetchThemeConfig(requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeConfigRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).fetchThemeConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Fetch setting of theme. - * @param {ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeSettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApi - */ - public fetchThemeSetting( - requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeSettingRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration) - .fetchThemeSetting(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Fetch setting of theme. + * @param {ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeSettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApi + */ + public fetchThemeSetting(requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiFetchThemeSettingRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).fetchThemeSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Install a theme by uploading a zip file. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApi - */ - public installTheme(options?: AxiosRequestConfig) { - return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration) - .installTheme(options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Install a theme by uploading a zip file. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApi + */ + public installTheme(options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(options).then((request) => request(this.axios, this.basePath)); + } - /** - * Install a theme from uri. - * @param {ApiConsoleHaloRunV1alpha1ThemeApiInstallThemeFromUriRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApi - */ - public installThemeFromUri( - requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiInstallThemeFromUriRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration) - .installThemeFromUri(requestParameters.installFromUriRequest, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Install a theme from uri. + * @param {ApiConsoleHaloRunV1alpha1ThemeApiInstallThemeFromUriRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApi + */ + public installThemeFromUri(requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiInstallThemeFromUriRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installThemeFromUri(requestParameters.installFromUriRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List themes. - * @param {ApiConsoleHaloRunV1alpha1ThemeApiListThemesRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApi - */ - public listThemes( - requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiListThemesRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration) - .listThemes( - requestParameters.uninstalled, - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List themes. + * @param {ApiConsoleHaloRunV1alpha1ThemeApiListThemesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApi + */ + public listThemes(requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiListThemesRequest = {}, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.uninstalled, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Reload theme setting. - * @param {ApiConsoleHaloRunV1alpha1ThemeApiReloadRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApi - */ - public reload( - requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiReloadRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration) - .reload(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Reload theme setting. + * @param {ApiConsoleHaloRunV1alpha1ThemeApiReloadRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApi + */ + public reload(requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiReloadRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reload(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Reset the configMap of theme setting. - * @param {ApiConsoleHaloRunV1alpha1ThemeApiResetThemeConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApi - */ - public resetThemeConfig( - requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiResetThemeConfigRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration) - .resetThemeConfig(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Reset the configMap of theme setting. + * @param {ApiConsoleHaloRunV1alpha1ThemeApiResetThemeConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApi + */ + public resetThemeConfig(requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiResetThemeConfigRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).resetThemeConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update the configMap of theme setting. - * @param {ApiConsoleHaloRunV1alpha1ThemeApiUpdateThemeConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApi - */ - public updateThemeConfig( - requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiUpdateThemeConfigRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration) - .updateThemeConfig( - requestParameters.name, - requestParameters.configMap, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update the configMap of theme setting. + * @param {ApiConsoleHaloRunV1alpha1ThemeApiUpdateThemeConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApi + */ + public updateThemeConfig(requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiUpdateThemeConfigRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).updateThemeConfig(requestParameters.name, requestParameters.configMap, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Upgrade theme - * @param {ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApi - */ - public upgradeTheme( - requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration) - .upgradeTheme(requestParameters.name, requestParameters.file, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Upgrade theme + * @param {ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApi + */ + public upgradeTheme(requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).upgradeTheme(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Upgrade a theme from uri. - * @param {ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeFromUriRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1ThemeApi - */ - public upgradeThemeFromUri( - requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeFromUriRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration) - .upgradeThemeFromUri( - requestParameters.name, - requestParameters.upgradeFromUriRequest, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Upgrade a theme from uri. + * @param {ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeFromUriRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1ThemeApi + */ + public upgradeThemeFromUri(requestParameters: ApiConsoleHaloRunV1alpha1ThemeApiUpgradeThemeFromUriRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).upgradeThemeFromUri(requestParameters.name, requestParameters.upgradeFromUriRequest, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-user-api.ts b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-user-api.ts index e8dd54c6f..7f99a3b90 100644 --- a/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-user-api.ts +++ b/ui/packages/api-client/src/api/api-console-halo-run-v1alpha1-user-api.ts @@ -5,1308 +5,876 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { ChangePasswordRequest } from "../models"; +import { ChangePasswordRequest } from '../models'; // @ts-ignore -import { CreateUserRequest } from "../models"; +import { CreateUserRequest } from '../models'; // @ts-ignore -import { DetailedUser } from "../models"; +import { DetailedUser } from '../models'; // @ts-ignore -import { EmailVerifyRequest } from "../models"; +import { EmailVerifyRequest } from '../models'; // @ts-ignore -import { GrantRequest } from "../models"; +import { GrantRequest } from '../models'; // @ts-ignore -import { User } from "../models"; +import { User } from '../models'; // @ts-ignore -import { UserEndpointListedUserList } from "../models"; +import { UserEndpointListedUserList } from '../models'; // @ts-ignore -import { UserPermission } from "../models"; +import { UserPermission } from '../models'; // @ts-ignore -import { VerifyCodeRequest } from "../models"; +import { VerifyCodeRequest } from '../models'; /** * ApiConsoleHaloRunV1alpha1UserApi - axios parameter creator * @export */ -export const ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Change password of user. - * @param {string} name Name of user. If the name is equal to \'-\', it will change the password of current user. - * @param {ChangePasswordRequest} changePasswordRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - changePassword: async ( - name: string, - changePasswordRequest: ChangePasswordRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("changePassword", "name", name); - // verify required parameter 'changePasswordRequest' is not null or undefined - assertParamExists( - "changePassword", - "changePasswordRequest", - changePasswordRequest - ); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/users/{name}/password`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - localVarHeaderParameter["Content-Type"] = "application/json"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - changePasswordRequest, - localVarRequestOptions, - configuration - ); - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Creates a new user. - * @param {CreateUserRequest} createUserRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createUser: async ( - createUserRequest: CreateUserRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'createUserRequest' is not null or undefined - assertParamExists("createUser", "createUserRequest", createUserRequest); - const localVarPath = `/apis/api.console.halo.run/v1alpha1/users`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - localVarHeaderParameter["Content-Type"] = "application/json"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - createUserRequest, - localVarRequestOptions, - configuration - ); - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * delete user avatar - * @param {string} name User name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteUserAvatar: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deleteUserAvatar", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/users/{name}/avatar`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get current user detail - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getCurrentUserDetail: async ( - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/-`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get permissions of user - * @param {string} name User name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getPermissions: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getPermissions", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/users/{name}/permissions`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get user detail by name - * @param {string} name User name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getUserDetail: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getUserDetail", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/users/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Grant permissions to user - * @param {string} name User name - * @param {GrantRequest} grantRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - grantPermission: async ( - name: string, - grantRequest: GrantRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("grantPermission", "name", name); - // verify required parameter 'grantRequest' is not null or undefined - assertParamExists("grantPermission", "grantRequest", grantRequest); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/users/{name}/permissions`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - localVarHeaderParameter["Content-Type"] = "application/json"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - grantRequest, - localVarRequestOptions, - configuration - ); - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List users - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {string} [keyword] - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {string} [role] - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listUsers: async ( - fieldSelector?: Array, - keyword?: string, - labelSelector?: Array, - page?: number, - role?: string, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.console.halo.run/v1alpha1/users`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } - - if (keyword !== undefined) { - localVarQueryParameter["keyword"] = keyword; - } - - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } - - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } - - if (role !== undefined) { - localVarQueryParameter["role"] = role; - } - - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } - - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Send email verification code for user - * @param {EmailVerifyRequest} emailVerifyRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - sendEmailVerificationCode: async ( - emailVerifyRequest: EmailVerifyRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'emailVerifyRequest' is not null or undefined - assertParamExists( - "sendEmailVerificationCode", - "emailVerifyRequest", - emailVerifyRequest - ); - const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/-/send-email-verification-code`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - localVarHeaderParameter["Content-Type"] = "application/json"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - emailVerifyRequest, - localVarRequestOptions, - configuration - ); - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update current user profile, but password. - * @param {User} user - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateCurrentUser: async ( - user: User, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'user' is not null or undefined - assertParamExists("updateCurrentUser", "user", user); - const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/-`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - localVarHeaderParameter["Content-Type"] = "application/json"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - user, - localVarRequestOptions, - configuration - ); - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * upload user avatar - * @param {string} name User name - * @param {File} file - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - uploadUserAvatar: async ( - name: string, - file: File, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("uploadUserAvatar", "name", name); - // verify required parameter 'file' is not null or undefined - assertParamExists("uploadUserAvatar", "file", file); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/users/{name}/avatar`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - const localVarFormParams = new ((configuration && - configuration.formDataCtor) || - FormData)(); - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - if (file !== undefined) { - localVarFormParams.append("file", file as any); - } - - localVarHeaderParameter["Content-Type"] = "multipart/form-data"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = localVarFormParams; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Verify email for user by code. - * @param {VerifyCodeRequest} verifyCodeRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - verifyEmail: async ( - verifyCodeRequest: VerifyCodeRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'verifyCodeRequest' is not null or undefined - assertParamExists("verifyEmail", "verifyCodeRequest", verifyCodeRequest); - const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/-/verify-email`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - localVarHeaderParameter["Content-Type"] = "application/json"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - verifyCodeRequest, - localVarRequestOptions, - configuration - ); - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; +export const ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Change password of user. + * @param {string} name Name of user. If the name is equal to \'-\', it will change the password of current user. + * @param {ChangePasswordRequest} changePasswordRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + changePassword: async (name: string, changePasswordRequest: ChangePasswordRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('changePassword', 'name', name) + // verify required parameter 'changePasswordRequest' is not null or undefined + assertParamExists('changePassword', 'changePasswordRequest', changePasswordRequest) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/{name}/password` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(changePasswordRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Creates a new user. + * @param {CreateUserRequest} createUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createUser: async (createUserRequest: CreateUserRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'createUserRequest' is not null or undefined + assertParamExists('createUser', 'createUserRequest', createUserRequest) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/users`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(createUserRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * delete user avatar + * @param {string} name User name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteUserAvatar: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deleteUserAvatar', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/{name}/avatar` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get current user detail + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCurrentUserDetail: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/-`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get permissions of user + * @param {string} name User name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPermissions: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getPermissions', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/{name}/permissions` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get user detail by name + * @param {string} name User name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDetail: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getUserDetail', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Grant permissions to user + * @param {string} name User name + * @param {GrantRequest} grantRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + grantPermission: async (name: string, grantRequest: GrantRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('grantPermission', 'name', name) + // verify required parameter 'grantRequest' is not null or undefined + assertParamExists('grantPermission', 'grantRequest', grantRequest) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/{name}/permissions` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(grantRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List users + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {string} [keyword] Keyword to search + * @param {string} [role] Role name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listUsers: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, keyword?: string, role?: string, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.console.halo.run/v1alpha1/users`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } + + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } + + if (sort) { + localVarQueryParameter['sort'] = sort; + } + + if (keyword !== undefined) { + localVarQueryParameter['keyword'] = keyword; + } + + if (role !== undefined) { + localVarQueryParameter['role'] = role; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Send email verification code for user + * @param {EmailVerifyRequest} emailVerifyRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + sendEmailVerificationCode: async (emailVerifyRequest: EmailVerifyRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'emailVerifyRequest' is not null or undefined + assertParamExists('sendEmailVerificationCode', 'emailVerifyRequest', emailVerifyRequest) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/-/send-email-verification-code`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(emailVerifyRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update current user profile, but password. + * @param {User} user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateCurrentUser: async (user: User, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'user' is not null or undefined + assertParamExists('updateCurrentUser', 'user', user) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/-`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(user, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * upload user avatar + * @param {string} name User name + * @param {File} file + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uploadUserAvatar: async (name: string, file: File, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('uploadUserAvatar', 'name', name) + // verify required parameter 'file' is not null or undefined + assertParamExists('uploadUserAvatar', 'file', file) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/{name}/avatar` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + if (file !== undefined) { + localVarFormParams.append('file', file as any); + } + + + localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = localVarFormParams; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Verify email for user by code. + * @param {VerifyCodeRequest} verifyCodeRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyEmail: async (verifyCodeRequest: VerifyCodeRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'verifyCodeRequest' is not null or undefined + assertParamExists('verifyEmail', 'verifyCodeRequest', verifyCodeRequest) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/-/verify-email`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(verifyCodeRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ApiConsoleHaloRunV1alpha1UserApi - functional programming interface * @export */ -export const ApiConsoleHaloRunV1alpha1UserApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator(configuration); - return { - /** - * Change password of user. - * @param {string} name Name of user. If the name is equal to \'-\', it will change the password of current user. - * @param {ChangePasswordRequest} changePasswordRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async changePassword( - name: string, - changePasswordRequest: ChangePasswordRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword( - name, - changePasswordRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Creates a new user. - * @param {CreateUserRequest} createUserRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createUser( - createUserRequest: CreateUserRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.createUser( - createUserRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * delete user avatar - * @param {string} name User name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deleteUserAvatar( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deleteUserAvatar(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get current user detail - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getCurrentUserDetail( - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getCurrentUserDetail(options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get permissions of user - * @param {string} name User name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getPermissions( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPermissions( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get user detail by name - * @param {string} name User name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getUserDetail( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.getUserDetail( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Grant permissions to user - * @param {string} name User name - * @param {GrantRequest} grantRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async grantPermission( - name: string, - grantRequest: GrantRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.grantPermission( - name, - grantRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List users - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {string} [keyword] - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {string} [role] - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listUsers( - fieldSelector?: Array, - keyword?: string, - labelSelector?: Array, - page?: number, - role?: string, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers( - fieldSelector, - keyword, - labelSelector, - page, - role, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Send email verification code for user - * @param {EmailVerifyRequest} emailVerifyRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async sendEmailVerificationCode( - emailVerifyRequest: EmailVerifyRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.sendEmailVerificationCode( - emailVerifyRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update current user profile, but password. - * @param {User} user - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateCurrentUser( - user: User, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updateCurrentUser(user, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * upload user avatar - * @param {string} name User name - * @param {File} file - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async uploadUserAvatar( - name: string, - file: File, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.uploadUserAvatar(name, file, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Verify email for user by code. - * @param {VerifyCodeRequest} verifyCodeRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async verifyEmail( - verifyCodeRequest: VerifyCodeRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.verifyEmail( - verifyCodeRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiConsoleHaloRunV1alpha1UserApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator(configuration) + return { + /** + * Change password of user. + * @param {string} name Name of user. If the name is equal to \'-\', it will change the password of current user. + * @param {ChangePasswordRequest} changePasswordRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async changePassword(name: string, changePasswordRequest: ChangePasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(name, changePasswordRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1UserApi.changePassword']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Creates a new user. + * @param {CreateUserRequest} createUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createUser(createUserRequest: CreateUserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1UserApi.createUser']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * delete user avatar + * @param {string} name User name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteUserAvatar(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUserAvatar(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1UserApi.deleteUserAvatar']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get current user detail + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getCurrentUserDetail(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentUserDetail(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1UserApi.getCurrentUserDetail']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get permissions of user + * @param {string} name User name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getPermissions(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPermissions(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1UserApi.getPermissions']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get user detail by name + * @param {string} name User name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUserDetail(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserDetail(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1UserApi.getUserDetail']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Grant permissions to user + * @param {string} name User name + * @param {GrantRequest} grantRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async grantPermission(name: string, grantRequest: GrantRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.grantPermission(name, grantRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1UserApi.grantPermission']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List users + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {string} [keyword] Keyword to search + * @param {string} [role] Role name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listUsers(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, keyword?: string, role?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(page, size, labelSelector, fieldSelector, sort, keyword, role, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1UserApi.listUsers']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Send email verification code for user + * @param {EmailVerifyRequest} emailVerifyRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async sendEmailVerificationCode(emailVerifyRequest: EmailVerifyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.sendEmailVerificationCode(emailVerifyRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1UserApi.sendEmailVerificationCode']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update current user profile, but password. + * @param {User} user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateCurrentUser(user: User, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateCurrentUser(user, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1UserApi.updateCurrentUser']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * upload user avatar + * @param {string} name User name + * @param {File} file + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async uploadUserAvatar(name: string, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.uploadUserAvatar(name, file, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1UserApi.uploadUserAvatar']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Verify email for user by code. + * @param {VerifyCodeRequest} verifyCodeRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async verifyEmail(verifyCodeRequest: VerifyCodeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.verifyEmail(verifyCodeRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleHaloRunV1alpha1UserApi.verifyEmail']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiConsoleHaloRunV1alpha1UserApi - factory interface * @export */ -export const ApiConsoleHaloRunV1alpha1UserApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiConsoleHaloRunV1alpha1UserApiFp(configuration); - return { - /** - * Change password of user. - * @param {ApiConsoleHaloRunV1alpha1UserApiChangePasswordRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - changePassword( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiChangePasswordRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .changePassword( - requestParameters.name, - requestParameters.changePasswordRequest, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Creates a new user. - * @param {ApiConsoleHaloRunV1alpha1UserApiCreateUserRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createUser( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiCreateUserRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createUser(requestParameters.createUserRequest, options) - .then((request) => request(axios, basePath)); - }, - /** - * delete user avatar - * @param {ApiConsoleHaloRunV1alpha1UserApiDeleteUserAvatarRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteUserAvatar( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiDeleteUserAvatarRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deleteUserAvatar(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get current user detail - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getCurrentUserDetail( - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getCurrentUserDetail(options) - .then((request) => request(axios, basePath)); - }, - /** - * Get permissions of user - * @param {ApiConsoleHaloRunV1alpha1UserApiGetPermissionsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getPermissions( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiGetPermissionsRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getPermissions(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get user detail by name - * @param {ApiConsoleHaloRunV1alpha1UserApiGetUserDetailRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getUserDetail( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiGetUserDetailRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getUserDetail(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Grant permissions to user - * @param {ApiConsoleHaloRunV1alpha1UserApiGrantPermissionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - grantPermission( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiGrantPermissionRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .grantPermission( - requestParameters.name, - requestParameters.grantRequest, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * List users - * @param {ApiConsoleHaloRunV1alpha1UserApiListUsersRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listUsers( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiListUsersRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listUsers( - requestParameters.fieldSelector, - requestParameters.keyword, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.role, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Send email verification code for user - * @param {ApiConsoleHaloRunV1alpha1UserApiSendEmailVerificationCodeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - sendEmailVerificationCode( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiSendEmailVerificationCodeRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .sendEmailVerificationCode( - requestParameters.emailVerifyRequest, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update current user profile, but password. - * @param {ApiConsoleHaloRunV1alpha1UserApiUpdateCurrentUserRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateCurrentUser( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiUpdateCurrentUserRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updateCurrentUser(requestParameters.user, options) - .then((request) => request(axios, basePath)); - }, - /** - * upload user avatar - * @param {ApiConsoleHaloRunV1alpha1UserApiUploadUserAvatarRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - uploadUserAvatar( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiUploadUserAvatarRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .uploadUserAvatar( - requestParameters.name, - requestParameters.file, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Verify email for user by code. - * @param {ApiConsoleHaloRunV1alpha1UserApiVerifyEmailRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - verifyEmail( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiVerifyEmailRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .verifyEmail(requestParameters.verifyCodeRequest, options) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiConsoleHaloRunV1alpha1UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiConsoleHaloRunV1alpha1UserApiFp(configuration) + return { + /** + * Change password of user. + * @param {ApiConsoleHaloRunV1alpha1UserApiChangePasswordRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + changePassword(requestParameters: ApiConsoleHaloRunV1alpha1UserApiChangePasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.changePassword(requestParameters.name, requestParameters.changePasswordRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Creates a new user. + * @param {ApiConsoleHaloRunV1alpha1UserApiCreateUserRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createUser(requestParameters: ApiConsoleHaloRunV1alpha1UserApiCreateUserRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createUser(requestParameters.createUserRequest, options).then((request) => request(axios, basePath)); + }, + /** + * delete user avatar + * @param {ApiConsoleHaloRunV1alpha1UserApiDeleteUserAvatarRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteUserAvatar(requestParameters: ApiConsoleHaloRunV1alpha1UserApiDeleteUserAvatarRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deleteUserAvatar(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get current user detail + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCurrentUserDetail(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getCurrentUserDetail(options).then((request) => request(axios, basePath)); + }, + /** + * Get permissions of user + * @param {ApiConsoleHaloRunV1alpha1UserApiGetPermissionsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPermissions(requestParameters: ApiConsoleHaloRunV1alpha1UserApiGetPermissionsRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getPermissions(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get user detail by name + * @param {ApiConsoleHaloRunV1alpha1UserApiGetUserDetailRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDetail(requestParameters: ApiConsoleHaloRunV1alpha1UserApiGetUserDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getUserDetail(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Grant permissions to user + * @param {ApiConsoleHaloRunV1alpha1UserApiGrantPermissionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + grantPermission(requestParameters: ApiConsoleHaloRunV1alpha1UserApiGrantPermissionRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.grantPermission(requestParameters.name, requestParameters.grantRequest, options).then((request) => request(axios, basePath)); + }, + /** + * List users + * @param {ApiConsoleHaloRunV1alpha1UserApiListUsersRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listUsers(requestParameters: ApiConsoleHaloRunV1alpha1UserApiListUsersRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listUsers(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, requestParameters.keyword, requestParameters.role, options).then((request) => request(axios, basePath)); + }, + /** + * Send email verification code for user + * @param {ApiConsoleHaloRunV1alpha1UserApiSendEmailVerificationCodeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + sendEmailVerificationCode(requestParameters: ApiConsoleHaloRunV1alpha1UserApiSendEmailVerificationCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.sendEmailVerificationCode(requestParameters.emailVerifyRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Update current user profile, but password. + * @param {ApiConsoleHaloRunV1alpha1UserApiUpdateCurrentUserRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateCurrentUser(requestParameters: ApiConsoleHaloRunV1alpha1UserApiUpdateCurrentUserRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updateCurrentUser(requestParameters.user, options).then((request) => request(axios, basePath)); + }, + /** + * upload user avatar + * @param {ApiConsoleHaloRunV1alpha1UserApiUploadUserAvatarRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uploadUserAvatar(requestParameters: ApiConsoleHaloRunV1alpha1UserApiUploadUserAvatarRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.uploadUserAvatar(requestParameters.name, requestParameters.file, options).then((request) => request(axios, basePath)); + }, + /** + * Verify email for user by code. + * @param {ApiConsoleHaloRunV1alpha1UserApiVerifyEmailRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyEmail(requestParameters: ApiConsoleHaloRunV1alpha1UserApiVerifyEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.verifyEmail(requestParameters.verifyCodeRequest, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -1315,19 +883,19 @@ export const ApiConsoleHaloRunV1alpha1UserApiFactory = function ( * @interface ApiConsoleHaloRunV1alpha1UserApiChangePasswordRequest */ export interface ApiConsoleHaloRunV1alpha1UserApiChangePasswordRequest { - /** - * Name of user. If the name is equal to \'-\', it will change the password of current user. - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1UserApiChangePassword - */ - readonly name: string; + /** + * Name of user. If the name is equal to \'-\', it will change the password of current user. + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1UserApiChangePassword + */ + readonly name: string - /** - * - * @type {ChangePasswordRequest} - * @memberof ApiConsoleHaloRunV1alpha1UserApiChangePassword - */ - readonly changePasswordRequest: ChangePasswordRequest; + /** + * + * @type {ChangePasswordRequest} + * @memberof ApiConsoleHaloRunV1alpha1UserApiChangePassword + */ + readonly changePasswordRequest: ChangePasswordRequest } /** @@ -1336,12 +904,12 @@ export interface ApiConsoleHaloRunV1alpha1UserApiChangePasswordRequest { * @interface ApiConsoleHaloRunV1alpha1UserApiCreateUserRequest */ export interface ApiConsoleHaloRunV1alpha1UserApiCreateUserRequest { - /** - * - * @type {CreateUserRequest} - * @memberof ApiConsoleHaloRunV1alpha1UserApiCreateUser - */ - readonly createUserRequest: CreateUserRequest; + /** + * + * @type {CreateUserRequest} + * @memberof ApiConsoleHaloRunV1alpha1UserApiCreateUser + */ + readonly createUserRequest: CreateUserRequest } /** @@ -1350,12 +918,12 @@ export interface ApiConsoleHaloRunV1alpha1UserApiCreateUserRequest { * @interface ApiConsoleHaloRunV1alpha1UserApiDeleteUserAvatarRequest */ export interface ApiConsoleHaloRunV1alpha1UserApiDeleteUserAvatarRequest { - /** - * User name - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1UserApiDeleteUserAvatar - */ - readonly name: string; + /** + * User name + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1UserApiDeleteUserAvatar + */ + readonly name: string } /** @@ -1364,12 +932,12 @@ export interface ApiConsoleHaloRunV1alpha1UserApiDeleteUserAvatarRequest { * @interface ApiConsoleHaloRunV1alpha1UserApiGetPermissionsRequest */ export interface ApiConsoleHaloRunV1alpha1UserApiGetPermissionsRequest { - /** - * User name - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1UserApiGetPermissions - */ - readonly name: string; + /** + * User name + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1UserApiGetPermissions + */ + readonly name: string } /** @@ -1378,12 +946,12 @@ export interface ApiConsoleHaloRunV1alpha1UserApiGetPermissionsRequest { * @interface ApiConsoleHaloRunV1alpha1UserApiGetUserDetailRequest */ export interface ApiConsoleHaloRunV1alpha1UserApiGetUserDetailRequest { - /** - * User name - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1UserApiGetUserDetail - */ - readonly name: string; + /** + * User name + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1UserApiGetUserDetail + */ + readonly name: string } /** @@ -1392,19 +960,19 @@ export interface ApiConsoleHaloRunV1alpha1UserApiGetUserDetailRequest { * @interface ApiConsoleHaloRunV1alpha1UserApiGrantPermissionRequest */ export interface ApiConsoleHaloRunV1alpha1UserApiGrantPermissionRequest { - /** - * User name - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1UserApiGrantPermission - */ - readonly name: string; + /** + * User name + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1UserApiGrantPermission + */ + readonly name: string - /** - * - * @type {GrantRequest} - * @memberof ApiConsoleHaloRunV1alpha1UserApiGrantPermission - */ - readonly grantRequest: GrantRequest; + /** + * + * @type {GrantRequest} + * @memberof ApiConsoleHaloRunV1alpha1UserApiGrantPermission + */ + readonly grantRequest: GrantRequest } /** @@ -1413,54 +981,54 @@ export interface ApiConsoleHaloRunV1alpha1UserApiGrantPermissionRequest { * @interface ApiConsoleHaloRunV1alpha1UserApiListUsersRequest */ export interface ApiConsoleHaloRunV1alpha1UserApiListUsersRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1UserApiListUsers - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ApiConsoleHaloRunV1alpha1UserApiListUsers + */ + readonly page?: number - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1UserApiListUsers - */ - readonly keyword?: string; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ApiConsoleHaloRunV1alpha1UserApiListUsers + */ + readonly size?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1UserApiListUsers - */ - readonly labelSelector?: Array; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1UserApiListUsers + */ + readonly labelSelector?: Array - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ApiConsoleHaloRunV1alpha1UserApiListUsers - */ - readonly page?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1UserApiListUsers + */ + readonly fieldSelector?: Array - /** - * - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1UserApiListUsers - */ - readonly role?: string; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ApiConsoleHaloRunV1alpha1UserApiListUsers + */ + readonly sort?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ApiConsoleHaloRunV1alpha1UserApiListUsers - */ - readonly size?: number; + /** + * Keyword to search + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1UserApiListUsers + */ + readonly keyword?: string - /** - * Sort property and direction of the list result. Supported fields: creationTimestamp - * @type {Array} - * @memberof ApiConsoleHaloRunV1alpha1UserApiListUsers - */ - readonly sort?: Array; + /** + * Role name + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1UserApiListUsers + */ + readonly role?: string } /** @@ -1469,12 +1037,12 @@ export interface ApiConsoleHaloRunV1alpha1UserApiListUsersRequest { * @interface ApiConsoleHaloRunV1alpha1UserApiSendEmailVerificationCodeRequest */ export interface ApiConsoleHaloRunV1alpha1UserApiSendEmailVerificationCodeRequest { - /** - * - * @type {EmailVerifyRequest} - * @memberof ApiConsoleHaloRunV1alpha1UserApiSendEmailVerificationCode - */ - readonly emailVerifyRequest: EmailVerifyRequest; + /** + * + * @type {EmailVerifyRequest} + * @memberof ApiConsoleHaloRunV1alpha1UserApiSendEmailVerificationCode + */ + readonly emailVerifyRequest: EmailVerifyRequest } /** @@ -1483,12 +1051,12 @@ export interface ApiConsoleHaloRunV1alpha1UserApiSendEmailVerificationCodeReques * @interface ApiConsoleHaloRunV1alpha1UserApiUpdateCurrentUserRequest */ export interface ApiConsoleHaloRunV1alpha1UserApiUpdateCurrentUserRequest { - /** - * - * @type {User} - * @memberof ApiConsoleHaloRunV1alpha1UserApiUpdateCurrentUser - */ - readonly user: User; + /** + * + * @type {User} + * @memberof ApiConsoleHaloRunV1alpha1UserApiUpdateCurrentUser + */ + readonly user: User } /** @@ -1497,19 +1065,19 @@ export interface ApiConsoleHaloRunV1alpha1UserApiUpdateCurrentUserRequest { * @interface ApiConsoleHaloRunV1alpha1UserApiUploadUserAvatarRequest */ export interface ApiConsoleHaloRunV1alpha1UserApiUploadUserAvatarRequest { - /** - * User name - * @type {string} - * @memberof ApiConsoleHaloRunV1alpha1UserApiUploadUserAvatar - */ - readonly name: string; + /** + * User name + * @type {string} + * @memberof ApiConsoleHaloRunV1alpha1UserApiUploadUserAvatar + */ + readonly name: string - /** - * - * @type {File} - * @memberof ApiConsoleHaloRunV1alpha1UserApiUploadUserAvatar - */ - readonly file: File; + /** + * + * @type {File} + * @memberof ApiConsoleHaloRunV1alpha1UserApiUploadUserAvatar + */ + readonly file: File } /** @@ -1518,12 +1086,12 @@ export interface ApiConsoleHaloRunV1alpha1UserApiUploadUserAvatarRequest { * @interface ApiConsoleHaloRunV1alpha1UserApiVerifyEmailRequest */ export interface ApiConsoleHaloRunV1alpha1UserApiVerifyEmailRequest { - /** - * - * @type {VerifyCodeRequest} - * @memberof ApiConsoleHaloRunV1alpha1UserApiVerifyEmail - */ - readonly verifyCodeRequest: VerifyCodeRequest; + /** + * + * @type {VerifyCodeRequest} + * @memberof ApiConsoleHaloRunV1alpha1UserApiVerifyEmail + */ + readonly verifyCodeRequest: VerifyCodeRequest } /** @@ -1533,208 +1101,135 @@ export interface ApiConsoleHaloRunV1alpha1UserApiVerifyEmailRequest { * @extends {BaseAPI} */ export class ApiConsoleHaloRunV1alpha1UserApi extends BaseAPI { - /** - * Change password of user. - * @param {ApiConsoleHaloRunV1alpha1UserApiChangePasswordRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1UserApi - */ - public changePassword( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiChangePasswordRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration) - .changePassword( - requestParameters.name, - requestParameters.changePasswordRequest, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Change password of user. + * @param {ApiConsoleHaloRunV1alpha1UserApiChangePasswordRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1UserApi + */ + public changePassword(requestParameters: ApiConsoleHaloRunV1alpha1UserApiChangePasswordRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).changePassword(requestParameters.name, requestParameters.changePasswordRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Creates a new user. - * @param {ApiConsoleHaloRunV1alpha1UserApiCreateUserRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1UserApi - */ - public createUser( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiCreateUserRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration) - .createUser(requestParameters.createUserRequest, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Creates a new user. + * @param {ApiConsoleHaloRunV1alpha1UserApiCreateUserRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1UserApi + */ + public createUser(requestParameters: ApiConsoleHaloRunV1alpha1UserApiCreateUserRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).createUser(requestParameters.createUserRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * delete user avatar - * @param {ApiConsoleHaloRunV1alpha1UserApiDeleteUserAvatarRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1UserApi - */ - public deleteUserAvatar( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiDeleteUserAvatarRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration) - .deleteUserAvatar(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * delete user avatar + * @param {ApiConsoleHaloRunV1alpha1UserApiDeleteUserAvatarRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1UserApi + */ + public deleteUserAvatar(requestParameters: ApiConsoleHaloRunV1alpha1UserApiDeleteUserAvatarRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).deleteUserAvatar(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get current user detail - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1UserApi - */ - public getCurrentUserDetail(options?: AxiosRequestConfig) { - return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration) - .getCurrentUserDetail(options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get current user detail + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1UserApi + */ + public getCurrentUserDetail(options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).getCurrentUserDetail(options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get permissions of user - * @param {ApiConsoleHaloRunV1alpha1UserApiGetPermissionsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1UserApi - */ - public getPermissions( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiGetPermissionsRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration) - .getPermissions(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get permissions of user + * @param {ApiConsoleHaloRunV1alpha1UserApiGetPermissionsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1UserApi + */ + public getPermissions(requestParameters: ApiConsoleHaloRunV1alpha1UserApiGetPermissionsRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).getPermissions(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get user detail by name - * @param {ApiConsoleHaloRunV1alpha1UserApiGetUserDetailRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1UserApi - */ - public getUserDetail( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiGetUserDetailRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration) - .getUserDetail(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get user detail by name + * @param {ApiConsoleHaloRunV1alpha1UserApiGetUserDetailRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1UserApi + */ + public getUserDetail(requestParameters: ApiConsoleHaloRunV1alpha1UserApiGetUserDetailRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).getUserDetail(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Grant permissions to user - * @param {ApiConsoleHaloRunV1alpha1UserApiGrantPermissionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1UserApi - */ - public grantPermission( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiGrantPermissionRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration) - .grantPermission( - requestParameters.name, - requestParameters.grantRequest, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Grant permissions to user + * @param {ApiConsoleHaloRunV1alpha1UserApiGrantPermissionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1UserApi + */ + public grantPermission(requestParameters: ApiConsoleHaloRunV1alpha1UserApiGrantPermissionRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).grantPermission(requestParameters.name, requestParameters.grantRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List users - * @param {ApiConsoleHaloRunV1alpha1UserApiListUsersRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1UserApi - */ - public listUsers( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiListUsersRequest = {}, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration) - .listUsers( - requestParameters.fieldSelector, - requestParameters.keyword, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.role, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List users + * @param {ApiConsoleHaloRunV1alpha1UserApiListUsersRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1UserApi + */ + public listUsers(requestParameters: ApiConsoleHaloRunV1alpha1UserApiListUsersRequest = {}, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).listUsers(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, requestParameters.keyword, requestParameters.role, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Send email verification code for user - * @param {ApiConsoleHaloRunV1alpha1UserApiSendEmailVerificationCodeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1UserApi - */ - public sendEmailVerificationCode( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiSendEmailVerificationCodeRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration) - .sendEmailVerificationCode(requestParameters.emailVerifyRequest, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Send email verification code for user + * @param {ApiConsoleHaloRunV1alpha1UserApiSendEmailVerificationCodeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1UserApi + */ + public sendEmailVerificationCode(requestParameters: ApiConsoleHaloRunV1alpha1UserApiSendEmailVerificationCodeRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).sendEmailVerificationCode(requestParameters.emailVerifyRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update current user profile, but password. - * @param {ApiConsoleHaloRunV1alpha1UserApiUpdateCurrentUserRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1UserApi - */ - public updateCurrentUser( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiUpdateCurrentUserRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration) - .updateCurrentUser(requestParameters.user, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update current user profile, but password. + * @param {ApiConsoleHaloRunV1alpha1UserApiUpdateCurrentUserRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1UserApi + */ + public updateCurrentUser(requestParameters: ApiConsoleHaloRunV1alpha1UserApiUpdateCurrentUserRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).updateCurrentUser(requestParameters.user, options).then((request) => request(this.axios, this.basePath)); + } - /** - * upload user avatar - * @param {ApiConsoleHaloRunV1alpha1UserApiUploadUserAvatarRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1UserApi - */ - public uploadUserAvatar( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiUploadUserAvatarRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration) - .uploadUserAvatar(requestParameters.name, requestParameters.file, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * upload user avatar + * @param {ApiConsoleHaloRunV1alpha1UserApiUploadUserAvatarRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1UserApi + */ + public uploadUserAvatar(requestParameters: ApiConsoleHaloRunV1alpha1UserApiUploadUserAvatarRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).uploadUserAvatar(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Verify email for user by code. - * @param {ApiConsoleHaloRunV1alpha1UserApiVerifyEmailRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleHaloRunV1alpha1UserApi - */ - public verifyEmail( - requestParameters: ApiConsoleHaloRunV1alpha1UserApiVerifyEmailRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration) - .verifyEmail(requestParameters.verifyCodeRequest, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Verify email for user by code. + * @param {ApiConsoleHaloRunV1alpha1UserApiVerifyEmailRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleHaloRunV1alpha1UserApi + */ + public verifyEmail(requestParameters: ApiConsoleHaloRunV1alpha1UserApiVerifyEmailRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).verifyEmail(requestParameters.verifyCodeRequest, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-console-migration-halo-run-v1alpha1-migration-api.ts b/ui/packages/api-client/src/api/api-console-migration-halo-run-v1alpha1-migration-api.ts index b5d91914a..dca9e2308 100644 --- a/ui/packages/api-client/src/api/api-console-migration-halo-run-v1alpha1-migration-api.ts +++ b/ui/packages/api-client/src/api/api-console-migration-halo-run-v1alpha1-migration-api.ts @@ -5,295 +5,195 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; /** * ApiConsoleMigrationHaloRunV1alpha1MigrationApi - axios parameter creator * @export */ -export const ApiConsoleMigrationHaloRunV1alpha1MigrationApiAxiosParamCreator = - function (configuration?: Configuration) { +export const ApiConsoleMigrationHaloRunV1alpha1MigrationApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * - * @param {string} name Backup name. - * @param {string} filename Backup filename. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - downloadBackups: async ( - name: string, - filename: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("downloadBackups", "name", name); - // verify required parameter 'filename' is not null or undefined - assertParamExists("downloadBackups", "filename", filename); - const localVarPath = - `/apis/api.console.migration.halo.run/v1alpha1/backups/{name}/files/{filename}` - .replace(`{${"name"}}`, encodeURIComponent(String(name))) - .replace(`{${"filename"}}`, encodeURIComponent(String(filename))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * + * @param {string} name Backup name. + * @param {string} filename Backup filename. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + downloadBackups: async (name: string, filename: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('downloadBackups', 'name', name) + // verify required parameter 'filename' is not null or undefined + assertParamExists('downloadBackups', 'filename', filename) + const localVarPath = `/apis/api.console.migration.halo.run/v1alpha1/backups/{name}/files/{filename}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))) + .replace(`{${"filename"}}`, encodeURIComponent(String(filename))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Restore backup by uploading file or providing download link or backup name. - * @param {string} [backupName] Backup metadata name. - * @param {string} [downloadUrl] Remote backup HTTP URL. - * @param {File} [file] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - restoreBackup: async ( - backupName?: string, - downloadUrl?: string, - file?: File, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.console.migration.halo.run/v1alpha1/restorations`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - const localVarFormParams = new ((configuration && - configuration.formDataCtor) || - FormData)(); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Restore backup by uploading file or providing download link or backup name. + * @param {string} [backupName] Backup metadata name. + * @param {string} [downloadUrl] Remote backup HTTP URL. + * @param {File} [file] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + restoreBackup: async (backupName?: string, downloadUrl?: string, file?: File, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.console.migration.halo.run/v1alpha1/restorations`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (backupName !== undefined) { - localVarFormParams.append("backupName", backupName as any); - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (downloadUrl !== undefined) { - localVarFormParams.append("downloadUrl", downloadUrl as any); - } - if (file !== undefined) { - localVarFormParams.append("file", file as any); - } + if (backupName !== undefined) { + localVarFormParams.append('backupName', backupName as any); + } + + if (downloadUrl !== undefined) { + localVarFormParams.append('downloadUrl', downloadUrl as any); + } + + if (file !== undefined) { + localVarFormParams.append('file', file as any); + } + + + localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = localVarFormParams; - localVarHeaderParameter["Content-Type"] = "multipart/form-data"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = localVarFormParams; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * ApiConsoleMigrationHaloRunV1alpha1MigrationApi - functional programming interface * @export */ -export const ApiConsoleMigrationHaloRunV1alpha1MigrationApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiConsoleMigrationHaloRunV1alpha1MigrationApiAxiosParamCreator( - configuration - ); - return { - /** - * - * @param {string} name Backup name. - * @param {string} filename Backup filename. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async downloadBackups( - name: string, - filename: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.downloadBackups( - name, - filename, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Restore backup by uploading file or providing download link or backup name. - * @param {string} [backupName] Backup metadata name. - * @param {string} [downloadUrl] Remote backup HTTP URL. - * @param {File} [file] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async restoreBackup( - backupName?: string, - downloadUrl?: string, - file?: File, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.restoreBackup( - backupName, - downloadUrl, - file, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiConsoleMigrationHaloRunV1alpha1MigrationApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiConsoleMigrationHaloRunV1alpha1MigrationApiAxiosParamCreator(configuration) + return { + /** + * + * @param {string} name Backup name. + * @param {string} filename Backup filename. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async downloadBackups(name: string, filename: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.downloadBackups(name, filename, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleMigrationHaloRunV1alpha1MigrationApi.downloadBackups']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Restore backup by uploading file or providing download link or backup name. + * @param {string} [backupName] Backup metadata name. + * @param {string} [downloadUrl] Remote backup HTTP URL. + * @param {File} [file] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async restoreBackup(backupName?: string, downloadUrl?: string, file?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.restoreBackup(backupName, downloadUrl, file, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiConsoleMigrationHaloRunV1alpha1MigrationApi.restoreBackup']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiConsoleMigrationHaloRunV1alpha1MigrationApi - factory interface * @export */ -export const ApiConsoleMigrationHaloRunV1alpha1MigrationApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = - ApiConsoleMigrationHaloRunV1alpha1MigrationApiFp(configuration); - return { - /** - * - * @param {ApiConsoleMigrationHaloRunV1alpha1MigrationApiDownloadBackupsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - downloadBackups( - requestParameters: ApiConsoleMigrationHaloRunV1alpha1MigrationApiDownloadBackupsRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .downloadBackups( - requestParameters.name, - requestParameters.filename, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Restore backup by uploading file or providing download link or backup name. - * @param {ApiConsoleMigrationHaloRunV1alpha1MigrationApiRestoreBackupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - restoreBackup( - requestParameters: ApiConsoleMigrationHaloRunV1alpha1MigrationApiRestoreBackupRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .restoreBackup( - requestParameters.backupName, - requestParameters.downloadUrl, - requestParameters.file, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiConsoleMigrationHaloRunV1alpha1MigrationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiConsoleMigrationHaloRunV1alpha1MigrationApiFp(configuration) + return { + /** + * + * @param {ApiConsoleMigrationHaloRunV1alpha1MigrationApiDownloadBackupsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + downloadBackups(requestParameters: ApiConsoleMigrationHaloRunV1alpha1MigrationApiDownloadBackupsRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.downloadBackups(requestParameters.name, requestParameters.filename, options).then((request) => request(axios, basePath)); + }, + /** + * Restore backup by uploading file or providing download link or backup name. + * @param {ApiConsoleMigrationHaloRunV1alpha1MigrationApiRestoreBackupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + restoreBackup(requestParameters: ApiConsoleMigrationHaloRunV1alpha1MigrationApiRestoreBackupRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.restoreBackup(requestParameters.backupName, requestParameters.downloadUrl, requestParameters.file, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -302,19 +202,19 @@ export const ApiConsoleMigrationHaloRunV1alpha1MigrationApiFactory = function ( * @interface ApiConsoleMigrationHaloRunV1alpha1MigrationApiDownloadBackupsRequest */ export interface ApiConsoleMigrationHaloRunV1alpha1MigrationApiDownloadBackupsRequest { - /** - * Backup name. - * @type {string} - * @memberof ApiConsoleMigrationHaloRunV1alpha1MigrationApiDownloadBackups - */ - readonly name: string; + /** + * Backup name. + * @type {string} + * @memberof ApiConsoleMigrationHaloRunV1alpha1MigrationApiDownloadBackups + */ + readonly name: string - /** - * Backup filename. - * @type {string} - * @memberof ApiConsoleMigrationHaloRunV1alpha1MigrationApiDownloadBackups - */ - readonly filename: string; + /** + * Backup filename. + * @type {string} + * @memberof ApiConsoleMigrationHaloRunV1alpha1MigrationApiDownloadBackups + */ + readonly filename: string } /** @@ -323,26 +223,26 @@ export interface ApiConsoleMigrationHaloRunV1alpha1MigrationApiDownloadBackupsRe * @interface ApiConsoleMigrationHaloRunV1alpha1MigrationApiRestoreBackupRequest */ export interface ApiConsoleMigrationHaloRunV1alpha1MigrationApiRestoreBackupRequest { - /** - * Backup metadata name. - * @type {string} - * @memberof ApiConsoleMigrationHaloRunV1alpha1MigrationApiRestoreBackup - */ - readonly backupName?: string; + /** + * Backup metadata name. + * @type {string} + * @memberof ApiConsoleMigrationHaloRunV1alpha1MigrationApiRestoreBackup + */ + readonly backupName?: string - /** - * Remote backup HTTP URL. - * @type {string} - * @memberof ApiConsoleMigrationHaloRunV1alpha1MigrationApiRestoreBackup - */ - readonly downloadUrl?: string; + /** + * Remote backup HTTP URL. + * @type {string} + * @memberof ApiConsoleMigrationHaloRunV1alpha1MigrationApiRestoreBackup + */ + readonly downloadUrl?: string - /** - * - * @type {File} - * @memberof ApiConsoleMigrationHaloRunV1alpha1MigrationApiRestoreBackup - */ - readonly file?: File; + /** + * + * @type {File} + * @memberof ApiConsoleMigrationHaloRunV1alpha1MigrationApiRestoreBackup + */ + readonly file?: File } /** @@ -352,44 +252,26 @@ export interface ApiConsoleMigrationHaloRunV1alpha1MigrationApiRestoreBackupRequ * @extends {BaseAPI} */ export class ApiConsoleMigrationHaloRunV1alpha1MigrationApi extends BaseAPI { - /** - * - * @param {ApiConsoleMigrationHaloRunV1alpha1MigrationApiDownloadBackupsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleMigrationHaloRunV1alpha1MigrationApi - */ - public downloadBackups( - requestParameters: ApiConsoleMigrationHaloRunV1alpha1MigrationApiDownloadBackupsRequest, - options?: AxiosRequestConfig - ) { - return ApiConsoleMigrationHaloRunV1alpha1MigrationApiFp(this.configuration) - .downloadBackups( - requestParameters.name, - requestParameters.filename, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * + * @param {ApiConsoleMigrationHaloRunV1alpha1MigrationApiDownloadBackupsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleMigrationHaloRunV1alpha1MigrationApi + */ + public downloadBackups(requestParameters: ApiConsoleMigrationHaloRunV1alpha1MigrationApiDownloadBackupsRequest, options?: RawAxiosRequestConfig) { + return ApiConsoleMigrationHaloRunV1alpha1MigrationApiFp(this.configuration).downloadBackups(requestParameters.name, requestParameters.filename, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Restore backup by uploading file or providing download link or backup name. - * @param {ApiConsoleMigrationHaloRunV1alpha1MigrationApiRestoreBackupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiConsoleMigrationHaloRunV1alpha1MigrationApi - */ - public restoreBackup( - requestParameters: ApiConsoleMigrationHaloRunV1alpha1MigrationApiRestoreBackupRequest = {}, - options?: AxiosRequestConfig - ) { - return ApiConsoleMigrationHaloRunV1alpha1MigrationApiFp(this.configuration) - .restoreBackup( - requestParameters.backupName, - requestParameters.downloadUrl, - requestParameters.file, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Restore backup by uploading file or providing download link or backup name. + * @param {ApiConsoleMigrationHaloRunV1alpha1MigrationApiRestoreBackupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiConsoleMigrationHaloRunV1alpha1MigrationApi + */ + public restoreBackup(requestParameters: ApiConsoleMigrationHaloRunV1alpha1MigrationApiRestoreBackupRequest = {}, options?: RawAxiosRequestConfig) { + return ApiConsoleMigrationHaloRunV1alpha1MigrationApiFp(this.configuration).restoreBackup(requestParameters.backupName, requestParameters.downloadUrl, requestParameters.file, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-content-halo-run-v1alpha1-category-api.ts b/ui/packages/api-client/src/api/api-content-halo-run-v1alpha1-category-api.ts index df186c22b..c8482ab73 100644 --- a/ui/packages/api-client/src/api/api-content-halo-run-v1alpha1-category-api.ts +++ b/ui/packages/api-client/src/api/api-content-halo-run-v1alpha1-category-api.ts @@ -5,449 +5,296 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { CategoryVo } from "../models"; +import { CategoryVo } from '../models'; // @ts-ignore -import { CategoryVoList } from "../models"; +import { CategoryVoList } from '../models'; // @ts-ignore -import { ListedPostVoList } from "../models"; +import { ListedPostVoList } from '../models'; /** * ApiContentHaloRunV1alpha1CategoryApi - axios parameter creator * @export */ -export const ApiContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Lists categories. - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryCategories: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.content.halo.run/v1alpha1/categories`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ApiContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Lists categories. + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryCategories: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.content.halo.run/v1alpha1/categories`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (sort) { + localVarQueryParameter['sort'] = sort; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Gets category by name. - * @param {string} name Category name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryCategoryByName: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("queryCategoryByName", "name", name); - const localVarPath = - `/apis/api.content.halo.run/v1alpha1/categories/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Gets category by name. + * @param {string} name Category name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryCategoryByName: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('queryCategoryByName', 'name', name) + const localVarPath = `/apis/api.content.halo.run/v1alpha1/categories/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Lists posts by category name. - * @param {string} name Category name - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryPostsByCategoryName: async ( - name: string, - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("queryPostsByCategoryName", "name", name); - const localVarPath = - `/apis/api.content.halo.run/v1alpha1/categories/{name}/posts`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists posts by category name. + * @param {string} name Category name + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryPostsByCategoryName: async (name: string, page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('queryPostsByCategoryName', 'name', name) + const localVarPath = `/apis/api.content.halo.run/v1alpha1/categories/{name}/posts` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + if (sort) { + localVarQueryParameter['sort'] = sort; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ApiContentHaloRunV1alpha1CategoryApi - functional programming interface * @export */ -export const ApiContentHaloRunV1alpha1CategoryApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiContentHaloRunV1alpha1CategoryApiAxiosParamCreator(configuration); - return { - /** - * Lists categories. - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async queryCategories( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.queryCategories( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Gets category by name. - * @param {string} name Category name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async queryCategoryByName( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.queryCategoryByName(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Lists posts by category name. - * @param {string} name Category name - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async queryPostsByCategoryName( - name: string, - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.queryPostsByCategoryName( - name, - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiContentHaloRunV1alpha1CategoryApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiContentHaloRunV1alpha1CategoryApiAxiosParamCreator(configuration) + return { + /** + * Lists categories. + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryCategories(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.queryCategories(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiContentHaloRunV1alpha1CategoryApi.queryCategories']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Gets category by name. + * @param {string} name Category name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryCategoryByName(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.queryCategoryByName(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiContentHaloRunV1alpha1CategoryApi.queryCategoryByName']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Lists posts by category name. + * @param {string} name Category name + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryPostsByCategoryName(name: string, page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.queryPostsByCategoryName(name, page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiContentHaloRunV1alpha1CategoryApi.queryPostsByCategoryName']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiContentHaloRunV1alpha1CategoryApi - factory interface * @export */ -export const ApiContentHaloRunV1alpha1CategoryApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiContentHaloRunV1alpha1CategoryApiFp(configuration); - return { - /** - * Lists categories. - * @param {ApiContentHaloRunV1alpha1CategoryApiQueryCategoriesRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryCategories( - requestParameters: ApiContentHaloRunV1alpha1CategoryApiQueryCategoriesRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .queryCategories( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Gets category by name. - * @param {ApiContentHaloRunV1alpha1CategoryApiQueryCategoryByNameRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryCategoryByName( - requestParameters: ApiContentHaloRunV1alpha1CategoryApiQueryCategoryByNameRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .queryCategoryByName(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Lists posts by category name. - * @param {ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryNameRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryPostsByCategoryName( - requestParameters: ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryNameRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .queryPostsByCategoryName( - requestParameters.name, - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiContentHaloRunV1alpha1CategoryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiContentHaloRunV1alpha1CategoryApiFp(configuration) + return { + /** + * Lists categories. + * @param {ApiContentHaloRunV1alpha1CategoryApiQueryCategoriesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryCategories(requestParameters: ApiContentHaloRunV1alpha1CategoryApiQueryCategoriesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.queryCategories(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Gets category by name. + * @param {ApiContentHaloRunV1alpha1CategoryApiQueryCategoryByNameRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryCategoryByName(requestParameters: ApiContentHaloRunV1alpha1CategoryApiQueryCategoryByNameRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.queryCategoryByName(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Lists posts by category name. + * @param {ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryNameRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryPostsByCategoryName(requestParameters: ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryNameRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.queryPostsByCategoryName(requestParameters.name, requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -456,40 +303,40 @@ export const ApiContentHaloRunV1alpha1CategoryApiFactory = function ( * @interface ApiContentHaloRunV1alpha1CategoryApiQueryCategoriesRequest */ export interface ApiContentHaloRunV1alpha1CategoryApiQueryCategoriesRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryCategories - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryCategories + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryCategories - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryCategories + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryCategories - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryCategories + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryCategories - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryCategories + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryCategories - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryCategories + */ + readonly sort?: Array } /** @@ -498,12 +345,12 @@ export interface ApiContentHaloRunV1alpha1CategoryApiQueryCategoriesRequest { * @interface ApiContentHaloRunV1alpha1CategoryApiQueryCategoryByNameRequest */ export interface ApiContentHaloRunV1alpha1CategoryApiQueryCategoryByNameRequest { - /** - * Category name - * @type {string} - * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryCategoryByName - */ - readonly name: string; + /** + * Category name + * @type {string} + * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryCategoryByName + */ + readonly name: string } /** @@ -512,47 +359,47 @@ export interface ApiContentHaloRunV1alpha1CategoryApiQueryCategoryByNameRequest * @interface ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryNameRequest */ export interface ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryNameRequest { - /** - * Category name - * @type {string} - * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryName - */ - readonly name: string; + /** + * Category name + * @type {string} + * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryName + */ + readonly name: string - /** - * Field selector for filtering. - * @type {Array} - * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryName - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryName + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryName - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryName + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryName - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryName + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryName - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryName + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryName - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryName + */ + readonly sort?: Array } /** @@ -562,66 +409,37 @@ export interface ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryNameReq * @extends {BaseAPI} */ export class ApiContentHaloRunV1alpha1CategoryApi extends BaseAPI { - /** - * Lists categories. - * @param {ApiContentHaloRunV1alpha1CategoryApiQueryCategoriesRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiContentHaloRunV1alpha1CategoryApi - */ - public queryCategories( - requestParameters: ApiContentHaloRunV1alpha1CategoryApiQueryCategoriesRequest = {}, - options?: AxiosRequestConfig - ) { - return ApiContentHaloRunV1alpha1CategoryApiFp(this.configuration) - .queryCategories( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Lists categories. + * @param {ApiContentHaloRunV1alpha1CategoryApiQueryCategoriesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiContentHaloRunV1alpha1CategoryApi + */ + public queryCategories(requestParameters: ApiContentHaloRunV1alpha1CategoryApiQueryCategoriesRequest = {}, options?: RawAxiosRequestConfig) { + return ApiContentHaloRunV1alpha1CategoryApiFp(this.configuration).queryCategories(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Gets category by name. - * @param {ApiContentHaloRunV1alpha1CategoryApiQueryCategoryByNameRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiContentHaloRunV1alpha1CategoryApi - */ - public queryCategoryByName( - requestParameters: ApiContentHaloRunV1alpha1CategoryApiQueryCategoryByNameRequest, - options?: AxiosRequestConfig - ) { - return ApiContentHaloRunV1alpha1CategoryApiFp(this.configuration) - .queryCategoryByName(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Gets category by name. + * @param {ApiContentHaloRunV1alpha1CategoryApiQueryCategoryByNameRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiContentHaloRunV1alpha1CategoryApi + */ + public queryCategoryByName(requestParameters: ApiContentHaloRunV1alpha1CategoryApiQueryCategoryByNameRequest, options?: RawAxiosRequestConfig) { + return ApiContentHaloRunV1alpha1CategoryApiFp(this.configuration).queryCategoryByName(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Lists posts by category name. - * @param {ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryNameRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiContentHaloRunV1alpha1CategoryApi - */ - public queryPostsByCategoryName( - requestParameters: ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryNameRequest, - options?: AxiosRequestConfig - ) { - return ApiContentHaloRunV1alpha1CategoryApiFp(this.configuration) - .queryPostsByCategoryName( - requestParameters.name, - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Lists posts by category name. + * @param {ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryNameRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiContentHaloRunV1alpha1CategoryApi + */ + public queryPostsByCategoryName(requestParameters: ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryNameRequest, options?: RawAxiosRequestConfig) { + return ApiContentHaloRunV1alpha1CategoryApiFp(this.configuration).queryPostsByCategoryName(requestParameters.name, requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-content-halo-run-v1alpha1-post-api.ts b/ui/packages/api-client/src/api/api-content-halo-run-v1alpha1-post-api.ts index 8b6d7eb48..594956fb1 100644 --- a/ui/packages/api-client/src/api/api-content-halo-run-v1alpha1-post-api.ts +++ b/ui/packages/api-client/src/api/api-content-halo-run-v1alpha1-post-api.ts @@ -5,401 +5,266 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { ListedPostVoList } from "../models"; +import { ListedPostVoList } from '../models'; // @ts-ignore -import { NavigationPostVo } from "../models"; +import { NavigationPostVo } from '../models'; // @ts-ignore -import { PostVo } from "../models"; +import { PostVo } from '../models'; /** * ApiContentHaloRunV1alpha1PostApi - axios parameter creator * @export */ -export const ApiContentHaloRunV1alpha1PostApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Gets a post by name. - * @param {string} name Post name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryPostByName: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("queryPostByName", "name", name); - const localVarPath = - `/apis/api.content.halo.run/v1alpha1/posts/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ApiContentHaloRunV1alpha1PostApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Gets a post by name. + * @param {string} name Post name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryPostByName: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('queryPostByName', 'name', name) + const localVarPath = `/apis/api.content.halo.run/v1alpha1/posts/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Gets a post navigation by name. - * @param {string} name Post name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryPostNavigationByName: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("queryPostNavigationByName", "name", name); - const localVarPath = - `/apis/api.content.halo.run/v1alpha1/posts/{name}/navigation`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Gets a post navigation by name. + * @param {string} name Post name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryPostNavigationByName: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('queryPostNavigationByName', 'name', name) + const localVarPath = `/apis/api.content.halo.run/v1alpha1/posts/{name}/navigation` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Lists posts. - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryPosts: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.content.halo.run/v1alpha1/posts`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists posts. + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryPosts: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.content.halo.run/v1alpha1/posts`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + if (sort) { + localVarQueryParameter['sort'] = sort; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ApiContentHaloRunV1alpha1PostApi - functional programming interface * @export */ -export const ApiContentHaloRunV1alpha1PostApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiContentHaloRunV1alpha1PostApiAxiosParamCreator(configuration); - return { - /** - * Gets a post by name. - * @param {string} name Post name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async queryPostByName( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.queryPostByName( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Gets a post navigation by name. - * @param {string} name Post name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async queryPostNavigationByName( - name: string, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.queryPostNavigationByName( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Lists posts. - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async queryPosts( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.queryPosts( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiContentHaloRunV1alpha1PostApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiContentHaloRunV1alpha1PostApiAxiosParamCreator(configuration) + return { + /** + * Gets a post by name. + * @param {string} name Post name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryPostByName(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.queryPostByName(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiContentHaloRunV1alpha1PostApi.queryPostByName']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Gets a post navigation by name. + * @param {string} name Post name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryPostNavigationByName(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.queryPostNavigationByName(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiContentHaloRunV1alpha1PostApi.queryPostNavigationByName']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Lists posts. + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryPosts(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.queryPosts(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiContentHaloRunV1alpha1PostApi.queryPosts']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiContentHaloRunV1alpha1PostApi - factory interface * @export */ -export const ApiContentHaloRunV1alpha1PostApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiContentHaloRunV1alpha1PostApiFp(configuration); - return { - /** - * Gets a post by name. - * @param {ApiContentHaloRunV1alpha1PostApiQueryPostByNameRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryPostByName( - requestParameters: ApiContentHaloRunV1alpha1PostApiQueryPostByNameRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .queryPostByName(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Gets a post navigation by name. - * @param {ApiContentHaloRunV1alpha1PostApiQueryPostNavigationByNameRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryPostNavigationByName( - requestParameters: ApiContentHaloRunV1alpha1PostApiQueryPostNavigationByNameRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .queryPostNavigationByName(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Lists posts. - * @param {ApiContentHaloRunV1alpha1PostApiQueryPostsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryPosts( - requestParameters: ApiContentHaloRunV1alpha1PostApiQueryPostsRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .queryPosts( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiContentHaloRunV1alpha1PostApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiContentHaloRunV1alpha1PostApiFp(configuration) + return { + /** + * Gets a post by name. + * @param {ApiContentHaloRunV1alpha1PostApiQueryPostByNameRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryPostByName(requestParameters: ApiContentHaloRunV1alpha1PostApiQueryPostByNameRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.queryPostByName(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Gets a post navigation by name. + * @param {ApiContentHaloRunV1alpha1PostApiQueryPostNavigationByNameRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryPostNavigationByName(requestParameters: ApiContentHaloRunV1alpha1PostApiQueryPostNavigationByNameRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.queryPostNavigationByName(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Lists posts. + * @param {ApiContentHaloRunV1alpha1PostApiQueryPostsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryPosts(requestParameters: ApiContentHaloRunV1alpha1PostApiQueryPostsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.queryPosts(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -408,12 +273,12 @@ export const ApiContentHaloRunV1alpha1PostApiFactory = function ( * @interface ApiContentHaloRunV1alpha1PostApiQueryPostByNameRequest */ export interface ApiContentHaloRunV1alpha1PostApiQueryPostByNameRequest { - /** - * Post name - * @type {string} - * @memberof ApiContentHaloRunV1alpha1PostApiQueryPostByName - */ - readonly name: string; + /** + * Post name + * @type {string} + * @memberof ApiContentHaloRunV1alpha1PostApiQueryPostByName + */ + readonly name: string } /** @@ -422,12 +287,12 @@ export interface ApiContentHaloRunV1alpha1PostApiQueryPostByNameRequest { * @interface ApiContentHaloRunV1alpha1PostApiQueryPostNavigationByNameRequest */ export interface ApiContentHaloRunV1alpha1PostApiQueryPostNavigationByNameRequest { - /** - * Post name - * @type {string} - * @memberof ApiContentHaloRunV1alpha1PostApiQueryPostNavigationByName - */ - readonly name: string; + /** + * Post name + * @type {string} + * @memberof ApiContentHaloRunV1alpha1PostApiQueryPostNavigationByName + */ + readonly name: string } /** @@ -436,40 +301,40 @@ export interface ApiContentHaloRunV1alpha1PostApiQueryPostNavigationByNameReques * @interface ApiContentHaloRunV1alpha1PostApiQueryPostsRequest */ export interface ApiContentHaloRunV1alpha1PostApiQueryPostsRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof ApiContentHaloRunV1alpha1PostApiQueryPosts - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ApiContentHaloRunV1alpha1PostApiQueryPosts + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ApiContentHaloRunV1alpha1PostApiQueryPosts - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ApiContentHaloRunV1alpha1PostApiQueryPosts + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ApiContentHaloRunV1alpha1PostApiQueryPosts - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ApiContentHaloRunV1alpha1PostApiQueryPosts + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ApiContentHaloRunV1alpha1PostApiQueryPosts - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ApiContentHaloRunV1alpha1PostApiQueryPosts + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof ApiContentHaloRunV1alpha1PostApiQueryPosts - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ApiContentHaloRunV1alpha1PostApiQueryPosts + */ + readonly sort?: Array } /** @@ -479,58 +344,37 @@ export interface ApiContentHaloRunV1alpha1PostApiQueryPostsRequest { * @extends {BaseAPI} */ export class ApiContentHaloRunV1alpha1PostApi extends BaseAPI { - /** - * Gets a post by name. - * @param {ApiContentHaloRunV1alpha1PostApiQueryPostByNameRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiContentHaloRunV1alpha1PostApi - */ - public queryPostByName( - requestParameters: ApiContentHaloRunV1alpha1PostApiQueryPostByNameRequest, - options?: AxiosRequestConfig - ) { - return ApiContentHaloRunV1alpha1PostApiFp(this.configuration) - .queryPostByName(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Gets a post by name. + * @param {ApiContentHaloRunV1alpha1PostApiQueryPostByNameRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiContentHaloRunV1alpha1PostApi + */ + public queryPostByName(requestParameters: ApiContentHaloRunV1alpha1PostApiQueryPostByNameRequest, options?: RawAxiosRequestConfig) { + return ApiContentHaloRunV1alpha1PostApiFp(this.configuration).queryPostByName(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Gets a post navigation by name. - * @param {ApiContentHaloRunV1alpha1PostApiQueryPostNavigationByNameRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiContentHaloRunV1alpha1PostApi - */ - public queryPostNavigationByName( - requestParameters: ApiContentHaloRunV1alpha1PostApiQueryPostNavigationByNameRequest, - options?: AxiosRequestConfig - ) { - return ApiContentHaloRunV1alpha1PostApiFp(this.configuration) - .queryPostNavigationByName(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Gets a post navigation by name. + * @param {ApiContentHaloRunV1alpha1PostApiQueryPostNavigationByNameRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiContentHaloRunV1alpha1PostApi + */ + public queryPostNavigationByName(requestParameters: ApiContentHaloRunV1alpha1PostApiQueryPostNavigationByNameRequest, options?: RawAxiosRequestConfig) { + return ApiContentHaloRunV1alpha1PostApiFp(this.configuration).queryPostNavigationByName(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Lists posts. - * @param {ApiContentHaloRunV1alpha1PostApiQueryPostsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiContentHaloRunV1alpha1PostApi - */ - public queryPosts( - requestParameters: ApiContentHaloRunV1alpha1PostApiQueryPostsRequest = {}, - options?: AxiosRequestConfig - ) { - return ApiContentHaloRunV1alpha1PostApiFp(this.configuration) - .queryPosts( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Lists posts. + * @param {ApiContentHaloRunV1alpha1PostApiQueryPostsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiContentHaloRunV1alpha1PostApi + */ + public queryPosts(requestParameters: ApiContentHaloRunV1alpha1PostApiQueryPostsRequest = {}, options?: RawAxiosRequestConfig) { + return ApiContentHaloRunV1alpha1PostApiFp(this.configuration).queryPosts(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-content-halo-run-v1alpha1-single-page-api.ts b/ui/packages/api-client/src/api/api-content-halo-run-v1alpha1-single-page-api.ts index 564ed20e2..13885917e 100644 --- a/ui/packages/api-client/src/api/api-content-halo-run-v1alpha1-single-page-api.ts +++ b/ui/packages/api-client/src/api/api-content-halo-run-v1alpha1-single-page-api.ts @@ -5,302 +5,202 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { ListedSinglePageVoList } from "../models"; +import { ListedSinglePageVoList } from '../models'; // @ts-ignore -import { SinglePageVo } from "../models"; +import { SinglePageVo } from '../models'; /** * ApiContentHaloRunV1alpha1SinglePageApi - axios parameter creator * @export */ -export const ApiContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = - function (configuration?: Configuration) { +export const ApiContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Gets single page by name - * @param {string} name SinglePage name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - querySinglePageByName: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("querySinglePageByName", "name", name); - const localVarPath = - `/apis/api.content.halo.run/v1alpha1/singlepages/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * Gets single page by name + * @param {string} name SinglePage name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + querySinglePageByName: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('querySinglePageByName', 'name', name) + const localVarPath = `/apis/api.content.halo.run/v1alpha1/singlepages/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Lists single pages - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - querySinglePages: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.content.halo.run/v1alpha1/singlepages`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists single pages + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + querySinglePages: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.content.halo.run/v1alpha1/singlepages`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * ApiContentHaloRunV1alpha1SinglePageApi - functional programming interface * @export */ -export const ApiContentHaloRunV1alpha1SinglePageApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiContentHaloRunV1alpha1SinglePageApiAxiosParamCreator(configuration); - return { - /** - * Gets single page by name - * @param {string} name SinglePage name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async querySinglePageByName( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.querySinglePageByName(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Lists single pages - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async querySinglePages( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.querySinglePages( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiContentHaloRunV1alpha1SinglePageApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiContentHaloRunV1alpha1SinglePageApiAxiosParamCreator(configuration) + return { + /** + * Gets single page by name + * @param {string} name SinglePage name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async querySinglePageByName(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.querySinglePageByName(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiContentHaloRunV1alpha1SinglePageApi.querySinglePageByName']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Lists single pages + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async querySinglePages(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.querySinglePages(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiContentHaloRunV1alpha1SinglePageApi.querySinglePages']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiContentHaloRunV1alpha1SinglePageApi - factory interface * @export */ -export const ApiContentHaloRunV1alpha1SinglePageApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiContentHaloRunV1alpha1SinglePageApiFp(configuration); - return { - /** - * Gets single page by name - * @param {ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePageByNameRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - querySinglePageByName( - requestParameters: ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePageByNameRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .querySinglePageByName(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Lists single pages - * @param {ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePagesRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - querySinglePages( - requestParameters: ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePagesRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .querySinglePages( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiContentHaloRunV1alpha1SinglePageApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiContentHaloRunV1alpha1SinglePageApiFp(configuration) + return { + /** + * Gets single page by name + * @param {ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePageByNameRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + querySinglePageByName(requestParameters: ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePageByNameRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.querySinglePageByName(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Lists single pages + * @param {ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePagesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + querySinglePages(requestParameters: ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePagesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.querySinglePages(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -309,12 +209,12 @@ export const ApiContentHaloRunV1alpha1SinglePageApiFactory = function ( * @interface ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePageByNameRequest */ export interface ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePageByNameRequest { - /** - * SinglePage name - * @type {string} - * @memberof ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePageByName - */ - readonly name: string; + /** + * SinglePage name + * @type {string} + * @memberof ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePageByName + */ + readonly name: string } /** @@ -323,40 +223,40 @@ export interface ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePageByNameRequ * @interface ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePagesRequest */ export interface ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePagesRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePages - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePages + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePages - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePages + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePages - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePages + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePages - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePages + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePages - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePages + */ + readonly sort?: Array } /** @@ -366,42 +266,26 @@ export interface ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePagesRequest { * @extends {BaseAPI} */ export class ApiContentHaloRunV1alpha1SinglePageApi extends BaseAPI { - /** - * Gets single page by name - * @param {ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePageByNameRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiContentHaloRunV1alpha1SinglePageApi - */ - public querySinglePageByName( - requestParameters: ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePageByNameRequest, - options?: AxiosRequestConfig - ) { - return ApiContentHaloRunV1alpha1SinglePageApiFp(this.configuration) - .querySinglePageByName(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Gets single page by name + * @param {ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePageByNameRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiContentHaloRunV1alpha1SinglePageApi + */ + public querySinglePageByName(requestParameters: ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePageByNameRequest, options?: RawAxiosRequestConfig) { + return ApiContentHaloRunV1alpha1SinglePageApiFp(this.configuration).querySinglePageByName(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Lists single pages - * @param {ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePagesRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiContentHaloRunV1alpha1SinglePageApi - */ - public querySinglePages( - requestParameters: ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePagesRequest = {}, - options?: AxiosRequestConfig - ) { - return ApiContentHaloRunV1alpha1SinglePageApiFp(this.configuration) - .querySinglePages( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Lists single pages + * @param {ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePagesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiContentHaloRunV1alpha1SinglePageApi + */ + public querySinglePages(requestParameters: ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePagesRequest = {}, options?: RawAxiosRequestConfig) { + return ApiContentHaloRunV1alpha1SinglePageApiFp(this.configuration).querySinglePages(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-content-halo-run-v1alpha1-tag-api.ts b/ui/packages/api-client/src/api/api-content-halo-run-v1alpha1-tag-api.ts index e44775330..517ac7912 100644 --- a/ui/packages/api-client/src/api/api-content-halo-run-v1alpha1-tag-api.ts +++ b/ui/packages/api-client/src/api/api-content-halo-run-v1alpha1-tag-api.ts @@ -5,448 +5,296 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { ListedPostVo } from "../models"; +import { ListedPostVo } from '../models'; // @ts-ignore -import { TagVo } from "../models"; +import { TagVo } from '../models'; // @ts-ignore -import { TagVoList } from "../models"; +import { TagVoList } from '../models'; /** * ApiContentHaloRunV1alpha1TagApi - axios parameter creator * @export */ -export const ApiContentHaloRunV1alpha1TagApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Lists posts by tag name - * @param {string} name Tag name - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryPostsByTagName: async ( - name: string, - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("queryPostsByTagName", "name", name); - const localVarPath = - `/apis/api.content.halo.run/v1alpha1/tags/{name}/posts`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ApiContentHaloRunV1alpha1TagApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Lists posts by tag name + * @param {string} name Tag name + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryPostsByTagName: async (name: string, page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('queryPostsByTagName', 'name', name) + const localVarPath = `/apis/api.content.halo.run/v1alpha1/tags/{name}/posts` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (sort) { + localVarQueryParameter['sort'] = sort; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Gets tag by name - * @param {string} name Tag name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryTagByName: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("queryTagByName", "name", name); - const localVarPath = - `/apis/api.content.halo.run/v1alpha1/tags/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Gets tag by name + * @param {string} name Tag name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryTagByName: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('queryTagByName', 'name', name) + const localVarPath = `/apis/api.content.halo.run/v1alpha1/tags/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Lists tags - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryTags: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.content.halo.run/v1alpha1/tags`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists tags + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryTags: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.content.halo.run/v1alpha1/tags`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + if (sort) { + localVarQueryParameter['sort'] = sort; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ApiContentHaloRunV1alpha1TagApi - functional programming interface * @export */ -export const ApiContentHaloRunV1alpha1TagApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiContentHaloRunV1alpha1TagApiAxiosParamCreator(configuration); - return { - /** - * Lists posts by tag name - * @param {string} name Tag name - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async queryPostsByTagName( - name: string, - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.queryPostsByTagName( - name, - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Gets tag by name - * @param {string} name Tag name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async queryTagByName( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.queryTagByName( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Lists tags - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async queryTags( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.queryTags( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiContentHaloRunV1alpha1TagApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiContentHaloRunV1alpha1TagApiAxiosParamCreator(configuration) + return { + /** + * Lists posts by tag name + * @param {string} name Tag name + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryPostsByTagName(name: string, page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.queryPostsByTagName(name, page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiContentHaloRunV1alpha1TagApi.queryPostsByTagName']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Gets tag by name + * @param {string} name Tag name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryTagByName(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.queryTagByName(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiContentHaloRunV1alpha1TagApi.queryTagByName']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Lists tags + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryTags(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.queryTags(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiContentHaloRunV1alpha1TagApi.queryTags']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiContentHaloRunV1alpha1TagApi - factory interface * @export */ -export const ApiContentHaloRunV1alpha1TagApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiContentHaloRunV1alpha1TagApiFp(configuration); - return { - /** - * Lists posts by tag name - * @param {ApiContentHaloRunV1alpha1TagApiQueryPostsByTagNameRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryPostsByTagName( - requestParameters: ApiContentHaloRunV1alpha1TagApiQueryPostsByTagNameRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .queryPostsByTagName( - requestParameters.name, - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Gets tag by name - * @param {ApiContentHaloRunV1alpha1TagApiQueryTagByNameRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryTagByName( - requestParameters: ApiContentHaloRunV1alpha1TagApiQueryTagByNameRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .queryTagByName(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Lists tags - * @param {ApiContentHaloRunV1alpha1TagApiQueryTagsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryTags( - requestParameters: ApiContentHaloRunV1alpha1TagApiQueryTagsRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .queryTags( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiContentHaloRunV1alpha1TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiContentHaloRunV1alpha1TagApiFp(configuration) + return { + /** + * Lists posts by tag name + * @param {ApiContentHaloRunV1alpha1TagApiQueryPostsByTagNameRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryPostsByTagName(requestParameters: ApiContentHaloRunV1alpha1TagApiQueryPostsByTagNameRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.queryPostsByTagName(requestParameters.name, requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Gets tag by name + * @param {ApiContentHaloRunV1alpha1TagApiQueryTagByNameRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryTagByName(requestParameters: ApiContentHaloRunV1alpha1TagApiQueryTagByNameRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.queryTagByName(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Lists tags + * @param {ApiContentHaloRunV1alpha1TagApiQueryTagsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryTags(requestParameters: ApiContentHaloRunV1alpha1TagApiQueryTagsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.queryTags(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -455,47 +303,47 @@ export const ApiContentHaloRunV1alpha1TagApiFactory = function ( * @interface ApiContentHaloRunV1alpha1TagApiQueryPostsByTagNameRequest */ export interface ApiContentHaloRunV1alpha1TagApiQueryPostsByTagNameRequest { - /** - * Tag name - * @type {string} - * @memberof ApiContentHaloRunV1alpha1TagApiQueryPostsByTagName - */ - readonly name: string; + /** + * Tag name + * @type {string} + * @memberof ApiContentHaloRunV1alpha1TagApiQueryPostsByTagName + */ + readonly name: string - /** - * Field selector for filtering. - * @type {Array} - * @memberof ApiContentHaloRunV1alpha1TagApiQueryPostsByTagName - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ApiContentHaloRunV1alpha1TagApiQueryPostsByTagName + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ApiContentHaloRunV1alpha1TagApiQueryPostsByTagName - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ApiContentHaloRunV1alpha1TagApiQueryPostsByTagName + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ApiContentHaloRunV1alpha1TagApiQueryPostsByTagName - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ApiContentHaloRunV1alpha1TagApiQueryPostsByTagName + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ApiContentHaloRunV1alpha1TagApiQueryPostsByTagName - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ApiContentHaloRunV1alpha1TagApiQueryPostsByTagName + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof ApiContentHaloRunV1alpha1TagApiQueryPostsByTagName - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ApiContentHaloRunV1alpha1TagApiQueryPostsByTagName + */ + readonly sort?: Array } /** @@ -504,12 +352,12 @@ export interface ApiContentHaloRunV1alpha1TagApiQueryPostsByTagNameRequest { * @interface ApiContentHaloRunV1alpha1TagApiQueryTagByNameRequest */ export interface ApiContentHaloRunV1alpha1TagApiQueryTagByNameRequest { - /** - * Tag name - * @type {string} - * @memberof ApiContentHaloRunV1alpha1TagApiQueryTagByName - */ - readonly name: string; + /** + * Tag name + * @type {string} + * @memberof ApiContentHaloRunV1alpha1TagApiQueryTagByName + */ + readonly name: string } /** @@ -518,40 +366,40 @@ export interface ApiContentHaloRunV1alpha1TagApiQueryTagByNameRequest { * @interface ApiContentHaloRunV1alpha1TagApiQueryTagsRequest */ export interface ApiContentHaloRunV1alpha1TagApiQueryTagsRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof ApiContentHaloRunV1alpha1TagApiQueryTags - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ApiContentHaloRunV1alpha1TagApiQueryTags + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ApiContentHaloRunV1alpha1TagApiQueryTags - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ApiContentHaloRunV1alpha1TagApiQueryTags + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ApiContentHaloRunV1alpha1TagApiQueryTags - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ApiContentHaloRunV1alpha1TagApiQueryTags + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ApiContentHaloRunV1alpha1TagApiQueryTags - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ApiContentHaloRunV1alpha1TagApiQueryTags + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof ApiContentHaloRunV1alpha1TagApiQueryTags - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ApiContentHaloRunV1alpha1TagApiQueryTags + */ + readonly sort?: Array } /** @@ -561,66 +409,37 @@ export interface ApiContentHaloRunV1alpha1TagApiQueryTagsRequest { * @extends {BaseAPI} */ export class ApiContentHaloRunV1alpha1TagApi extends BaseAPI { - /** - * Lists posts by tag name - * @param {ApiContentHaloRunV1alpha1TagApiQueryPostsByTagNameRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiContentHaloRunV1alpha1TagApi - */ - public queryPostsByTagName( - requestParameters: ApiContentHaloRunV1alpha1TagApiQueryPostsByTagNameRequest, - options?: AxiosRequestConfig - ) { - return ApiContentHaloRunV1alpha1TagApiFp(this.configuration) - .queryPostsByTagName( - requestParameters.name, - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Lists posts by tag name + * @param {ApiContentHaloRunV1alpha1TagApiQueryPostsByTagNameRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiContentHaloRunV1alpha1TagApi + */ + public queryPostsByTagName(requestParameters: ApiContentHaloRunV1alpha1TagApiQueryPostsByTagNameRequest, options?: RawAxiosRequestConfig) { + return ApiContentHaloRunV1alpha1TagApiFp(this.configuration).queryPostsByTagName(requestParameters.name, requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Gets tag by name - * @param {ApiContentHaloRunV1alpha1TagApiQueryTagByNameRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiContentHaloRunV1alpha1TagApi - */ - public queryTagByName( - requestParameters: ApiContentHaloRunV1alpha1TagApiQueryTagByNameRequest, - options?: AxiosRequestConfig - ) { - return ApiContentHaloRunV1alpha1TagApiFp(this.configuration) - .queryTagByName(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Gets tag by name + * @param {ApiContentHaloRunV1alpha1TagApiQueryTagByNameRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiContentHaloRunV1alpha1TagApi + */ + public queryTagByName(requestParameters: ApiContentHaloRunV1alpha1TagApiQueryTagByNameRequest, options?: RawAxiosRequestConfig) { + return ApiContentHaloRunV1alpha1TagApiFp(this.configuration).queryTagByName(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Lists tags - * @param {ApiContentHaloRunV1alpha1TagApiQueryTagsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiContentHaloRunV1alpha1TagApi - */ - public queryTags( - requestParameters: ApiContentHaloRunV1alpha1TagApiQueryTagsRequest = {}, - options?: AxiosRequestConfig - ) { - return ApiContentHaloRunV1alpha1TagApiFp(this.configuration) - .queryTags( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Lists tags + * @param {ApiContentHaloRunV1alpha1TagApiQueryTagsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiContentHaloRunV1alpha1TagApi + */ + public queryTags(requestParameters: ApiContentHaloRunV1alpha1TagApiQueryTagsRequest = {}, options?: RawAxiosRequestConfig) { + return ApiContentHaloRunV1alpha1TagApiFp(this.configuration).queryTags(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-halo-run-v1alpha1-comment-api.ts b/ui/packages/api-client/src/api/api-halo-run-v1alpha1-comment-api.ts index fde6b6519..3152b3d72 100644 --- a/ui/packages/api-client/src/api/api-halo-run-v1alpha1-comment-api.ts +++ b/ui/packages/api-client/src/api/api-halo-run-v1alpha1-comment-api.ts @@ -5,653 +5,449 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Comment } from "../models"; +import { Comment } from '../models'; // @ts-ignore -import { CommentRequest } from "../models"; +import { CommentRequest } from '../models'; // @ts-ignore -import { CommentVoList } from "../models"; +import { CommentVoList } from '../models'; // @ts-ignore -import { Reply } from "../models"; +import { CommentWithReplyVoList } from '../models'; // @ts-ignore -import { ReplyRequest } from "../models"; +import { Reply } from '../models'; // @ts-ignore -import { ReplyVoList } from "../models"; +import { ReplyRequest } from '../models'; +// @ts-ignore +import { ReplyVoList } from '../models'; /** * ApiHaloRunV1alpha1CommentApi - axios parameter creator * @export */ -export const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create a comment. - * @param {CommentRequest} commentRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createComment1: async ( - commentRequest: CommentRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'commentRequest' is not null or undefined - assertParamExists("createComment1", "commentRequest", commentRequest); - const localVarPath = `/apis/api.halo.run/v1alpha1/comments`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create a comment. + * @param {CommentRequest} commentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createComment1: async (commentRequest: CommentRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'commentRequest' is not null or undefined + assertParamExists('createComment1', 'commentRequest', commentRequest) + const localVarPath = `/apis/api.halo.run/v1alpha1/comments`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - commentRequest, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Create a reply. - * @param {string} name - * @param {ReplyRequest} replyRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createReply1: async ( - name: string, - replyRequest: ReplyRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("createReply1", "name", name); - // verify required parameter 'replyRequest' is not null or undefined - assertParamExists("createReply1", "replyRequest", replyRequest); - const localVarPath = - `/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(commentRequest, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Create a reply. + * @param {string} name + * @param {ReplyRequest} replyRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createReply1: async (name: string, replyRequest: ReplyRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('createReply1', 'name', name) + // verify required parameter 'replyRequest' is not null or undefined + assertParamExists('createReply1', 'replyRequest', replyRequest) + const localVarPath = `/apis/api.halo.run/v1alpha1/comments/{name}/reply` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - replyRequest, - localVarRequestOptions, - configuration - ); - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get a comment. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getComment: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getComment", "name", name); - const localVarPath = - `/apis/api.halo.run/v1alpha1/comments/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + + localVarHeaderParameter['Content-Type'] = 'application/json'; - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(replyRequest, localVarRequestOptions, configuration) - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get a comment. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getComment: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getComment', 'name', name) + const localVarPath = `/apis/api.halo.run/v1alpha1/comments/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List comment replies. - * @param {string} name - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listCommentReplies: async ( - name: string, - page?: number, - size?: number, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("listCommentReplies", "name", name); - const localVarPath = - `/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List comment replies. + * @param {string} name + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listCommentReplies: async (name: string, page?: number, size?: number, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('listCommentReplies', 'name', name) + const localVarPath = `/apis/api.halo.run/v1alpha1/comments/{name}/reply` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List comments. - * @param {string} kind The comment subject kind. - * @param {string} name The comment subject name. - * @param {string} version The comment subject version. - * @param {string} [group] The comment subject group. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listComments1: async ( - kind: string, - name: string, - version: string, - group?: string, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'kind' is not null or undefined - assertParamExists("listComments1", "kind", kind); - // verify required parameter 'name' is not null or undefined - assertParamExists("listComments1", "name", name); - // verify required parameter 'version' is not null or undefined - assertParamExists("listComments1", "version", version); - const localVarPath = `/apis/api.halo.run/v1alpha1/comments`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - if (group !== undefined) { - localVarQueryParameter["group"] = group; - } + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List comments. + * @param {string} version The comment subject version. + * @param {string} kind The comment subject kind. + * @param {string} name The comment subject name. + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {string} [group] The comment subject group. + * @param {boolean} [withReplies] Whether to include replies. Default is false. + * @param {number} [replySize] Reply size of the comment, default is 10, only works when withReplies is true. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listComments1: async (version: string, kind: string, name: string, page?: number, size?: number, sort?: Array, group?: string, withReplies?: boolean, replySize?: number, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'version' is not null or undefined + assertParamExists('listComments1', 'version', version) + // verify required parameter 'kind' is not null or undefined + assertParamExists('listComments1', 'kind', kind) + // verify required parameter 'name' is not null or undefined + assertParamExists('listComments1', 'name', name) + const localVarPath = `/apis/api.halo.run/v1alpha1/comments`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (kind !== undefined) { - localVarQueryParameter["kind"] = kind; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (name !== undefined) { - localVarQueryParameter["name"] = name; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - if (version !== undefined) { - localVarQueryParameter["version"] = version; - } + if (sort) { + localVarQueryParameter['sort'] = sort; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (group !== undefined) { + localVarQueryParameter['group'] = group; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + if (version !== undefined) { + localVarQueryParameter['version'] = version; + } + + if (kind !== undefined) { + localVarQueryParameter['kind'] = kind; + } + + if (name !== undefined) { + localVarQueryParameter['name'] = name; + } + + if (withReplies !== undefined) { + localVarQueryParameter['withReplies'] = withReplies; + } + + if (replySize !== undefined) { + localVarQueryParameter['replySize'] = replySize; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ApiHaloRunV1alpha1CommentApi - functional programming interface * @export */ -export const ApiHaloRunV1alpha1CommentApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiHaloRunV1alpha1CommentApiAxiosParamCreator(configuration); - return { - /** - * Create a comment. - * @param {CommentRequest} commentRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createComment1( - commentRequest: CommentRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.createComment1( - commentRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Create a reply. - * @param {string} name - * @param {ReplyRequest} replyRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createReply1( - name: string, - replyRequest: ReplyRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.createReply1( - name, - replyRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get a comment. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getComment( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.getComment( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List comment replies. - * @param {string} name - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listCommentReplies( - name: string, - page?: number, - size?: number, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listCommentReplies( - name, - page, - size, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List comments. - * @param {string} kind The comment subject kind. - * @param {string} name The comment subject name. - * @param {string} version The comment subject version. - * @param {string} [group] The comment subject group. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listComments1( - kind: string, - name: string, - version: string, - group?: string, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.listComments1( - kind, - name, - version, - group, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiHaloRunV1alpha1CommentApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiHaloRunV1alpha1CommentApiAxiosParamCreator(configuration) + return { + /** + * Create a comment. + * @param {CommentRequest} commentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createComment1(commentRequest: CommentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createComment1(commentRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiHaloRunV1alpha1CommentApi.createComment1']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Create a reply. + * @param {string} name + * @param {ReplyRequest} replyRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createReply1(name: string, replyRequest: ReplyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createReply1(name, replyRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiHaloRunV1alpha1CommentApi.createReply1']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get a comment. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getComment(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getComment(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiHaloRunV1alpha1CommentApi.getComment']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List comment replies. + * @param {string} name + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listCommentReplies(name: string, page?: number, size?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listCommentReplies(name, page, size, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiHaloRunV1alpha1CommentApi.listCommentReplies']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List comments. + * @param {string} version The comment subject version. + * @param {string} kind The comment subject kind. + * @param {string} name The comment subject name. + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {string} [group] The comment subject group. + * @param {boolean} [withReplies] Whether to include replies. Default is false. + * @param {number} [replySize] Reply size of the comment, default is 10, only works when withReplies is true. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listComments1(version: string, kind: string, name: string, page?: number, size?: number, sort?: Array, group?: string, withReplies?: boolean, replySize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listComments1(version, kind, name, page, size, sort, group, withReplies, replySize, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiHaloRunV1alpha1CommentApi.listComments1']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiHaloRunV1alpha1CommentApi - factory interface * @export */ -export const ApiHaloRunV1alpha1CommentApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiHaloRunV1alpha1CommentApiFp(configuration); - return { - /** - * Create a comment. - * @param {ApiHaloRunV1alpha1CommentApiCreateComment1Request} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createComment1( - requestParameters: ApiHaloRunV1alpha1CommentApiCreateComment1Request, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createComment1(requestParameters.commentRequest, options) - .then((request) => request(axios, basePath)); - }, - /** - * Create a reply. - * @param {ApiHaloRunV1alpha1CommentApiCreateReply1Request} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createReply1( - requestParameters: ApiHaloRunV1alpha1CommentApiCreateReply1Request, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createReply1( - requestParameters.name, - requestParameters.replyRequest, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Get a comment. - * @param {ApiHaloRunV1alpha1CommentApiGetCommentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getComment( - requestParameters: ApiHaloRunV1alpha1CommentApiGetCommentRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getComment(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List comment replies. - * @param {ApiHaloRunV1alpha1CommentApiListCommentRepliesRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listCommentReplies( - requestParameters: ApiHaloRunV1alpha1CommentApiListCommentRepliesRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listCommentReplies( - requestParameters.name, - requestParameters.page, - requestParameters.size, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * List comments. - * @param {ApiHaloRunV1alpha1CommentApiListComments1Request} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listComments1( - requestParameters: ApiHaloRunV1alpha1CommentApiListComments1Request, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listComments1( - requestParameters.kind, - requestParameters.name, - requestParameters.version, - requestParameters.group, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiHaloRunV1alpha1CommentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiHaloRunV1alpha1CommentApiFp(configuration) + return { + /** + * Create a comment. + * @param {ApiHaloRunV1alpha1CommentApiCreateComment1Request} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createComment1(requestParameters: ApiHaloRunV1alpha1CommentApiCreateComment1Request, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createComment1(requestParameters.commentRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Create a reply. + * @param {ApiHaloRunV1alpha1CommentApiCreateReply1Request} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createReply1(requestParameters: ApiHaloRunV1alpha1CommentApiCreateReply1Request, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createReply1(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Get a comment. + * @param {ApiHaloRunV1alpha1CommentApiGetCommentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getComment(requestParameters: ApiHaloRunV1alpha1CommentApiGetCommentRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getComment(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List comment replies. + * @param {ApiHaloRunV1alpha1CommentApiListCommentRepliesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listCommentReplies(requestParameters: ApiHaloRunV1alpha1CommentApiListCommentRepliesRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listCommentReplies(requestParameters.name, requestParameters.page, requestParameters.size, options).then((request) => request(axios, basePath)); + }, + /** + * List comments. + * @param {ApiHaloRunV1alpha1CommentApiListComments1Request} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listComments1(requestParameters: ApiHaloRunV1alpha1CommentApiListComments1Request, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listComments1(requestParameters.version, requestParameters.kind, requestParameters.name, requestParameters.page, requestParameters.size, requestParameters.sort, requestParameters.group, requestParameters.withReplies, requestParameters.replySize, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -660,12 +456,12 @@ export const ApiHaloRunV1alpha1CommentApiFactory = function ( * @interface ApiHaloRunV1alpha1CommentApiCreateComment1Request */ export interface ApiHaloRunV1alpha1CommentApiCreateComment1Request { - /** - * - * @type {CommentRequest} - * @memberof ApiHaloRunV1alpha1CommentApiCreateComment1 - */ - readonly commentRequest: CommentRequest; + /** + * + * @type {CommentRequest} + * @memberof ApiHaloRunV1alpha1CommentApiCreateComment1 + */ + readonly commentRequest: CommentRequest } /** @@ -674,19 +470,19 @@ export interface ApiHaloRunV1alpha1CommentApiCreateComment1Request { * @interface ApiHaloRunV1alpha1CommentApiCreateReply1Request */ export interface ApiHaloRunV1alpha1CommentApiCreateReply1Request { - /** - * - * @type {string} - * @memberof ApiHaloRunV1alpha1CommentApiCreateReply1 - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiHaloRunV1alpha1CommentApiCreateReply1 + */ + readonly name: string - /** - * - * @type {ReplyRequest} - * @memberof ApiHaloRunV1alpha1CommentApiCreateReply1 - */ - readonly replyRequest: ReplyRequest; + /** + * + * @type {ReplyRequest} + * @memberof ApiHaloRunV1alpha1CommentApiCreateReply1 + */ + readonly replyRequest: ReplyRequest } /** @@ -695,12 +491,12 @@ export interface ApiHaloRunV1alpha1CommentApiCreateReply1Request { * @interface ApiHaloRunV1alpha1CommentApiGetCommentRequest */ export interface ApiHaloRunV1alpha1CommentApiGetCommentRequest { - /** - * - * @type {string} - * @memberof ApiHaloRunV1alpha1CommentApiGetComment - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiHaloRunV1alpha1CommentApiGetComment + */ + readonly name: string } /** @@ -709,26 +505,26 @@ export interface ApiHaloRunV1alpha1CommentApiGetCommentRequest { * @interface ApiHaloRunV1alpha1CommentApiListCommentRepliesRequest */ export interface ApiHaloRunV1alpha1CommentApiListCommentRepliesRequest { - /** - * - * @type {string} - * @memberof ApiHaloRunV1alpha1CommentApiListCommentReplies - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiHaloRunV1alpha1CommentApiListCommentReplies + */ + readonly name: string - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ApiHaloRunV1alpha1CommentApiListCommentReplies - */ - readonly page?: number; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ApiHaloRunV1alpha1CommentApiListCommentReplies + */ + readonly page?: number - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ApiHaloRunV1alpha1CommentApiListCommentReplies - */ - readonly size?: number; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ApiHaloRunV1alpha1CommentApiListCommentReplies + */ + readonly size?: number } /** @@ -737,54 +533,68 @@ export interface ApiHaloRunV1alpha1CommentApiListCommentRepliesRequest { * @interface ApiHaloRunV1alpha1CommentApiListComments1Request */ export interface ApiHaloRunV1alpha1CommentApiListComments1Request { - /** - * The comment subject kind. - * @type {string} - * @memberof ApiHaloRunV1alpha1CommentApiListComments1 - */ - readonly kind: string; + /** + * The comment subject version. + * @type {string} + * @memberof ApiHaloRunV1alpha1CommentApiListComments1 + */ + readonly version: string - /** - * The comment subject name. - * @type {string} - * @memberof ApiHaloRunV1alpha1CommentApiListComments1 - */ - readonly name: string; + /** + * The comment subject kind. + * @type {string} + * @memberof ApiHaloRunV1alpha1CommentApiListComments1 + */ + readonly kind: string - /** - * The comment subject version. - * @type {string} - * @memberof ApiHaloRunV1alpha1CommentApiListComments1 - */ - readonly version: string; + /** + * The comment subject name. + * @type {string} + * @memberof ApiHaloRunV1alpha1CommentApiListComments1 + */ + readonly name: string - /** - * The comment subject group. - * @type {string} - * @memberof ApiHaloRunV1alpha1CommentApiListComments1 - */ - readonly group?: string; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ApiHaloRunV1alpha1CommentApiListComments1 + */ + readonly page?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ApiHaloRunV1alpha1CommentApiListComments1 - */ - readonly page?: number; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ApiHaloRunV1alpha1CommentApiListComments1 + */ + readonly size?: number - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ApiHaloRunV1alpha1CommentApiListComments1 - */ - readonly size?: number; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ApiHaloRunV1alpha1CommentApiListComments1 + */ + readonly sort?: Array - /** - * Sort property and direction of the list result. Supported fields: creationTimestamp - * @type {Array} - * @memberof ApiHaloRunV1alpha1CommentApiListComments1 - */ - readonly sort?: Array; + /** + * The comment subject group. + * @type {string} + * @memberof ApiHaloRunV1alpha1CommentApiListComments1 + */ + readonly group?: string + + /** + * Whether to include replies. Default is false. + * @type {boolean} + * @memberof ApiHaloRunV1alpha1CommentApiListComments1 + */ + readonly withReplies?: boolean + + /** + * Reply size of the comment, default is 10, only works when withReplies is true. + * @type {number} + * @memberof ApiHaloRunV1alpha1CommentApiListComments1 + */ + readonly replySize?: number } /** @@ -794,101 +604,59 @@ export interface ApiHaloRunV1alpha1CommentApiListComments1Request { * @extends {BaseAPI} */ export class ApiHaloRunV1alpha1CommentApi extends BaseAPI { - /** - * Create a comment. - * @param {ApiHaloRunV1alpha1CommentApiCreateComment1Request} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiHaloRunV1alpha1CommentApi - */ - public createComment1( - requestParameters: ApiHaloRunV1alpha1CommentApiCreateComment1Request, - options?: AxiosRequestConfig - ) { - return ApiHaloRunV1alpha1CommentApiFp(this.configuration) - .createComment1(requestParameters.commentRequest, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create a comment. + * @param {ApiHaloRunV1alpha1CommentApiCreateComment1Request} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiHaloRunV1alpha1CommentApi + */ + public createComment1(requestParameters: ApiHaloRunV1alpha1CommentApiCreateComment1Request, options?: RawAxiosRequestConfig) { + return ApiHaloRunV1alpha1CommentApiFp(this.configuration).createComment1(requestParameters.commentRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Create a reply. - * @param {ApiHaloRunV1alpha1CommentApiCreateReply1Request} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiHaloRunV1alpha1CommentApi - */ - public createReply1( - requestParameters: ApiHaloRunV1alpha1CommentApiCreateReply1Request, - options?: AxiosRequestConfig - ) { - return ApiHaloRunV1alpha1CommentApiFp(this.configuration) - .createReply1( - requestParameters.name, - requestParameters.replyRequest, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create a reply. + * @param {ApiHaloRunV1alpha1CommentApiCreateReply1Request} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiHaloRunV1alpha1CommentApi + */ + public createReply1(requestParameters: ApiHaloRunV1alpha1CommentApiCreateReply1Request, options?: RawAxiosRequestConfig) { + return ApiHaloRunV1alpha1CommentApiFp(this.configuration).createReply1(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get a comment. - * @param {ApiHaloRunV1alpha1CommentApiGetCommentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiHaloRunV1alpha1CommentApi - */ - public getComment( - requestParameters: ApiHaloRunV1alpha1CommentApiGetCommentRequest, - options?: AxiosRequestConfig - ) { - return ApiHaloRunV1alpha1CommentApiFp(this.configuration) - .getComment(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get a comment. + * @param {ApiHaloRunV1alpha1CommentApiGetCommentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiHaloRunV1alpha1CommentApi + */ + public getComment(requestParameters: ApiHaloRunV1alpha1CommentApiGetCommentRequest, options?: RawAxiosRequestConfig) { + return ApiHaloRunV1alpha1CommentApiFp(this.configuration).getComment(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List comment replies. - * @param {ApiHaloRunV1alpha1CommentApiListCommentRepliesRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiHaloRunV1alpha1CommentApi - */ - public listCommentReplies( - requestParameters: ApiHaloRunV1alpha1CommentApiListCommentRepliesRequest, - options?: AxiosRequestConfig - ) { - return ApiHaloRunV1alpha1CommentApiFp(this.configuration) - .listCommentReplies( - requestParameters.name, - requestParameters.page, - requestParameters.size, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List comment replies. + * @param {ApiHaloRunV1alpha1CommentApiListCommentRepliesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiHaloRunV1alpha1CommentApi + */ + public listCommentReplies(requestParameters: ApiHaloRunV1alpha1CommentApiListCommentRepliesRequest, options?: RawAxiosRequestConfig) { + return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listCommentReplies(requestParameters.name, requestParameters.page, requestParameters.size, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List comments. - * @param {ApiHaloRunV1alpha1CommentApiListComments1Request} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiHaloRunV1alpha1CommentApi - */ - public listComments1( - requestParameters: ApiHaloRunV1alpha1CommentApiListComments1Request, - options?: AxiosRequestConfig - ) { - return ApiHaloRunV1alpha1CommentApiFp(this.configuration) - .listComments1( - requestParameters.kind, - requestParameters.name, - requestParameters.version, - requestParameters.group, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List comments. + * @param {ApiHaloRunV1alpha1CommentApiListComments1Request} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiHaloRunV1alpha1CommentApi + */ + public listComments1(requestParameters: ApiHaloRunV1alpha1CommentApiListComments1Request, options?: RawAxiosRequestConfig) { + return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listComments1(requestParameters.version, requestParameters.kind, requestParameters.name, requestParameters.page, requestParameters.size, requestParameters.sort, requestParameters.group, requestParameters.withReplies, requestParameters.replySize, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-halo-run-v1alpha1-menu-api.ts b/ui/packages/api-client/src/api/api-halo-run-v1alpha1-menu-api.ts index 87af5568d..316018789 100644 --- a/ui/packages/api-client/src/api/api-halo-run-v1alpha1-menu-api.ts +++ b/ui/packages/api-client/src/api/api-halo-run-v1alpha1-menu-api.ts @@ -5,241 +5,169 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { MenuVo } from "../models"; +import { MenuVo } from '../models'; /** * ApiHaloRunV1alpha1MenuApi - axios parameter creator * @export */ -export const ApiHaloRunV1alpha1MenuApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Gets menu by name. - * @param {string} name Menu name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryMenuByName: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("queryMenuByName", "name", name); - const localVarPath = `/apis/api.halo.run/v1alpha1/menus/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ApiHaloRunV1alpha1MenuApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Gets menu by name. + * @param {string} name Menu name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryMenuByName: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('queryMenuByName', 'name', name) + const localVarPath = `/apis/api.halo.run/v1alpha1/menus/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Gets primary menu. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryPrimaryMenu: async ( - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.halo.run/v1alpha1/menus/-`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Gets primary menu. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryPrimaryMenu: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.halo.run/v1alpha1/menus/-`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ApiHaloRunV1alpha1MenuApi - functional programming interface * @export */ -export const ApiHaloRunV1alpha1MenuApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiHaloRunV1alpha1MenuApiAxiosParamCreator(configuration); - return { - /** - * Gets menu by name. - * @param {string} name Menu name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async queryMenuByName( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.queryMenuByName( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Gets primary menu. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async queryPrimaryMenu( - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.queryPrimaryMenu(options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiHaloRunV1alpha1MenuApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiHaloRunV1alpha1MenuApiAxiosParamCreator(configuration) + return { + /** + * Gets menu by name. + * @param {string} name Menu name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryMenuByName(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.queryMenuByName(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiHaloRunV1alpha1MenuApi.queryMenuByName']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Gets primary menu. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryPrimaryMenu(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.queryPrimaryMenu(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiHaloRunV1alpha1MenuApi.queryPrimaryMenu']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiHaloRunV1alpha1MenuApi - factory interface * @export */ -export const ApiHaloRunV1alpha1MenuApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiHaloRunV1alpha1MenuApiFp(configuration); - return { - /** - * Gets menu by name. - * @param {ApiHaloRunV1alpha1MenuApiQueryMenuByNameRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryMenuByName( - requestParameters: ApiHaloRunV1alpha1MenuApiQueryMenuByNameRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .queryMenuByName(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Gets primary menu. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryPrimaryMenu(options?: AxiosRequestConfig): AxiosPromise { - return localVarFp - .queryPrimaryMenu(options) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiHaloRunV1alpha1MenuApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiHaloRunV1alpha1MenuApiFp(configuration) + return { + /** + * Gets menu by name. + * @param {ApiHaloRunV1alpha1MenuApiQueryMenuByNameRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryMenuByName(requestParameters: ApiHaloRunV1alpha1MenuApiQueryMenuByNameRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.queryMenuByName(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Gets primary menu. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryPrimaryMenu(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.queryPrimaryMenu(options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -248,12 +176,12 @@ export const ApiHaloRunV1alpha1MenuApiFactory = function ( * @interface ApiHaloRunV1alpha1MenuApiQueryMenuByNameRequest */ export interface ApiHaloRunV1alpha1MenuApiQueryMenuByNameRequest { - /** - * Menu name - * @type {string} - * @memberof ApiHaloRunV1alpha1MenuApiQueryMenuByName - */ - readonly name: string; + /** + * Menu name + * @type {string} + * @memberof ApiHaloRunV1alpha1MenuApiQueryMenuByName + */ + readonly name: string } /** @@ -263,31 +191,25 @@ export interface ApiHaloRunV1alpha1MenuApiQueryMenuByNameRequest { * @extends {BaseAPI} */ export class ApiHaloRunV1alpha1MenuApi extends BaseAPI { - /** - * Gets menu by name. - * @param {ApiHaloRunV1alpha1MenuApiQueryMenuByNameRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiHaloRunV1alpha1MenuApi - */ - public queryMenuByName( - requestParameters: ApiHaloRunV1alpha1MenuApiQueryMenuByNameRequest, - options?: AxiosRequestConfig - ) { - return ApiHaloRunV1alpha1MenuApiFp(this.configuration) - .queryMenuByName(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Gets menu by name. + * @param {ApiHaloRunV1alpha1MenuApiQueryMenuByNameRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiHaloRunV1alpha1MenuApi + */ + public queryMenuByName(requestParameters: ApiHaloRunV1alpha1MenuApiQueryMenuByNameRequest, options?: RawAxiosRequestConfig) { + return ApiHaloRunV1alpha1MenuApiFp(this.configuration).queryMenuByName(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Gets primary menu. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiHaloRunV1alpha1MenuApi - */ - public queryPrimaryMenu(options?: AxiosRequestConfig) { - return ApiHaloRunV1alpha1MenuApiFp(this.configuration) - .queryPrimaryMenu(options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Gets primary menu. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiHaloRunV1alpha1MenuApi + */ + public queryPrimaryMenu(options?: RawAxiosRequestConfig) { + return ApiHaloRunV1alpha1MenuApiFp(this.configuration).queryPrimaryMenu(options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-halo-run-v1alpha1-post-api.ts b/ui/packages/api-client/src/api/api-halo-run-v1alpha1-post-api.ts index 3854106c4..aafac380c 100644 --- a/ui/packages/api-client/src/api/api-halo-run-v1alpha1-post-api.ts +++ b/ui/packages/api-client/src/api/api-halo-run-v1alpha1-post-api.ts @@ -5,200 +5,134 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { PostHits } from "../models"; +import { PostHits } from '../models'; /** * ApiHaloRunV1alpha1PostApi - axios parameter creator * @export */ -export const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Search posts with fuzzy query - * @param {string} keyword - * @param {string} [highlightPostTag] - * @param {string} [highlightPreTag] - * @param {number} [limit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - searchPost: async ( - keyword: string, - highlightPostTag?: string, - highlightPreTag?: string, - limit?: number, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'keyword' is not null or undefined - assertParamExists("searchPost", "keyword", keyword); - const localVarPath = `/apis/api.halo.run/v1alpha1/indices/post`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Search posts with fuzzy query + * @param {string} keyword Keyword to search + * @param {number} [limit] Limit of search results + * @param {string} [highlightPreTag] Highlight pre tag + * @param {string} [highlightPostTag] Highlight post tag + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + searchPost: async (keyword: string, limit?: number, highlightPreTag?: string, highlightPostTag?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'keyword' is not null or undefined + assertParamExists('searchPost', 'keyword', keyword) + const localVarPath = `/apis/api.halo.run/v1alpha1/indices/post`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (highlightPostTag !== undefined) { - localVarQueryParameter["highlightPostTag"] = highlightPostTag; - } + if (keyword !== undefined) { + localVarQueryParameter['keyword'] = keyword; + } - if (highlightPreTag !== undefined) { - localVarQueryParameter["highlightPreTag"] = highlightPreTag; - } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } - if (keyword !== undefined) { - localVarQueryParameter["keyword"] = keyword; - } + if (highlightPreTag !== undefined) { + localVarQueryParameter['highlightPreTag'] = highlightPreTag; + } - if (limit !== undefined) { - localVarQueryParameter["limit"] = limit; - } + if (highlightPostTag !== undefined) { + localVarQueryParameter['highlightPostTag'] = highlightPostTag; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ApiHaloRunV1alpha1PostApi - functional programming interface * @export */ -export const ApiHaloRunV1alpha1PostApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration); - return { - /** - * Search posts with fuzzy query - * @param {string} keyword - * @param {string} [highlightPostTag] - * @param {string} [highlightPreTag] - * @param {number} [limit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async searchPost( - keyword: string, - highlightPostTag?: string, - highlightPreTag?: string, - limit?: number, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost( - keyword, - highlightPostTag, - highlightPreTag, - limit, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiHaloRunV1alpha1PostApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration) + return { + /** + * Search posts with fuzzy query + * @param {string} keyword Keyword to search + * @param {number} [limit] Limit of search results + * @param {string} [highlightPreTag] Highlight pre tag + * @param {string} [highlightPostTag] Highlight post tag + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async searchPost(keyword: string, limit?: number, highlightPreTag?: string, highlightPostTag?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiHaloRunV1alpha1PostApi.searchPost']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiHaloRunV1alpha1PostApi - factory interface * @export */ -export const ApiHaloRunV1alpha1PostApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration); - return { - /** - * Search posts with fuzzy query - * @param {ApiHaloRunV1alpha1PostApiSearchPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - searchPost( - requestParameters: ApiHaloRunV1alpha1PostApiSearchPostRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .searchPost( - requestParameters.keyword, - requestParameters.highlightPostTag, - requestParameters.highlightPreTag, - requestParameters.limit, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiHaloRunV1alpha1PostApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration) + return { + /** + * Search posts with fuzzy query + * @param {ApiHaloRunV1alpha1PostApiSearchPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + searchPost(requestParameters: ApiHaloRunV1alpha1PostApiSearchPostRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.searchPost(requestParameters.keyword, requestParameters.limit, requestParameters.highlightPreTag, requestParameters.highlightPostTag, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -207,33 +141,33 @@ export const ApiHaloRunV1alpha1PostApiFactory = function ( * @interface ApiHaloRunV1alpha1PostApiSearchPostRequest */ export interface ApiHaloRunV1alpha1PostApiSearchPostRequest { - /** - * - * @type {string} - * @memberof ApiHaloRunV1alpha1PostApiSearchPost - */ - readonly keyword: string; + /** + * Keyword to search + * @type {string} + * @memberof ApiHaloRunV1alpha1PostApiSearchPost + */ + readonly keyword: string - /** - * - * @type {string} - * @memberof ApiHaloRunV1alpha1PostApiSearchPost - */ - readonly highlightPostTag?: string; + /** + * Limit of search results + * @type {number} + * @memberof ApiHaloRunV1alpha1PostApiSearchPost + */ + readonly limit?: number - /** - * - * @type {string} - * @memberof ApiHaloRunV1alpha1PostApiSearchPost - */ - readonly highlightPreTag?: string; + /** + * Highlight pre tag + * @type {string} + * @memberof ApiHaloRunV1alpha1PostApiSearchPost + */ + readonly highlightPreTag?: string - /** - * - * @type {number} - * @memberof ApiHaloRunV1alpha1PostApiSearchPost - */ - readonly limit?: number; + /** + * Highlight post tag + * @type {string} + * @memberof ApiHaloRunV1alpha1PostApiSearchPost + */ + readonly highlightPostTag?: string } /** @@ -243,25 +177,15 @@ export interface ApiHaloRunV1alpha1PostApiSearchPostRequest { * @extends {BaseAPI} */ export class ApiHaloRunV1alpha1PostApi extends BaseAPI { - /** - * Search posts with fuzzy query - * @param {ApiHaloRunV1alpha1PostApiSearchPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiHaloRunV1alpha1PostApi - */ - public searchPost( - requestParameters: ApiHaloRunV1alpha1PostApiSearchPostRequest, - options?: AxiosRequestConfig - ) { - return ApiHaloRunV1alpha1PostApiFp(this.configuration) - .searchPost( - requestParameters.keyword, - requestParameters.highlightPostTag, - requestParameters.highlightPreTag, - requestParameters.limit, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Search posts with fuzzy query + * @param {ApiHaloRunV1alpha1PostApiSearchPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiHaloRunV1alpha1PostApi + */ + public searchPost(requestParameters: ApiHaloRunV1alpha1PostApiSearchPostRequest, options?: RawAxiosRequestConfig) { + return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.limit, requestParameters.highlightPreTag, requestParameters.highlightPostTag, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-halo-run-v1alpha1-stats-api.ts b/ui/packages/api-client/src/api/api-halo-run-v1alpha1-stats-api.ts index cde34fbd8..df5f051e7 100644 --- a/ui/packages/api-client/src/api/api-halo-run-v1alpha1-stats-api.ts +++ b/ui/packages/api-client/src/api/api-halo-run-v1alpha1-stats-api.ts @@ -5,152 +5,107 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { SiteStatsVo } from "../models"; +import { SiteStatsVo } from '../models'; /** * ApiHaloRunV1alpha1StatsApi - axios parameter creator * @export */ -export const ApiHaloRunV1alpha1StatsApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Gets site stats - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryStats: async ( - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.halo.run/v1alpha1/stats/-`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ApiHaloRunV1alpha1StatsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Gets site stats + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryStats: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.halo.run/v1alpha1/stats/-`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ApiHaloRunV1alpha1StatsApi - functional programming interface * @export */ -export const ApiHaloRunV1alpha1StatsApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiHaloRunV1alpha1StatsApiAxiosParamCreator(configuration); - return { - /** - * Gets site stats - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async queryStats( - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.queryStats( - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiHaloRunV1alpha1StatsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiHaloRunV1alpha1StatsApiAxiosParamCreator(configuration) + return { + /** + * Gets site stats + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryStats(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.queryStats(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiHaloRunV1alpha1StatsApi.queryStats']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiHaloRunV1alpha1StatsApi - factory interface * @export */ -export const ApiHaloRunV1alpha1StatsApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiHaloRunV1alpha1StatsApiFp(configuration); - return { - /** - * Gets site stats - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryStats(options?: AxiosRequestConfig): AxiosPromise { - return localVarFp - .queryStats(options) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiHaloRunV1alpha1StatsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiHaloRunV1alpha1StatsApiFp(configuration) + return { + /** + * Gets site stats + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryStats(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.queryStats(options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -160,15 +115,14 @@ export const ApiHaloRunV1alpha1StatsApiFactory = function ( * @extends {BaseAPI} */ export class ApiHaloRunV1alpha1StatsApi extends BaseAPI { - /** - * Gets site stats - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiHaloRunV1alpha1StatsApi - */ - public queryStats(options?: AxiosRequestConfig) { - return ApiHaloRunV1alpha1StatsApiFp(this.configuration) - .queryStats(options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Gets site stats + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiHaloRunV1alpha1StatsApi + */ + public queryStats(options?: RawAxiosRequestConfig) { + return ApiHaloRunV1alpha1StatsApiFp(this.configuration).queryStats(options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-halo-run-v1alpha1-tracker-api.ts b/ui/packages/api-client/src/api/api-halo-run-v1alpha1-tracker-api.ts index 4e3d08e48..d47208b9a 100644 --- a/ui/packages/api-client/src/api/api-halo-run-v1alpha1-tracker-api.ts +++ b/ui/packages/api-client/src/api/api-halo-run-v1alpha1-tracker-api.ts @@ -5,360 +5,245 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { CounterRequest } from "../models"; +import { CounterRequest } from '../models'; // @ts-ignore -import { VoteRequest } from "../models"; +import { VoteRequest } from '../models'; /** * ApiHaloRunV1alpha1TrackerApi - axios parameter creator * @export */ -export const ApiHaloRunV1alpha1TrackerApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Count an extension resource visits. - * @param {CounterRequest} counterRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - count: async ( - counterRequest: CounterRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'counterRequest' is not null or undefined - assertParamExists("count", "counterRequest", counterRequest); - const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/counter`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ApiHaloRunV1alpha1TrackerApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Count an extension resource visits. + * @param {CounterRequest} counterRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + count: async (counterRequest: CounterRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'counterRequest' is not null or undefined + assertParamExists('count', 'counterRequest', counterRequest) + const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/counter`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - counterRequest, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Downvote an extension resource. - * @param {VoteRequest} voteRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - downvote: async ( - voteRequest: VoteRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'voteRequest' is not null or undefined - assertParamExists("downvote", "voteRequest", voteRequest); - const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/downvote`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(counterRequest, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Downvote an extension resource. + * @param {VoteRequest} voteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + downvote: async (voteRequest: VoteRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'voteRequest' is not null or undefined + assertParamExists('downvote', 'voteRequest', voteRequest) + const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/downvote`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - voteRequest, - localVarRequestOptions, - configuration - ); - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Upvote an extension resource. - * @param {VoteRequest} voteRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - upvote: async ( - voteRequest: VoteRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'voteRequest' is not null or undefined - assertParamExists("upvote", "voteRequest", voteRequest); - const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/upvote`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + + localVarHeaderParameter['Content-Type'] = 'application/json'; - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(voteRequest, localVarRequestOptions, configuration) - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Upvote an extension resource. + * @param {VoteRequest} voteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + upvote: async (voteRequest: VoteRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'voteRequest' is not null or undefined + assertParamExists('upvote', 'voteRequest', voteRequest) + const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/upvote`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - localVarHeaderParameter["Content-Type"] = "application/json"; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - voteRequest, - localVarRequestOptions, - configuration - ); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(voteRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ApiHaloRunV1alpha1TrackerApi - functional programming interface * @export */ -export const ApiHaloRunV1alpha1TrackerApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiHaloRunV1alpha1TrackerApiAxiosParamCreator(configuration); - return { - /** - * Count an extension resource visits. - * @param {CounterRequest} counterRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async count( - counterRequest: CounterRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.count( - counterRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Downvote an extension resource. - * @param {VoteRequest} voteRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async downvote( - voteRequest: VoteRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.downvote( - voteRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Upvote an extension resource. - * @param {VoteRequest} voteRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async upvote( - voteRequest: VoteRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.upvote( - voteRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiHaloRunV1alpha1TrackerApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiHaloRunV1alpha1TrackerApiAxiosParamCreator(configuration) + return { + /** + * Count an extension resource visits. + * @param {CounterRequest} counterRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async count(counterRequest: CounterRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.count(counterRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiHaloRunV1alpha1TrackerApi.count']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Downvote an extension resource. + * @param {VoteRequest} voteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async downvote(voteRequest: VoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.downvote(voteRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiHaloRunV1alpha1TrackerApi.downvote']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Upvote an extension resource. + * @param {VoteRequest} voteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async upvote(voteRequest: VoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.upvote(voteRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiHaloRunV1alpha1TrackerApi.upvote']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiHaloRunV1alpha1TrackerApi - factory interface * @export */ -export const ApiHaloRunV1alpha1TrackerApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiHaloRunV1alpha1TrackerApiFp(configuration); - return { - /** - * Count an extension resource visits. - * @param {ApiHaloRunV1alpha1TrackerApiCountRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - count( - requestParameters: ApiHaloRunV1alpha1TrackerApiCountRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .count(requestParameters.counterRequest, options) - .then((request) => request(axios, basePath)); - }, - /** - * Downvote an extension resource. - * @param {ApiHaloRunV1alpha1TrackerApiDownvoteRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - downvote( - requestParameters: ApiHaloRunV1alpha1TrackerApiDownvoteRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .downvote(requestParameters.voteRequest, options) - .then((request) => request(axios, basePath)); - }, - /** - * Upvote an extension resource. - * @param {ApiHaloRunV1alpha1TrackerApiUpvoteRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - upvote( - requestParameters: ApiHaloRunV1alpha1TrackerApiUpvoteRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .upvote(requestParameters.voteRequest, options) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiHaloRunV1alpha1TrackerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiHaloRunV1alpha1TrackerApiFp(configuration) + return { + /** + * Count an extension resource visits. + * @param {ApiHaloRunV1alpha1TrackerApiCountRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + count(requestParameters: ApiHaloRunV1alpha1TrackerApiCountRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.count(requestParameters.counterRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Downvote an extension resource. + * @param {ApiHaloRunV1alpha1TrackerApiDownvoteRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + downvote(requestParameters: ApiHaloRunV1alpha1TrackerApiDownvoteRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.downvote(requestParameters.voteRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Upvote an extension resource. + * @param {ApiHaloRunV1alpha1TrackerApiUpvoteRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + upvote(requestParameters: ApiHaloRunV1alpha1TrackerApiUpvoteRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.upvote(requestParameters.voteRequest, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -367,12 +252,12 @@ export const ApiHaloRunV1alpha1TrackerApiFactory = function ( * @interface ApiHaloRunV1alpha1TrackerApiCountRequest */ export interface ApiHaloRunV1alpha1TrackerApiCountRequest { - /** - * - * @type {CounterRequest} - * @memberof ApiHaloRunV1alpha1TrackerApiCount - */ - readonly counterRequest: CounterRequest; + /** + * + * @type {CounterRequest} + * @memberof ApiHaloRunV1alpha1TrackerApiCount + */ + readonly counterRequest: CounterRequest } /** @@ -381,12 +266,12 @@ export interface ApiHaloRunV1alpha1TrackerApiCountRequest { * @interface ApiHaloRunV1alpha1TrackerApiDownvoteRequest */ export interface ApiHaloRunV1alpha1TrackerApiDownvoteRequest { - /** - * - * @type {VoteRequest} - * @memberof ApiHaloRunV1alpha1TrackerApiDownvote - */ - readonly voteRequest: VoteRequest; + /** + * + * @type {VoteRequest} + * @memberof ApiHaloRunV1alpha1TrackerApiDownvote + */ + readonly voteRequest: VoteRequest } /** @@ -395,12 +280,12 @@ export interface ApiHaloRunV1alpha1TrackerApiDownvoteRequest { * @interface ApiHaloRunV1alpha1TrackerApiUpvoteRequest */ export interface ApiHaloRunV1alpha1TrackerApiUpvoteRequest { - /** - * - * @type {VoteRequest} - * @memberof ApiHaloRunV1alpha1TrackerApiUpvote - */ - readonly voteRequest: VoteRequest; + /** + * + * @type {VoteRequest} + * @memberof ApiHaloRunV1alpha1TrackerApiUpvote + */ + readonly voteRequest: VoteRequest } /** @@ -410,51 +295,37 @@ export interface ApiHaloRunV1alpha1TrackerApiUpvoteRequest { * @extends {BaseAPI} */ export class ApiHaloRunV1alpha1TrackerApi extends BaseAPI { - /** - * Count an extension resource visits. - * @param {ApiHaloRunV1alpha1TrackerApiCountRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiHaloRunV1alpha1TrackerApi - */ - public count( - requestParameters: ApiHaloRunV1alpha1TrackerApiCountRequest, - options?: AxiosRequestConfig - ) { - return ApiHaloRunV1alpha1TrackerApiFp(this.configuration) - .count(requestParameters.counterRequest, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Count an extension resource visits. + * @param {ApiHaloRunV1alpha1TrackerApiCountRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiHaloRunV1alpha1TrackerApi + */ + public count(requestParameters: ApiHaloRunV1alpha1TrackerApiCountRequest, options?: RawAxiosRequestConfig) { + return ApiHaloRunV1alpha1TrackerApiFp(this.configuration).count(requestParameters.counterRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Downvote an extension resource. - * @param {ApiHaloRunV1alpha1TrackerApiDownvoteRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiHaloRunV1alpha1TrackerApi - */ - public downvote( - requestParameters: ApiHaloRunV1alpha1TrackerApiDownvoteRequest, - options?: AxiosRequestConfig - ) { - return ApiHaloRunV1alpha1TrackerApiFp(this.configuration) - .downvote(requestParameters.voteRequest, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Downvote an extension resource. + * @param {ApiHaloRunV1alpha1TrackerApiDownvoteRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiHaloRunV1alpha1TrackerApi + */ + public downvote(requestParameters: ApiHaloRunV1alpha1TrackerApiDownvoteRequest, options?: RawAxiosRequestConfig) { + return ApiHaloRunV1alpha1TrackerApiFp(this.configuration).downvote(requestParameters.voteRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Upvote an extension resource. - * @param {ApiHaloRunV1alpha1TrackerApiUpvoteRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiHaloRunV1alpha1TrackerApi - */ - public upvote( - requestParameters: ApiHaloRunV1alpha1TrackerApiUpvoteRequest, - options?: AxiosRequestConfig - ) { - return ApiHaloRunV1alpha1TrackerApiFp(this.configuration) - .upvote(requestParameters.voteRequest, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Upvote an extension resource. + * @param {ApiHaloRunV1alpha1TrackerApiUpvoteRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiHaloRunV1alpha1TrackerApi + */ + public upvote(requestParameters: ApiHaloRunV1alpha1TrackerApiUpvoteRequest, options?: RawAxiosRequestConfig) { + return ApiHaloRunV1alpha1TrackerApiFp(this.configuration).upvote(requestParameters.voteRequest, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-halo-run-v1alpha1-user-api.ts b/ui/packages/api-client/src/api/api-halo-run-v1alpha1-user-api.ts index a23efe47f..b4332b30e 100644 --- a/ui/packages/api-client/src/api/api-halo-run-v1alpha1-user-api.ts +++ b/ui/packages/api-client/src/api/api-halo-run-v1alpha1-user-api.ts @@ -5,496 +5,320 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { PasswordResetEmailRequest } from "../models"; +import { PasswordResetEmailRequest } from '../models'; // @ts-ignore -import { RegisterVerifyEmailRequest } from "../models"; +import { RegisterVerifyEmailRequest } from '../models'; // @ts-ignore -import { ResetPasswordRequest } from "../models"; +import { ResetPasswordRequest } from '../models'; // @ts-ignore -import { SignUpRequest } from "../models"; +import { SignUpRequest } from '../models'; // @ts-ignore -import { User } from "../models"; +import { User } from '../models'; /** * ApiHaloRunV1alpha1UserApi - axios parameter creator * @export */ -export const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Reset password by token - * @param {string} name The name of the user - * @param {ResetPasswordRequest} resetPasswordRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - resetPasswordByToken: async ( - name: string, - resetPasswordRequest: ResetPasswordRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("resetPasswordByToken", "name", name); - // verify required parameter 'resetPasswordRequest' is not null or undefined - assertParamExists( - "resetPasswordByToken", - "resetPasswordRequest", - resetPasswordRequest - ); - const localVarPath = - `/apis/api.halo.run/v1alpha1/users/{name}/reset-password`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Reset password by token + * @param {string} name The name of the user + * @param {ResetPasswordRequest} resetPasswordRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetPasswordByToken: async (name: string, resetPasswordRequest: ResetPasswordRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('resetPasswordByToken', 'name', name) + // verify required parameter 'resetPasswordRequest' is not null or undefined + assertParamExists('resetPasswordByToken', 'resetPasswordRequest', resetPasswordRequest) + const localVarPath = `/apis/api.halo.run/v1alpha1/users/{name}/reset-password` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - resetPasswordRequest, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Send password reset email when forgot password - * @param {PasswordResetEmailRequest} passwordResetEmailRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - sendPasswordResetEmail: async ( - passwordResetEmailRequest: PasswordResetEmailRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'passwordResetEmailRequest' is not null or undefined - assertParamExists( - "sendPasswordResetEmail", - "passwordResetEmailRequest", - passwordResetEmailRequest - ); - const localVarPath = `/apis/api.halo.run/v1alpha1/users/-/send-password-reset-email`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(resetPasswordRequest, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Send password reset email when forgot password + * @param {PasswordResetEmailRequest} passwordResetEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + sendPasswordResetEmail: async (passwordResetEmailRequest: PasswordResetEmailRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'passwordResetEmailRequest' is not null or undefined + assertParamExists('sendPasswordResetEmail', 'passwordResetEmailRequest', passwordResetEmailRequest) + const localVarPath = `/apis/api.halo.run/v1alpha1/users/-/send-password-reset-email`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - passwordResetEmailRequest, - localVarRequestOptions, - configuration - ); - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Send registration verification email, which can be called when mustVerifyEmailOnRegistration in user settings is true - * @param {RegisterVerifyEmailRequest} registerVerifyEmailRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - sendRegisterVerifyEmail: async ( - registerVerifyEmailRequest: RegisterVerifyEmailRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'registerVerifyEmailRequest' is not null or undefined - assertParamExists( - "sendRegisterVerifyEmail", - "registerVerifyEmailRequest", - registerVerifyEmailRequest - ); - const localVarPath = `/apis/api.halo.run/v1alpha1/users/-/send-register-verify-email`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + + localVarHeaderParameter['Content-Type'] = 'application/json'; - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(passwordResetEmailRequest, localVarRequestOptions, configuration) - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Send registration verification email, which can be called when mustVerifyEmailOnRegistration in user settings is true + * @param {RegisterVerifyEmailRequest} registerVerifyEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + sendRegisterVerifyEmail: async (registerVerifyEmailRequest: RegisterVerifyEmailRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'registerVerifyEmailRequest' is not null or undefined + assertParamExists('sendRegisterVerifyEmail', 'registerVerifyEmailRequest', registerVerifyEmailRequest) + const localVarPath = `/apis/api.halo.run/v1alpha1/users/-/send-register-verify-email`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - localVarHeaderParameter["Content-Type"] = "application/json"; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - registerVerifyEmailRequest, - localVarRequestOptions, - configuration - ); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Sign up a new user - * @param {SignUpRequest} signUpRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - signUp: async ( - signUpRequest: SignUpRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'signUpRequest' is not null or undefined - assertParamExists("signUp", "signUpRequest", signUpRequest); - const localVarPath = `/apis/api.halo.run/v1alpha1/users/-/signup`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + localVarHeaderParameter['Content-Type'] = 'application/json'; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(registerVerifyEmailRequest, localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Sign up a new user + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + signUp: async (signUpRequest: SignUpRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'signUpRequest' is not null or undefined + assertParamExists('signUp', 'signUpRequest', signUpRequest) + const localVarPath = `/apis/api.halo.run/v1alpha1/users/-/signup`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - localVarHeaderParameter["Content-Type"] = "application/json"; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - signUpRequest, - localVarRequestOptions, - configuration - ); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(signUpRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ApiHaloRunV1alpha1UserApi - functional programming interface * @export */ -export const ApiHaloRunV1alpha1UserApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiHaloRunV1alpha1UserApiAxiosParamCreator(configuration); - return { - /** - * Reset password by token - * @param {string} name The name of the user - * @param {ResetPasswordRequest} resetPasswordRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async resetPasswordByToken( - name: string, - resetPasswordRequest: ResetPasswordRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.resetPasswordByToken( - name, - resetPasswordRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Send password reset email when forgot password - * @param {PasswordResetEmailRequest} passwordResetEmailRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async sendPasswordResetEmail( - passwordResetEmailRequest: PasswordResetEmailRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.sendPasswordResetEmail( - passwordResetEmailRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Send registration verification email, which can be called when mustVerifyEmailOnRegistration in user settings is true - * @param {RegisterVerifyEmailRequest} registerVerifyEmailRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async sendRegisterVerifyEmail( - registerVerifyEmailRequest: RegisterVerifyEmailRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.sendRegisterVerifyEmail( - registerVerifyEmailRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Sign up a new user - * @param {SignUpRequest} signUpRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async signUp( - signUpRequest: SignUpRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.signUp( - signUpRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiHaloRunV1alpha1UserApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiHaloRunV1alpha1UserApiAxiosParamCreator(configuration) + return { + /** + * Reset password by token + * @param {string} name The name of the user + * @param {ResetPasswordRequest} resetPasswordRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async resetPasswordByToken(name: string, resetPasswordRequest: ResetPasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.resetPasswordByToken(name, resetPasswordRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiHaloRunV1alpha1UserApi.resetPasswordByToken']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Send password reset email when forgot password + * @param {PasswordResetEmailRequest} passwordResetEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async sendPasswordResetEmail(passwordResetEmailRequest: PasswordResetEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.sendPasswordResetEmail(passwordResetEmailRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiHaloRunV1alpha1UserApi.sendPasswordResetEmail']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Send registration verification email, which can be called when mustVerifyEmailOnRegistration in user settings is true + * @param {RegisterVerifyEmailRequest} registerVerifyEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async sendRegisterVerifyEmail(registerVerifyEmailRequest: RegisterVerifyEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.sendRegisterVerifyEmail(registerVerifyEmailRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiHaloRunV1alpha1UserApi.sendRegisterVerifyEmail']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Sign up a new user + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async signUp(signUpRequest: SignUpRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.signUp(signUpRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiHaloRunV1alpha1UserApi.signUp']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiHaloRunV1alpha1UserApi - factory interface * @export */ -export const ApiHaloRunV1alpha1UserApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiHaloRunV1alpha1UserApiFp(configuration); - return { - /** - * Reset password by token - * @param {ApiHaloRunV1alpha1UserApiResetPasswordByTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - resetPasswordByToken( - requestParameters: ApiHaloRunV1alpha1UserApiResetPasswordByTokenRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .resetPasswordByToken( - requestParameters.name, - requestParameters.resetPasswordRequest, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Send password reset email when forgot password - * @param {ApiHaloRunV1alpha1UserApiSendPasswordResetEmailRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - sendPasswordResetEmail( - requestParameters: ApiHaloRunV1alpha1UserApiSendPasswordResetEmailRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .sendPasswordResetEmail( - requestParameters.passwordResetEmailRequest, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Send registration verification email, which can be called when mustVerifyEmailOnRegistration in user settings is true - * @param {ApiHaloRunV1alpha1UserApiSendRegisterVerifyEmailRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - sendRegisterVerifyEmail( - requestParameters: ApiHaloRunV1alpha1UserApiSendRegisterVerifyEmailRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .sendRegisterVerifyEmail( - requestParameters.registerVerifyEmailRequest, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Sign up a new user - * @param {ApiHaloRunV1alpha1UserApiSignUpRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - signUp( - requestParameters: ApiHaloRunV1alpha1UserApiSignUpRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .signUp(requestParameters.signUpRequest, options) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiHaloRunV1alpha1UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiHaloRunV1alpha1UserApiFp(configuration) + return { + /** + * Reset password by token + * @param {ApiHaloRunV1alpha1UserApiResetPasswordByTokenRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetPasswordByToken(requestParameters: ApiHaloRunV1alpha1UserApiResetPasswordByTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.resetPasswordByToken(requestParameters.name, requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Send password reset email when forgot password + * @param {ApiHaloRunV1alpha1UserApiSendPasswordResetEmailRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + sendPasswordResetEmail(requestParameters: ApiHaloRunV1alpha1UserApiSendPasswordResetEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.sendPasswordResetEmail(requestParameters.passwordResetEmailRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Send registration verification email, which can be called when mustVerifyEmailOnRegistration in user settings is true + * @param {ApiHaloRunV1alpha1UserApiSendRegisterVerifyEmailRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + sendRegisterVerifyEmail(requestParameters: ApiHaloRunV1alpha1UserApiSendRegisterVerifyEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.sendRegisterVerifyEmail(requestParameters.registerVerifyEmailRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Sign up a new user + * @param {ApiHaloRunV1alpha1UserApiSignUpRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + signUp(requestParameters: ApiHaloRunV1alpha1UserApiSignUpRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.signUp(requestParameters.signUpRequest, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -503,19 +327,19 @@ export const ApiHaloRunV1alpha1UserApiFactory = function ( * @interface ApiHaloRunV1alpha1UserApiResetPasswordByTokenRequest */ export interface ApiHaloRunV1alpha1UserApiResetPasswordByTokenRequest { - /** - * The name of the user - * @type {string} - * @memberof ApiHaloRunV1alpha1UserApiResetPasswordByToken - */ - readonly name: string; + /** + * The name of the user + * @type {string} + * @memberof ApiHaloRunV1alpha1UserApiResetPasswordByToken + */ + readonly name: string - /** - * - * @type {ResetPasswordRequest} - * @memberof ApiHaloRunV1alpha1UserApiResetPasswordByToken - */ - readonly resetPasswordRequest: ResetPasswordRequest; + /** + * + * @type {ResetPasswordRequest} + * @memberof ApiHaloRunV1alpha1UserApiResetPasswordByToken + */ + readonly resetPasswordRequest: ResetPasswordRequest } /** @@ -524,12 +348,12 @@ export interface ApiHaloRunV1alpha1UserApiResetPasswordByTokenRequest { * @interface ApiHaloRunV1alpha1UserApiSendPasswordResetEmailRequest */ export interface ApiHaloRunV1alpha1UserApiSendPasswordResetEmailRequest { - /** - * - * @type {PasswordResetEmailRequest} - * @memberof ApiHaloRunV1alpha1UserApiSendPasswordResetEmail - */ - readonly passwordResetEmailRequest: PasswordResetEmailRequest; + /** + * + * @type {PasswordResetEmailRequest} + * @memberof ApiHaloRunV1alpha1UserApiSendPasswordResetEmail + */ + readonly passwordResetEmailRequest: PasswordResetEmailRequest } /** @@ -538,12 +362,12 @@ export interface ApiHaloRunV1alpha1UserApiSendPasswordResetEmailRequest { * @interface ApiHaloRunV1alpha1UserApiSendRegisterVerifyEmailRequest */ export interface ApiHaloRunV1alpha1UserApiSendRegisterVerifyEmailRequest { - /** - * - * @type {RegisterVerifyEmailRequest} - * @memberof ApiHaloRunV1alpha1UserApiSendRegisterVerifyEmail - */ - readonly registerVerifyEmailRequest: RegisterVerifyEmailRequest; + /** + * + * @type {RegisterVerifyEmailRequest} + * @memberof ApiHaloRunV1alpha1UserApiSendRegisterVerifyEmail + */ + readonly registerVerifyEmailRequest: RegisterVerifyEmailRequest } /** @@ -552,12 +376,12 @@ export interface ApiHaloRunV1alpha1UserApiSendRegisterVerifyEmailRequest { * @interface ApiHaloRunV1alpha1UserApiSignUpRequest */ export interface ApiHaloRunV1alpha1UserApiSignUpRequest { - /** - * - * @type {SignUpRequest} - * @memberof ApiHaloRunV1alpha1UserApiSignUp - */ - readonly signUpRequest: SignUpRequest; + /** + * + * @type {SignUpRequest} + * @memberof ApiHaloRunV1alpha1UserApiSignUp + */ + readonly signUpRequest: SignUpRequest } /** @@ -567,77 +391,48 @@ export interface ApiHaloRunV1alpha1UserApiSignUpRequest { * @extends {BaseAPI} */ export class ApiHaloRunV1alpha1UserApi extends BaseAPI { - /** - * Reset password by token - * @param {ApiHaloRunV1alpha1UserApiResetPasswordByTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiHaloRunV1alpha1UserApi - */ - public resetPasswordByToken( - requestParameters: ApiHaloRunV1alpha1UserApiResetPasswordByTokenRequest, - options?: AxiosRequestConfig - ) { - return ApiHaloRunV1alpha1UserApiFp(this.configuration) - .resetPasswordByToken( - requestParameters.name, - requestParameters.resetPasswordRequest, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Reset password by token + * @param {ApiHaloRunV1alpha1UserApiResetPasswordByTokenRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiHaloRunV1alpha1UserApi + */ + public resetPasswordByToken(requestParameters: ApiHaloRunV1alpha1UserApiResetPasswordByTokenRequest, options?: RawAxiosRequestConfig) { + return ApiHaloRunV1alpha1UserApiFp(this.configuration).resetPasswordByToken(requestParameters.name, requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Send password reset email when forgot password - * @param {ApiHaloRunV1alpha1UserApiSendPasswordResetEmailRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiHaloRunV1alpha1UserApi - */ - public sendPasswordResetEmail( - requestParameters: ApiHaloRunV1alpha1UserApiSendPasswordResetEmailRequest, - options?: AxiosRequestConfig - ) { - return ApiHaloRunV1alpha1UserApiFp(this.configuration) - .sendPasswordResetEmail( - requestParameters.passwordResetEmailRequest, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Send password reset email when forgot password + * @param {ApiHaloRunV1alpha1UserApiSendPasswordResetEmailRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiHaloRunV1alpha1UserApi + */ + public sendPasswordResetEmail(requestParameters: ApiHaloRunV1alpha1UserApiSendPasswordResetEmailRequest, options?: RawAxiosRequestConfig) { + return ApiHaloRunV1alpha1UserApiFp(this.configuration).sendPasswordResetEmail(requestParameters.passwordResetEmailRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Send registration verification email, which can be called when mustVerifyEmailOnRegistration in user settings is true - * @param {ApiHaloRunV1alpha1UserApiSendRegisterVerifyEmailRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiHaloRunV1alpha1UserApi - */ - public sendRegisterVerifyEmail( - requestParameters: ApiHaloRunV1alpha1UserApiSendRegisterVerifyEmailRequest, - options?: AxiosRequestConfig - ) { - return ApiHaloRunV1alpha1UserApiFp(this.configuration) - .sendRegisterVerifyEmail( - requestParameters.registerVerifyEmailRequest, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Send registration verification email, which can be called when mustVerifyEmailOnRegistration in user settings is true + * @param {ApiHaloRunV1alpha1UserApiSendRegisterVerifyEmailRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiHaloRunV1alpha1UserApi + */ + public sendRegisterVerifyEmail(requestParameters: ApiHaloRunV1alpha1UserApiSendRegisterVerifyEmailRequest, options?: RawAxiosRequestConfig) { + return ApiHaloRunV1alpha1UserApiFp(this.configuration).sendRegisterVerifyEmail(requestParameters.registerVerifyEmailRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Sign up a new user - * @param {ApiHaloRunV1alpha1UserApiSignUpRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiHaloRunV1alpha1UserApi - */ - public signUp( - requestParameters: ApiHaloRunV1alpha1UserApiSignUpRequest, - options?: AxiosRequestConfig - ) { - return ApiHaloRunV1alpha1UserApiFp(this.configuration) - .signUp(requestParameters.signUpRequest, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Sign up a new user + * @param {ApiHaloRunV1alpha1UserApiSignUpRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiHaloRunV1alpha1UserApi + */ + public signUp(requestParameters: ApiHaloRunV1alpha1UserApiSignUpRequest, options?: RawAxiosRequestConfig) { + return ApiHaloRunV1alpha1UserApiFp(this.configuration).signUp(requestParameters.signUpRequest, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-notification-halo-run-v1alpha1-notification-api.ts b/ui/packages/api-client/src/api/api-notification-halo-run-v1alpha1-notification-api.ts index 1e481b6cc..4ac868fc1 100644 --- a/ui/packages/api-client/src/api/api-notification-halo-run-v1alpha1-notification-api.ts +++ b/ui/packages/api-client/src/api/api-notification-halo-run-v1alpha1-notification-api.ts @@ -5,776 +5,489 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { MarkSpecifiedRequest } from "../models"; +import { MarkSpecifiedRequest } from '../models'; // @ts-ignore -import { Notification } from "../models"; +import { Notification } from '../models'; // @ts-ignore -import { NotificationList } from "../models"; +import { NotificationList } from '../models'; // @ts-ignore -import { ReasonTypeNotifierCollectionRequest } from "../models"; +import { ReasonTypeNotifierCollectionRequest } from '../models'; // @ts-ignore -import { ReasonTypeNotifierMatrix } from "../models"; +import { ReasonTypeNotifierMatrix } from '../models'; /** * ApiNotificationHaloRunV1alpha1NotificationApi - axios parameter creator * @export */ -export const ApiNotificationHaloRunV1alpha1NotificationApiAxiosParamCreator = - function (configuration?: Configuration) { +export const ApiNotificationHaloRunV1alpha1NotificationApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Delete the specified notification. - * @param {string} username Username - * @param {string} name Notification name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteSpecifiedNotification: async ( - username: string, - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'username' is not null or undefined - assertParamExists("deleteSpecifiedNotification", "username", username); - // verify required parameter 'name' is not null or undefined - assertParamExists("deleteSpecifiedNotification", "name", name); - const localVarPath = - `/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/{name}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))) - .replace(`{${"name"}}`, encodeURIComponent(String(name))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * Delete the specified notification. + * @param {string} username Username + * @param {string} name Notification name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteSpecifiedNotification: async (username: string, name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'username' is not null or undefined + assertParamExists('deleteSpecifiedNotification', 'username', username) + // verify required parameter 'name' is not null or undefined + assertParamExists('deleteSpecifiedNotification', 'name', name) + const localVarPath = `/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/{name}` + .replace(`{${"username"}}`, encodeURIComponent(String(username))) + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List notification preferences for the authenticated user. - * @param {string} username Username - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listUserNotificationPreferences: async ( - username: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'username' is not null or undefined - assertParamExists( - "listUserNotificationPreferences", - "username", - username - ); - const localVarPath = - `/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notification-preferences`.replace( - `{${"username"}}`, - encodeURIComponent(String(username)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List notification preferences for the authenticated user. + * @param {string} username Username + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listUserNotificationPreferences: async (username: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'username' is not null or undefined + assertParamExists('listUserNotificationPreferences', 'username', username) + const localVarPath = `/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notification-preferences` + .replace(`{${"username"}}`, encodeURIComponent(String(username))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List notifications for the authenticated user. - * @param {string} username Username - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {string} [keyword] - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: metadata.creationTimestamp - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listUserNotifications: async ( - username: string, - fieldSelector?: Array, - keyword?: string, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'username' is not null or undefined - assertParamExists("listUserNotifications", "username", username); - const localVarPath = - `/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications`.replace( - `{${"username"}}`, - encodeURIComponent(String(username)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List notifications for the authenticated user. + * @param {string} username Username + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {string} [keyword] Keyword + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listUserNotifications: async (username: string, page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, keyword?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'username' is not null or undefined + assertParamExists('listUserNotifications', 'username', username) + const localVarPath = `/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications` + .replace(`{${"username"}}`, encodeURIComponent(String(username))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (keyword !== undefined) { - localVarQueryParameter["keyword"] = keyword; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Mark the specified notification as read. - * @param {string} username Username - * @param {string} name Notification name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - markNotificationAsRead: async ( - username: string, - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'username' is not null or undefined - assertParamExists("markNotificationAsRead", "username", username); - // verify required parameter 'name' is not null or undefined - assertParamExists("markNotificationAsRead", "name", name); - const localVarPath = - `/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/{name}/mark-as-read` - .replace(`{${"username"}}`, encodeURIComponent(String(username))) - .replace(`{${"name"}}`, encodeURIComponent(String(name))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (keyword !== undefined) { + localVarQueryParameter['keyword'] = keyword; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Mark the specified notification as read. + * @param {string} username Username + * @param {string} name Notification name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + markNotificationAsRead: async (username: string, name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'username' is not null or undefined + assertParamExists('markNotificationAsRead', 'username', username) + // verify required parameter 'name' is not null or undefined + assertParamExists('markNotificationAsRead', 'name', name) + const localVarPath = `/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/{name}/mark-as-read` + .replace(`{${"username"}}`, encodeURIComponent(String(username))) + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Mark the specified notifications as read. - * @param {string} username Username - * @param {MarkSpecifiedRequest} markSpecifiedRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - markNotificationsAsRead: async ( - username: string, - markSpecifiedRequest: MarkSpecifiedRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'username' is not null or undefined - assertParamExists("markNotificationsAsRead", "username", username); - // verify required parameter 'markSpecifiedRequest' is not null or undefined - assertParamExists( - "markNotificationsAsRead", - "markSpecifiedRequest", - markSpecifiedRequest - ); - const localVarPath = - `/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/-/mark-specified-as-read`.replace( - `{${"username"}}`, - encodeURIComponent(String(username)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Mark the specified notifications as read. + * @param {string} username Username + * @param {MarkSpecifiedRequest} markSpecifiedRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + markNotificationsAsRead: async (username: string, markSpecifiedRequest: MarkSpecifiedRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'username' is not null or undefined + assertParamExists('markNotificationsAsRead', 'username', username) + // verify required parameter 'markSpecifiedRequest' is not null or undefined + assertParamExists('markNotificationsAsRead', 'markSpecifiedRequest', markSpecifiedRequest) + const localVarPath = `/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/-/mark-specified-as-read` + .replace(`{${"username"}}`, encodeURIComponent(String(username))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - markSpecifiedRequest, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Save notification preferences for the authenticated user. - * @param {string} username Username - * @param {ReasonTypeNotifierCollectionRequest} [reasonTypeNotifierCollectionRequest] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - saveUserNotificationPreferences: async ( - username: string, - reasonTypeNotifierCollectionRequest?: ReasonTypeNotifierCollectionRequest, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'username' is not null or undefined - assertParamExists( - "saveUserNotificationPreferences", - "username", - username - ); - const localVarPath = - `/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notification-preferences`.replace( - `{${"username"}}`, - encodeURIComponent(String(username)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - localVarHeaderParameter["Content-Type"] = "application/json"; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(markSpecifiedRequest, localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - reasonTypeNotifierCollectionRequest, - localVarRequestOptions, - configuration - ); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Save notification preferences for the authenticated user. + * @param {string} username Username + * @param {ReasonTypeNotifierCollectionRequest} [reasonTypeNotifierCollectionRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + saveUserNotificationPreferences: async (username: string, reasonTypeNotifierCollectionRequest?: ReasonTypeNotifierCollectionRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'username' is not null or undefined + assertParamExists('saveUserNotificationPreferences', 'username', username) + const localVarPath = `/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notification-preferences` + .replace(`{${"username"}}`, encodeURIComponent(String(username))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(reasonTypeNotifierCollectionRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * ApiNotificationHaloRunV1alpha1NotificationApi - functional programming interface * @export */ -export const ApiNotificationHaloRunV1alpha1NotificationApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiNotificationHaloRunV1alpha1NotificationApiAxiosParamCreator( - configuration - ); - return { - /** - * Delete the specified notification. - * @param {string} username Username - * @param {string} name Notification name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deleteSpecifiedNotification( - username: string, - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deleteSpecifiedNotification( - username, - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List notification preferences for the authenticated user. - * @param {string} username Username - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listUserNotificationPreferences( - username: string, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listUserNotificationPreferences( - username, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List notifications for the authenticated user. - * @param {string} username Username - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {string} [keyword] - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: metadata.creationTimestamp - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listUserNotifications( - username: string, - fieldSelector?: Array, - keyword?: string, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listUserNotifications( - username, - fieldSelector, - keyword, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Mark the specified notification as read. - * @param {string} username Username - * @param {string} name Notification name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async markNotificationAsRead( - username: string, - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.markNotificationAsRead( - username, - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Mark the specified notifications as read. - * @param {string} username Username - * @param {MarkSpecifiedRequest} markSpecifiedRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async markNotificationsAsRead( - username: string, - markSpecifiedRequest: MarkSpecifiedRequest, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise> - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.markNotificationsAsRead( - username, - markSpecifiedRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Save notification preferences for the authenticated user. - * @param {string} username Username - * @param {ReasonTypeNotifierCollectionRequest} [reasonTypeNotifierCollectionRequest] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async saveUserNotificationPreferences( - username: string, - reasonTypeNotifierCollectionRequest?: ReasonTypeNotifierCollectionRequest, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.saveUserNotificationPreferences( - username, - reasonTypeNotifierCollectionRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiNotificationHaloRunV1alpha1NotificationApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiNotificationHaloRunV1alpha1NotificationApiAxiosParamCreator(configuration) + return { + /** + * Delete the specified notification. + * @param {string} username Username + * @param {string} name Notification name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteSpecifiedNotification(username: string, name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSpecifiedNotification(username, name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiNotificationHaloRunV1alpha1NotificationApi.deleteSpecifiedNotification']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List notification preferences for the authenticated user. + * @param {string} username Username + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listUserNotificationPreferences(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listUserNotificationPreferences(username, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiNotificationHaloRunV1alpha1NotificationApi.listUserNotificationPreferences']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List notifications for the authenticated user. + * @param {string} username Username + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {string} [keyword] Keyword + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listUserNotifications(username: string, page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, keyword?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listUserNotifications(username, page, size, labelSelector, fieldSelector, sort, keyword, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiNotificationHaloRunV1alpha1NotificationApi.listUserNotifications']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Mark the specified notification as read. + * @param {string} username Username + * @param {string} name Notification name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async markNotificationAsRead(username: string, name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.markNotificationAsRead(username, name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiNotificationHaloRunV1alpha1NotificationApi.markNotificationAsRead']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Mark the specified notifications as read. + * @param {string} username Username + * @param {MarkSpecifiedRequest} markSpecifiedRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async markNotificationsAsRead(username: string, markSpecifiedRequest: MarkSpecifiedRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.markNotificationsAsRead(username, markSpecifiedRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiNotificationHaloRunV1alpha1NotificationApi.markNotificationsAsRead']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Save notification preferences for the authenticated user. + * @param {string} username Username + * @param {ReasonTypeNotifierCollectionRequest} [reasonTypeNotifierCollectionRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async saveUserNotificationPreferences(username: string, reasonTypeNotifierCollectionRequest?: ReasonTypeNotifierCollectionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.saveUserNotificationPreferences(username, reasonTypeNotifierCollectionRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiNotificationHaloRunV1alpha1NotificationApi.saveUserNotificationPreferences']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiNotificationHaloRunV1alpha1NotificationApi - factory interface * @export */ -export const ApiNotificationHaloRunV1alpha1NotificationApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = - ApiNotificationHaloRunV1alpha1NotificationApiFp(configuration); - return { - /** - * Delete the specified notification. - * @param {ApiNotificationHaloRunV1alpha1NotificationApiDeleteSpecifiedNotificationRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteSpecifiedNotification( - requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiDeleteSpecifiedNotificationRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deleteSpecifiedNotification( - requestParameters.username, - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * List notification preferences for the authenticated user. - * @param {ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationPreferencesRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listUserNotificationPreferences( - requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationPreferencesRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listUserNotificationPreferences(requestParameters.username, options) - .then((request) => request(axios, basePath)); - }, - /** - * List notifications for the authenticated user. - * @param {ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listUserNotifications( - requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationsRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listUserNotifications( - requestParameters.username, - requestParameters.fieldSelector, - requestParameters.keyword, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Mark the specified notification as read. - * @param {ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationAsReadRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - markNotificationAsRead( - requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationAsReadRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .markNotificationAsRead( - requestParameters.username, - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Mark the specified notifications as read. - * @param {ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationsAsReadRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - markNotificationsAsRead( - requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationsAsReadRequest, - options?: AxiosRequestConfig - ): AxiosPromise> { - return localVarFp - .markNotificationsAsRead( - requestParameters.username, - requestParameters.markSpecifiedRequest, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Save notification preferences for the authenticated user. - * @param {ApiNotificationHaloRunV1alpha1NotificationApiSaveUserNotificationPreferencesRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - saveUserNotificationPreferences( - requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiSaveUserNotificationPreferencesRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .saveUserNotificationPreferences( - requestParameters.username, - requestParameters.reasonTypeNotifierCollectionRequest, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiNotificationHaloRunV1alpha1NotificationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiNotificationHaloRunV1alpha1NotificationApiFp(configuration) + return { + /** + * Delete the specified notification. + * @param {ApiNotificationHaloRunV1alpha1NotificationApiDeleteSpecifiedNotificationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteSpecifiedNotification(requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiDeleteSpecifiedNotificationRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deleteSpecifiedNotification(requestParameters.username, requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List notification preferences for the authenticated user. + * @param {ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationPreferencesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listUserNotificationPreferences(requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationPreferencesRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listUserNotificationPreferences(requestParameters.username, options).then((request) => request(axios, basePath)); + }, + /** + * List notifications for the authenticated user. + * @param {ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listUserNotifications(requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationsRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listUserNotifications(requestParameters.username, requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, requestParameters.keyword, options).then((request) => request(axios, basePath)); + }, + /** + * Mark the specified notification as read. + * @param {ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationAsReadRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + markNotificationAsRead(requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationAsReadRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.markNotificationAsRead(requestParameters.username, requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Mark the specified notifications as read. + * @param {ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationsAsReadRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + markNotificationsAsRead(requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationsAsReadRequest, options?: RawAxiosRequestConfig): AxiosPromise> { + return localVarFp.markNotificationsAsRead(requestParameters.username, requestParameters.markSpecifiedRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Save notification preferences for the authenticated user. + * @param {ApiNotificationHaloRunV1alpha1NotificationApiSaveUserNotificationPreferencesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + saveUserNotificationPreferences(requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiSaveUserNotificationPreferencesRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.saveUserNotificationPreferences(requestParameters.username, requestParameters.reasonTypeNotifierCollectionRequest, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -783,19 +496,19 @@ export const ApiNotificationHaloRunV1alpha1NotificationApiFactory = function ( * @interface ApiNotificationHaloRunV1alpha1NotificationApiDeleteSpecifiedNotificationRequest */ export interface ApiNotificationHaloRunV1alpha1NotificationApiDeleteSpecifiedNotificationRequest { - /** - * Username - * @type {string} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApiDeleteSpecifiedNotification - */ - readonly username: string; + /** + * Username + * @type {string} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApiDeleteSpecifiedNotification + */ + readonly username: string - /** - * Notification name - * @type {string} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApiDeleteSpecifiedNotification - */ - readonly name: string; + /** + * Notification name + * @type {string} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApiDeleteSpecifiedNotification + */ + readonly name: string } /** @@ -804,12 +517,12 @@ export interface ApiNotificationHaloRunV1alpha1NotificationApiDeleteSpecifiedNot * @interface ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationPreferencesRequest */ export interface ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationPreferencesRequest { - /** - * Username - * @type {string} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationPreferences - */ - readonly username: string; + /** + * Username + * @type {string} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationPreferences + */ + readonly username: string } /** @@ -818,54 +531,54 @@ export interface ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificati * @interface ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationsRequest */ export interface ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationsRequest { - /** - * Username - * @type {string} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApiListUserNotifications - */ - readonly username: string; + /** + * Username + * @type {string} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApiListUserNotifications + */ + readonly username: string - /** - * Field selector for filtering. - * @type {Array} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApiListUserNotifications - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApiListUserNotifications + */ + readonly page?: number - /** - * - * @type {string} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApiListUserNotifications - */ - readonly keyword?: string; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApiListUserNotifications + */ + readonly size?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApiListUserNotifications - */ - readonly labelSelector?: Array; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApiListUserNotifications + */ + readonly labelSelector?: Array - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApiListUserNotifications - */ - readonly page?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApiListUserNotifications + */ + readonly fieldSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApiListUserNotifications - */ - readonly size?: number; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApiListUserNotifications + */ + readonly sort?: Array - /** - * Sort property and direction of the list result. Supported fields: metadata.creationTimestamp - * @type {Array} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApiListUserNotifications - */ - readonly sort?: Array; + /** + * Keyword + * @type {string} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApiListUserNotifications + */ + readonly keyword?: string } /** @@ -874,19 +587,19 @@ export interface ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificati * @interface ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationAsReadRequest */ export interface ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationAsReadRequest { - /** - * Username - * @type {string} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationAsRead - */ - readonly username: string; + /** + * Username + * @type {string} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationAsRead + */ + readonly username: string - /** - * Notification name - * @type {string} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationAsRead - */ - readonly name: string; + /** + * Notification name + * @type {string} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationAsRead + */ + readonly name: string } /** @@ -895,19 +608,19 @@ export interface ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationAs * @interface ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationsAsReadRequest */ export interface ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationsAsReadRequest { - /** - * Username - * @type {string} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationsAsRead - */ - readonly username: string; + /** + * Username + * @type {string} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationsAsRead + */ + readonly username: string - /** - * - * @type {MarkSpecifiedRequest} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationsAsRead - */ - readonly markSpecifiedRequest: MarkSpecifiedRequest; + /** + * + * @type {MarkSpecifiedRequest} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationsAsRead + */ + readonly markSpecifiedRequest: MarkSpecifiedRequest } /** @@ -916,19 +629,19 @@ export interface ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationsA * @interface ApiNotificationHaloRunV1alpha1NotificationApiSaveUserNotificationPreferencesRequest */ export interface ApiNotificationHaloRunV1alpha1NotificationApiSaveUserNotificationPreferencesRequest { - /** - * Username - * @type {string} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApiSaveUserNotificationPreferences - */ - readonly username: string; + /** + * Username + * @type {string} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApiSaveUserNotificationPreferences + */ + readonly username: string - /** - * - * @type {ReasonTypeNotifierCollectionRequest} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApiSaveUserNotificationPreferences - */ - readonly reasonTypeNotifierCollectionRequest?: ReasonTypeNotifierCollectionRequest; + /** + * + * @type {ReasonTypeNotifierCollectionRequest} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApiSaveUserNotificationPreferences + */ + readonly reasonTypeNotifierCollectionRequest?: ReasonTypeNotifierCollectionRequest } /** @@ -938,124 +651,70 @@ export interface ApiNotificationHaloRunV1alpha1NotificationApiSaveUserNotificati * @extends {BaseAPI} */ export class ApiNotificationHaloRunV1alpha1NotificationApi extends BaseAPI { - /** - * Delete the specified notification. - * @param {ApiNotificationHaloRunV1alpha1NotificationApiDeleteSpecifiedNotificationRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApi - */ - public deleteSpecifiedNotification( - requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiDeleteSpecifiedNotificationRequest, - options?: AxiosRequestConfig - ) { - return ApiNotificationHaloRunV1alpha1NotificationApiFp(this.configuration) - .deleteSpecifiedNotification( - requestParameters.username, - requestParameters.name, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete the specified notification. + * @param {ApiNotificationHaloRunV1alpha1NotificationApiDeleteSpecifiedNotificationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApi + */ + public deleteSpecifiedNotification(requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiDeleteSpecifiedNotificationRequest, options?: RawAxiosRequestConfig) { + return ApiNotificationHaloRunV1alpha1NotificationApiFp(this.configuration).deleteSpecifiedNotification(requestParameters.username, requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List notification preferences for the authenticated user. - * @param {ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationPreferencesRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApi - */ - public listUserNotificationPreferences( - requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationPreferencesRequest, - options?: AxiosRequestConfig - ) { - return ApiNotificationHaloRunV1alpha1NotificationApiFp(this.configuration) - .listUserNotificationPreferences(requestParameters.username, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List notification preferences for the authenticated user. + * @param {ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationPreferencesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApi + */ + public listUserNotificationPreferences(requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationPreferencesRequest, options?: RawAxiosRequestConfig) { + return ApiNotificationHaloRunV1alpha1NotificationApiFp(this.configuration).listUserNotificationPreferences(requestParameters.username, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List notifications for the authenticated user. - * @param {ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApi - */ - public listUserNotifications( - requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationsRequest, - options?: AxiosRequestConfig - ) { - return ApiNotificationHaloRunV1alpha1NotificationApiFp(this.configuration) - .listUserNotifications( - requestParameters.username, - requestParameters.fieldSelector, - requestParameters.keyword, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List notifications for the authenticated user. + * @param {ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApi + */ + public listUserNotifications(requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiListUserNotificationsRequest, options?: RawAxiosRequestConfig) { + return ApiNotificationHaloRunV1alpha1NotificationApiFp(this.configuration).listUserNotifications(requestParameters.username, requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, requestParameters.keyword, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Mark the specified notification as read. - * @param {ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationAsReadRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApi - */ - public markNotificationAsRead( - requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationAsReadRequest, - options?: AxiosRequestConfig - ) { - return ApiNotificationHaloRunV1alpha1NotificationApiFp(this.configuration) - .markNotificationAsRead( - requestParameters.username, - requestParameters.name, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Mark the specified notification as read. + * @param {ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationAsReadRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApi + */ + public markNotificationAsRead(requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationAsReadRequest, options?: RawAxiosRequestConfig) { + return ApiNotificationHaloRunV1alpha1NotificationApiFp(this.configuration).markNotificationAsRead(requestParameters.username, requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Mark the specified notifications as read. - * @param {ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationsAsReadRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApi - */ - public markNotificationsAsRead( - requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationsAsReadRequest, - options?: AxiosRequestConfig - ) { - return ApiNotificationHaloRunV1alpha1NotificationApiFp(this.configuration) - .markNotificationsAsRead( - requestParameters.username, - requestParameters.markSpecifiedRequest, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Mark the specified notifications as read. + * @param {ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationsAsReadRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApi + */ + public markNotificationsAsRead(requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiMarkNotificationsAsReadRequest, options?: RawAxiosRequestConfig) { + return ApiNotificationHaloRunV1alpha1NotificationApiFp(this.configuration).markNotificationsAsRead(requestParameters.username, requestParameters.markSpecifiedRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Save notification preferences for the authenticated user. - * @param {ApiNotificationHaloRunV1alpha1NotificationApiSaveUserNotificationPreferencesRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiNotificationHaloRunV1alpha1NotificationApi - */ - public saveUserNotificationPreferences( - requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiSaveUserNotificationPreferencesRequest, - options?: AxiosRequestConfig - ) { - return ApiNotificationHaloRunV1alpha1NotificationApiFp(this.configuration) - .saveUserNotificationPreferences( - requestParameters.username, - requestParameters.reasonTypeNotifierCollectionRequest, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Save notification preferences for the authenticated user. + * @param {ApiNotificationHaloRunV1alpha1NotificationApiSaveUserNotificationPreferencesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiNotificationHaloRunV1alpha1NotificationApi + */ + public saveUserNotificationPreferences(requestParameters: ApiNotificationHaloRunV1alpha1NotificationApiSaveUserNotificationPreferencesRequest, options?: RawAxiosRequestConfig) { + return ApiNotificationHaloRunV1alpha1NotificationApiFp(this.configuration).saveUserNotificationPreferences(requestParameters.username, requestParameters.reasonTypeNotifierCollectionRequest, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-notification-halo-run-v1alpha1-notifier-api.ts b/ui/packages/api-client/src/api/api-notification-halo-run-v1alpha1-notifier-api.ts index d5b63c0d3..3e6f19b1e 100644 --- a/ui/packages/api-client/src/api/api-notification-halo-run-v1alpha1-notifier-api.ts +++ b/ui/packages/api-client/src/api/api-notification-halo-run-v1alpha1-notifier-api.ts @@ -5,268 +5,180 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; /** * ApiNotificationHaloRunV1alpha1NotifierApi - axios parameter creator * @export */ -export const ApiNotificationHaloRunV1alpha1NotifierApiAxiosParamCreator = - function (configuration?: Configuration) { +export const ApiNotificationHaloRunV1alpha1NotifierApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Fetch receiver config of notifier - * @param {string} name Notifier name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchReceiverConfig: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("fetchReceiverConfig", "name", name); - const localVarPath = - `/apis/api.notification.halo.run/v1alpha1/notifiers/{name}/receiver-config`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * Fetch receiver config of notifier + * @param {string} name Notifier name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchReceiverConfig: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('fetchReceiverConfig', 'name', name) + const localVarPath = `/apis/api.notification.halo.run/v1alpha1/notifiers/{name}/receiver-config` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Save receiver config of notifier - * @param {string} name Notifier name - * @param {object} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - saveReceiverConfig: async ( - name: string, - body: object, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("saveReceiverConfig", "name", name); - // verify required parameter 'body' is not null or undefined - assertParamExists("saveReceiverConfig", "body", body); - const localVarPath = - `/apis/api.notification.halo.run/v1alpha1/notifiers/{name}/receiver-config`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Save receiver config of notifier + * @param {string} name Notifier name + * @param {object} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + saveReceiverConfig: async (name: string, body: object, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('saveReceiverConfig', 'name', name) + // verify required parameter 'body' is not null or undefined + assertParamExists('saveReceiverConfig', 'body', body) + const localVarPath = `/apis/api.notification.halo.run/v1alpha1/notifiers/{name}/receiver-config` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - body, - localVarRequestOptions, - configuration - ); - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * ApiNotificationHaloRunV1alpha1NotifierApi - functional programming interface * @export */ -export const ApiNotificationHaloRunV1alpha1NotifierApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiNotificationHaloRunV1alpha1NotifierApiAxiosParamCreator(configuration); - return { - /** - * Fetch receiver config of notifier - * @param {string} name Notifier name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async fetchReceiverConfig( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.fetchReceiverConfig(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Save receiver config of notifier - * @param {string} name Notifier name - * @param {object} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async saveReceiverConfig( - name: string, - body: object, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.saveReceiverConfig(name, body, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiNotificationHaloRunV1alpha1NotifierApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiNotificationHaloRunV1alpha1NotifierApiAxiosParamCreator(configuration) + return { + /** + * Fetch receiver config of notifier + * @param {string} name Notifier name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async fetchReceiverConfig(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.fetchReceiverConfig(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiNotificationHaloRunV1alpha1NotifierApi.fetchReceiverConfig']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Save receiver config of notifier + * @param {string} name Notifier name + * @param {object} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async saveReceiverConfig(name: string, body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.saveReceiverConfig(name, body, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiNotificationHaloRunV1alpha1NotifierApi.saveReceiverConfig']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiNotificationHaloRunV1alpha1NotifierApi - factory interface * @export */ -export const ApiNotificationHaloRunV1alpha1NotifierApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiNotificationHaloRunV1alpha1NotifierApiFp(configuration); - return { - /** - * Fetch receiver config of notifier - * @param {ApiNotificationHaloRunV1alpha1NotifierApiFetchReceiverConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fetchReceiverConfig( - requestParameters: ApiNotificationHaloRunV1alpha1NotifierApiFetchReceiverConfigRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .fetchReceiverConfig(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Save receiver config of notifier - * @param {ApiNotificationHaloRunV1alpha1NotifierApiSaveReceiverConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - saveReceiverConfig( - requestParameters: ApiNotificationHaloRunV1alpha1NotifierApiSaveReceiverConfigRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .saveReceiverConfig( - requestParameters.name, - requestParameters.body, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiNotificationHaloRunV1alpha1NotifierApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiNotificationHaloRunV1alpha1NotifierApiFp(configuration) + return { + /** + * Fetch receiver config of notifier + * @param {ApiNotificationHaloRunV1alpha1NotifierApiFetchReceiverConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchReceiverConfig(requestParameters: ApiNotificationHaloRunV1alpha1NotifierApiFetchReceiverConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.fetchReceiverConfig(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Save receiver config of notifier + * @param {ApiNotificationHaloRunV1alpha1NotifierApiSaveReceiverConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + saveReceiverConfig(requestParameters: ApiNotificationHaloRunV1alpha1NotifierApiSaveReceiverConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.saveReceiverConfig(requestParameters.name, requestParameters.body, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -275,12 +187,12 @@ export const ApiNotificationHaloRunV1alpha1NotifierApiFactory = function ( * @interface ApiNotificationHaloRunV1alpha1NotifierApiFetchReceiverConfigRequest */ export interface ApiNotificationHaloRunV1alpha1NotifierApiFetchReceiverConfigRequest { - /** - * Notifier name - * @type {string} - * @memberof ApiNotificationHaloRunV1alpha1NotifierApiFetchReceiverConfig - */ - readonly name: string; + /** + * Notifier name + * @type {string} + * @memberof ApiNotificationHaloRunV1alpha1NotifierApiFetchReceiverConfig + */ + readonly name: string } /** @@ -289,19 +201,19 @@ export interface ApiNotificationHaloRunV1alpha1NotifierApiFetchReceiverConfigReq * @interface ApiNotificationHaloRunV1alpha1NotifierApiSaveReceiverConfigRequest */ export interface ApiNotificationHaloRunV1alpha1NotifierApiSaveReceiverConfigRequest { - /** - * Notifier name - * @type {string} - * @memberof ApiNotificationHaloRunV1alpha1NotifierApiSaveReceiverConfig - */ - readonly name: string; + /** + * Notifier name + * @type {string} + * @memberof ApiNotificationHaloRunV1alpha1NotifierApiSaveReceiverConfig + */ + readonly name: string - /** - * - * @type {object} - * @memberof ApiNotificationHaloRunV1alpha1NotifierApiSaveReceiverConfig - */ - readonly body: object; + /** + * + * @type {object} + * @memberof ApiNotificationHaloRunV1alpha1NotifierApiSaveReceiverConfig + */ + readonly body: object } /** @@ -311,39 +223,26 @@ export interface ApiNotificationHaloRunV1alpha1NotifierApiSaveReceiverConfigRequ * @extends {BaseAPI} */ export class ApiNotificationHaloRunV1alpha1NotifierApi extends BaseAPI { - /** - * Fetch receiver config of notifier - * @param {ApiNotificationHaloRunV1alpha1NotifierApiFetchReceiverConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiNotificationHaloRunV1alpha1NotifierApi - */ - public fetchReceiverConfig( - requestParameters: ApiNotificationHaloRunV1alpha1NotifierApiFetchReceiverConfigRequest, - options?: AxiosRequestConfig - ) { - return ApiNotificationHaloRunV1alpha1NotifierApiFp(this.configuration) - .fetchReceiverConfig(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Fetch receiver config of notifier + * @param {ApiNotificationHaloRunV1alpha1NotifierApiFetchReceiverConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiNotificationHaloRunV1alpha1NotifierApi + */ + public fetchReceiverConfig(requestParameters: ApiNotificationHaloRunV1alpha1NotifierApiFetchReceiverConfigRequest, options?: RawAxiosRequestConfig) { + return ApiNotificationHaloRunV1alpha1NotifierApiFp(this.configuration).fetchReceiverConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Save receiver config of notifier - * @param {ApiNotificationHaloRunV1alpha1NotifierApiSaveReceiverConfigRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiNotificationHaloRunV1alpha1NotifierApi - */ - public saveReceiverConfig( - requestParameters: ApiNotificationHaloRunV1alpha1NotifierApiSaveReceiverConfigRequest, - options?: AxiosRequestConfig - ) { - return ApiNotificationHaloRunV1alpha1NotifierApiFp(this.configuration) - .saveReceiverConfig( - requestParameters.name, - requestParameters.body, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Save receiver config of notifier + * @param {ApiNotificationHaloRunV1alpha1NotifierApiSaveReceiverConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiNotificationHaloRunV1alpha1NotifierApi + */ + public saveReceiverConfig(requestParameters: ApiNotificationHaloRunV1alpha1NotifierApiSaveReceiverConfigRequest, options?: RawAxiosRequestConfig) { + return ApiNotificationHaloRunV1alpha1NotifierApiFp(this.configuration).saveReceiverConfig(requestParameters.name, requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-notification-halo-run-v1alpha1-subscription-api.ts b/ui/packages/api-client/src/api/api-notification-halo-run-v1alpha1-subscription-api.ts index 8d5c8531f..fc68ec4d6 100644 --- a/ui/packages/api-client/src/api/api-notification-halo-run-v1alpha1-subscription-api.ts +++ b/ui/packages/api-client/src/api/api-notification-halo-run-v1alpha1-subscription-api.ts @@ -5,167 +5,119 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; /** * ApiNotificationHaloRunV1alpha1SubscriptionApi - axios parameter creator * @export */ -export const ApiNotificationHaloRunV1alpha1SubscriptionApiAxiosParamCreator = - function (configuration?: Configuration) { +export const ApiNotificationHaloRunV1alpha1SubscriptionApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Unsubscribe a subscription - * @param {string} token Unsubscribe token - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - unsubscribe: async ( - token: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'token' is not null or undefined - assertParamExists("unsubscribe", "token", token); - const localVarPath = `/apis/api.notification.halo.run/v1alpha1/subscriptions/{name}/unsubscribe`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * Unsubscribe a subscription + * @param {string} name Subscription name + * @param {string} token Unsubscribe token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + unsubscribe: async (name: string, token: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('unsubscribe', 'name', name) + // verify required parameter 'token' is not null or undefined + assertParamExists('unsubscribe', 'token', token) + const localVarPath = `/apis/api.notification.halo.run/v1alpha1/subscriptions/{name}/unsubscribe` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (token !== undefined) { - localVarQueryParameter["token"] = token; - } + if (token !== undefined) { + localVarQueryParameter['token'] = token; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * ApiNotificationHaloRunV1alpha1SubscriptionApi - functional programming interface * @export */ -export const ApiNotificationHaloRunV1alpha1SubscriptionApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiNotificationHaloRunV1alpha1SubscriptionApiAxiosParamCreator( - configuration - ); - return { - /** - * Unsubscribe a subscription - * @param {string} token Unsubscribe token - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async unsubscribe( - token: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.unsubscribe( - token, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiNotificationHaloRunV1alpha1SubscriptionApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiNotificationHaloRunV1alpha1SubscriptionApiAxiosParamCreator(configuration) + return { + /** + * Unsubscribe a subscription + * @param {string} name Subscription name + * @param {string} token Unsubscribe token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async unsubscribe(name: string, token: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.unsubscribe(name, token, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiNotificationHaloRunV1alpha1SubscriptionApi.unsubscribe']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiNotificationHaloRunV1alpha1SubscriptionApi - factory interface * @export */ -export const ApiNotificationHaloRunV1alpha1SubscriptionApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = - ApiNotificationHaloRunV1alpha1SubscriptionApiFp(configuration); - return { - /** - * Unsubscribe a subscription - * @param {ApiNotificationHaloRunV1alpha1SubscriptionApiUnsubscribeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - unsubscribe( - requestParameters: ApiNotificationHaloRunV1alpha1SubscriptionApiUnsubscribeRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .unsubscribe(requestParameters.token, options) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiNotificationHaloRunV1alpha1SubscriptionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiNotificationHaloRunV1alpha1SubscriptionApiFp(configuration) + return { + /** + * Unsubscribe a subscription + * @param {ApiNotificationHaloRunV1alpha1SubscriptionApiUnsubscribeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + unsubscribe(requestParameters: ApiNotificationHaloRunV1alpha1SubscriptionApiUnsubscribeRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.unsubscribe(requestParameters.name, requestParameters.token, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -174,12 +126,19 @@ export const ApiNotificationHaloRunV1alpha1SubscriptionApiFactory = function ( * @interface ApiNotificationHaloRunV1alpha1SubscriptionApiUnsubscribeRequest */ export interface ApiNotificationHaloRunV1alpha1SubscriptionApiUnsubscribeRequest { - /** - * Unsubscribe token - * @type {string} - * @memberof ApiNotificationHaloRunV1alpha1SubscriptionApiUnsubscribe - */ - readonly token: string; + /** + * Subscription name + * @type {string} + * @memberof ApiNotificationHaloRunV1alpha1SubscriptionApiUnsubscribe + */ + readonly name: string + + /** + * Unsubscribe token + * @type {string} + * @memberof ApiNotificationHaloRunV1alpha1SubscriptionApiUnsubscribe + */ + readonly token: string } /** @@ -189,19 +148,15 @@ export interface ApiNotificationHaloRunV1alpha1SubscriptionApiUnsubscribeRequest * @extends {BaseAPI} */ export class ApiNotificationHaloRunV1alpha1SubscriptionApi extends BaseAPI { - /** - * Unsubscribe a subscription - * @param {ApiNotificationHaloRunV1alpha1SubscriptionApiUnsubscribeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiNotificationHaloRunV1alpha1SubscriptionApi - */ - public unsubscribe( - requestParameters: ApiNotificationHaloRunV1alpha1SubscriptionApiUnsubscribeRequest, - options?: AxiosRequestConfig - ) { - return ApiNotificationHaloRunV1alpha1SubscriptionApiFp(this.configuration) - .unsubscribe(requestParameters.token, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Unsubscribe a subscription + * @param {ApiNotificationHaloRunV1alpha1SubscriptionApiUnsubscribeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiNotificationHaloRunV1alpha1SubscriptionApi + */ + public unsubscribe(requestParameters: ApiNotificationHaloRunV1alpha1SubscriptionApiUnsubscribeRequest, options?: RawAxiosRequestConfig) { + return ApiNotificationHaloRunV1alpha1SubscriptionApiFp(this.configuration).unsubscribe(requestParameters.name, requestParameters.token, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-plugin-halo-run-v1alpha1-plugin-api.ts b/ui/packages/api-client/src/api/api-plugin-halo-run-v1alpha1-plugin-api.ts index 2e0cdd9cc..63efbeb15 100644 --- a/ui/packages/api-client/src/api/api-plugin-halo-run-v1alpha1-plugin-api.ts +++ b/ui/packages/api-client/src/api/api-plugin-halo-run-v1alpha1-plugin-api.ts @@ -5,166 +5,111 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; /** * ApiPluginHaloRunV1alpha1PluginApi - axios parameter creator * @export */ -export const ApiPluginHaloRunV1alpha1PluginApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Gets plugin available by name. - * @param {string} name Plugin name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryPluginAvailableByName: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("queryPluginAvailableByName", "name", name); - const localVarPath = - `/apis/api.plugin.halo.run/v1alpha1/plugins/{name}/available`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ApiPluginHaloRunV1alpha1PluginApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Gets plugin available by name. + * @param {string} name Plugin name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryPluginAvailableByName: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('queryPluginAvailableByName', 'name', name) + const localVarPath = `/apis/api.plugin.halo.run/v1alpha1/plugins/{name}/available` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ApiPluginHaloRunV1alpha1PluginApi - functional programming interface * @export */ -export const ApiPluginHaloRunV1alpha1PluginApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiPluginHaloRunV1alpha1PluginApiAxiosParamCreator(configuration); - return { - /** - * Gets plugin available by name. - * @param {string} name Plugin name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async queryPluginAvailableByName( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.queryPluginAvailableByName( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiPluginHaloRunV1alpha1PluginApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiPluginHaloRunV1alpha1PluginApiAxiosParamCreator(configuration) + return { + /** + * Gets plugin available by name. + * @param {string} name Plugin name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryPluginAvailableByName(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.queryPluginAvailableByName(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiPluginHaloRunV1alpha1PluginApi.queryPluginAvailableByName']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiPluginHaloRunV1alpha1PluginApi - factory interface * @export */ -export const ApiPluginHaloRunV1alpha1PluginApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApiPluginHaloRunV1alpha1PluginApiFp(configuration); - return { - /** - * Gets plugin available by name. - * @param {ApiPluginHaloRunV1alpha1PluginApiQueryPluginAvailableByNameRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - queryPluginAvailableByName( - requestParameters: ApiPluginHaloRunV1alpha1PluginApiQueryPluginAvailableByNameRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .queryPluginAvailableByName(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - }; +export const ApiPluginHaloRunV1alpha1PluginApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiPluginHaloRunV1alpha1PluginApiFp(configuration) + return { + /** + * Gets plugin available by name. + * @param {ApiPluginHaloRunV1alpha1PluginApiQueryPluginAvailableByNameRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryPluginAvailableByName(requestParameters: ApiPluginHaloRunV1alpha1PluginApiQueryPluginAvailableByNameRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.queryPluginAvailableByName(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -173,12 +118,12 @@ export const ApiPluginHaloRunV1alpha1PluginApiFactory = function ( * @interface ApiPluginHaloRunV1alpha1PluginApiQueryPluginAvailableByNameRequest */ export interface ApiPluginHaloRunV1alpha1PluginApiQueryPluginAvailableByNameRequest { - /** - * Plugin name - * @type {string} - * @memberof ApiPluginHaloRunV1alpha1PluginApiQueryPluginAvailableByName - */ - readonly name: string; + /** + * Plugin name + * @type {string} + * @memberof ApiPluginHaloRunV1alpha1PluginApiQueryPluginAvailableByName + */ + readonly name: string } /** @@ -188,19 +133,15 @@ export interface ApiPluginHaloRunV1alpha1PluginApiQueryPluginAvailableByNameRequ * @extends {BaseAPI} */ export class ApiPluginHaloRunV1alpha1PluginApi extends BaseAPI { - /** - * Gets plugin available by name. - * @param {ApiPluginHaloRunV1alpha1PluginApiQueryPluginAvailableByNameRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiPluginHaloRunV1alpha1PluginApi - */ - public queryPluginAvailableByName( - requestParameters: ApiPluginHaloRunV1alpha1PluginApiQueryPluginAvailableByNameRequest, - options?: AxiosRequestConfig - ) { - return ApiPluginHaloRunV1alpha1PluginApiFp(this.configuration) - .queryPluginAvailableByName(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Gets plugin available by name. + * @param {ApiPluginHaloRunV1alpha1PluginApiQueryPluginAvailableByNameRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiPluginHaloRunV1alpha1PluginApi + */ + public queryPluginAvailableByName(requestParameters: ApiPluginHaloRunV1alpha1PluginApiQueryPluginAvailableByNameRequest, options?: RawAxiosRequestConfig) { + return ApiPluginHaloRunV1alpha1PluginApiFp(this.configuration).queryPluginAvailableByName(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-security-halo-run-v1alpha1-authentication-two-factor-api.ts b/ui/packages/api-client/src/api/api-security-halo-run-v1alpha1-authentication-two-factor-api.ts index 24cacfd94..8b8f0e3f8 100644 --- a/ui/packages/api-client/src/api/api-security-halo-run-v1alpha1-authentication-two-factor-api.ts +++ b/ui/packages/api-client/src/api/api-security-halo-run-v1alpha1-authentication-two-factor-api.ts @@ -5,630 +5,418 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { PasswordRequest } from "../models"; +import { PasswordRequest } from '../models'; // @ts-ignore -import { TotpAuthLinkResponse } from "../models"; +import { TotpAuthLinkResponse } from '../models'; // @ts-ignore -import { TotpRequest } from "../models"; +import { TotpRequest } from '../models'; // @ts-ignore -import { TwoFactorAuthSettings } from "../models"; +import { TwoFactorAuthSettings } from '../models'; /** * ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi - axios parameter creator * @export */ -export const ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiAxiosParamCreator = - function (configuration?: Configuration) { +export const ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Configure a TOTP - * @param {TotpRequest} [totpRequest] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - configurerTotp: async ( - totpRequest?: TotpRequest, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.security.halo.run/v1alpha1/authentications/two-factor/totp`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * Configure a TOTP + * @param {TotpRequest} [totpRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + configurerTotp: async (totpRequest?: TotpRequest, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.security.halo.run/v1alpha1/authentications/two-factor/totp`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - totpRequest, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {PasswordRequest} [passwordRequest] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteTotp: async ( - passwordRequest?: PasswordRequest, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.security.halo.run/v1alpha1/authentications/two-factor/totp/-`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(totpRequest, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {PasswordRequest} [passwordRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteTotp: async (passwordRequest?: PasswordRequest, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.security.halo.run/v1alpha1/authentications/two-factor/totp/-`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - passwordRequest, - localVarRequestOptions, - configuration - ); - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Disable Two-factor authentication - * @param {PasswordRequest} [passwordRequest] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - disableTwoFactor: async ( - passwordRequest?: PasswordRequest, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.security.halo.run/v1alpha1/authentications/two-factor/settings/disabled`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + + localVarHeaderParameter['Content-Type'] = 'application/json'; - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(passwordRequest, localVarRequestOptions, configuration) - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Disable Two-factor authentication + * @param {PasswordRequest} [passwordRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + disableTwoFactor: async (passwordRequest?: PasswordRequest, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.security.halo.run/v1alpha1/authentications/two-factor/settings/disabled`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - localVarHeaderParameter["Content-Type"] = "application/json"; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - passwordRequest, - localVarRequestOptions, - configuration - ); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Enable Two-factor authentication - * @param {PasswordRequest} [passwordRequest] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - enableTwoFactor: async ( - passwordRequest?: PasswordRequest, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.security.halo.run/v1alpha1/authentications/two-factor/settings/enabled`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + localVarHeaderParameter['Content-Type'] = 'application/json'; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(passwordRequest, localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Enable Two-factor authentication + * @param {PasswordRequest} [passwordRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + enableTwoFactor: async (passwordRequest?: PasswordRequest, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.security.halo.run/v1alpha1/authentications/two-factor/settings/enabled`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - localVarHeaderParameter["Content-Type"] = "application/json"; + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - passwordRequest, - localVarRequestOptions, - configuration - ); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get TOTP auth link, including secret - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getTotpAuthLink: async ( - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.security.halo.run/v1alpha1/authentications/two-factor/totp/auth-link`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(passwordRequest, localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get TOTP auth link, including secret + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTotpAuthLink: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.security.halo.run/v1alpha1/authentications/two-factor/totp/auth-link`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get Two-factor authentication settings. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getTwoFactorAuthenticationSettings: async ( - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.security.halo.run/v1alpha1/authentications/two-factor/settings`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get Two-factor authentication settings. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTwoFactorAuthenticationSettings: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.security.halo.run/v1alpha1/authentications/two-factor/settings`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi - functional programming interface * @export */ -export const ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiAxiosParamCreator( - configuration - ); - return { - /** - * Configure a TOTP - * @param {TotpRequest} [totpRequest] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async configurerTotp( - totpRequest?: TotpRequest, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.configurerTotp( - totpRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * - * @param {PasswordRequest} [passwordRequest] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deleteTotp( - passwordRequest?: PasswordRequest, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTotp( - passwordRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Disable Two-factor authentication - * @param {PasswordRequest} [passwordRequest] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async disableTwoFactor( - passwordRequest?: PasswordRequest, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.disableTwoFactor( - passwordRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Enable Two-factor authentication - * @param {PasswordRequest} [passwordRequest] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async enableTwoFactor( - passwordRequest?: PasswordRequest, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.enableTwoFactor( - passwordRequest, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get TOTP auth link, including secret - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getTotpAuthLink( - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.getTotpAuthLink( - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get Two-factor authentication settings. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getTwoFactorAuthenticationSettings( - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getTwoFactorAuthenticationSettings( - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiAxiosParamCreator(configuration) + return { + /** + * Configure a TOTP + * @param {TotpRequest} [totpRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async configurerTotp(totpRequest?: TotpRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.configurerTotp(totpRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi.configurerTotp']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {PasswordRequest} [passwordRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteTotp(passwordRequest?: PasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTotp(passwordRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi.deleteTotp']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Disable Two-factor authentication + * @param {PasswordRequest} [passwordRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async disableTwoFactor(passwordRequest?: PasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.disableTwoFactor(passwordRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi.disableTwoFactor']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Enable Two-factor authentication + * @param {PasswordRequest} [passwordRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async enableTwoFactor(passwordRequest?: PasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.enableTwoFactor(passwordRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi.enableTwoFactor']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get TOTP auth link, including secret + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getTotpAuthLink(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getTotpAuthLink(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi.getTotpAuthLink']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get Two-factor authentication settings. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getTwoFactorAuthenticationSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getTwoFactorAuthenticationSettings(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi.getTwoFactorAuthenticationSettings']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi - factory interface * @export */ -export const ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiFactory = - function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance - ) { - const localVarFp = - ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiFp(configuration); +export const ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiFp(configuration) return { - /** - * Configure a TOTP - * @param {ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiConfigurerTotpRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - configurerTotp( - requestParameters: ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiConfigurerTotpRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .configurerTotp(requestParameters.totpRequest, options) - .then((request) => request(axios, basePath)); - }, - /** - * - * @param {ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDeleteTotpRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteTotp( - requestParameters: ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDeleteTotpRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deleteTotp(requestParameters.passwordRequest, options) - .then((request) => request(axios, basePath)); - }, - /** - * Disable Two-factor authentication - * @param {ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDisableTwoFactorRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - disableTwoFactor( - requestParameters: ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDisableTwoFactorRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .disableTwoFactor(requestParameters.passwordRequest, options) - .then((request) => request(axios, basePath)); - }, - /** - * Enable Two-factor authentication - * @param {ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiEnableTwoFactorRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - enableTwoFactor( - requestParameters: ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiEnableTwoFactorRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .enableTwoFactor(requestParameters.passwordRequest, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get TOTP auth link, including secret - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getTotpAuthLink( - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getTotpAuthLink(options) - .then((request) => request(axios, basePath)); - }, - /** - * Get Two-factor authentication settings. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getTwoFactorAuthenticationSettings( - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getTwoFactorAuthenticationSettings(options) - .then((request) => request(axios, basePath)); - }, + /** + * Configure a TOTP + * @param {ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiConfigurerTotpRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + configurerTotp(requestParameters: ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiConfigurerTotpRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.configurerTotp(requestParameters.totpRequest, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDeleteTotpRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteTotp(requestParameters: ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDeleteTotpRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deleteTotp(requestParameters.passwordRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Disable Two-factor authentication + * @param {ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDisableTwoFactorRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + disableTwoFactor(requestParameters: ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDisableTwoFactorRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.disableTwoFactor(requestParameters.passwordRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Enable Two-factor authentication + * @param {ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiEnableTwoFactorRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + enableTwoFactor(requestParameters: ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiEnableTwoFactorRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.enableTwoFactor(requestParameters.passwordRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Get TOTP auth link, including secret + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTotpAuthLink(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getTotpAuthLink(options).then((request) => request(axios, basePath)); + }, + /** + * Get Two-factor authentication settings. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTwoFactorAuthenticationSettings(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getTwoFactorAuthenticationSettings(options).then((request) => request(axios, basePath)); + }, }; - }; +}; /** * Request parameters for configurerTotp operation in ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi. @@ -636,12 +424,12 @@ export const ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiFactory = * @interface ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiConfigurerTotpRequest */ export interface ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiConfigurerTotpRequest { - /** - * - * @type {TotpRequest} - * @memberof ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiConfigurerTotp - */ - readonly totpRequest?: TotpRequest; + /** + * + * @type {TotpRequest} + * @memberof ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiConfigurerTotp + */ + readonly totpRequest?: TotpRequest } /** @@ -650,12 +438,12 @@ export interface ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiConfigurerT * @interface ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDeleteTotpRequest */ export interface ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDeleteTotpRequest { - /** - * - * @type {PasswordRequest} - * @memberof ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDeleteTotp - */ - readonly passwordRequest?: PasswordRequest; + /** + * + * @type {PasswordRequest} + * @memberof ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDeleteTotp + */ + readonly passwordRequest?: PasswordRequest } /** @@ -664,12 +452,12 @@ export interface ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDeleteTotpR * @interface ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDisableTwoFactorRequest */ export interface ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDisableTwoFactorRequest { - /** - * - * @type {PasswordRequest} - * @memberof ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDisableTwoFactor - */ - readonly passwordRequest?: PasswordRequest; + /** + * + * @type {PasswordRequest} + * @memberof ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDisableTwoFactor + */ + readonly passwordRequest?: PasswordRequest } /** @@ -678,12 +466,12 @@ export interface ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDisableTwoF * @interface ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiEnableTwoFactorRequest */ export interface ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiEnableTwoFactorRequest { - /** - * - * @type {PasswordRequest} - * @memberof ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiEnableTwoFactor - */ - readonly passwordRequest?: PasswordRequest; + /** + * + * @type {PasswordRequest} + * @memberof ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiEnableTwoFactor + */ + readonly passwordRequest?: PasswordRequest } /** @@ -693,103 +481,68 @@ export interface ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiEnableTwoFa * @extends {BaseAPI} */ export class ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi extends BaseAPI { - /** - * Configure a TOTP - * @param {ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiConfigurerTotpRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi - */ - public configurerTotp( - requestParameters: ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiConfigurerTotpRequest = {}, - options?: AxiosRequestConfig - ) { - return ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiFp( - this.configuration - ) - .configurerTotp(requestParameters.totpRequest, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Configure a TOTP + * @param {ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiConfigurerTotpRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi + */ + public configurerTotp(requestParameters: ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiConfigurerTotpRequest = {}, options?: RawAxiosRequestConfig) { + return ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiFp(this.configuration).configurerTotp(requestParameters.totpRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * - * @param {ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDeleteTotpRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi - */ - public deleteTotp( - requestParameters: ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDeleteTotpRequest = {}, - options?: AxiosRequestConfig - ) { - return ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiFp( - this.configuration - ) - .deleteTotp(requestParameters.passwordRequest, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * + * @param {ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDeleteTotpRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi + */ + public deleteTotp(requestParameters: ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDeleteTotpRequest = {}, options?: RawAxiosRequestConfig) { + return ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiFp(this.configuration).deleteTotp(requestParameters.passwordRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Disable Two-factor authentication - * @param {ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDisableTwoFactorRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi - */ - public disableTwoFactor( - requestParameters: ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDisableTwoFactorRequest = {}, - options?: AxiosRequestConfig - ) { - return ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiFp( - this.configuration - ) - .disableTwoFactor(requestParameters.passwordRequest, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Disable Two-factor authentication + * @param {ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDisableTwoFactorRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi + */ + public disableTwoFactor(requestParameters: ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiDisableTwoFactorRequest = {}, options?: RawAxiosRequestConfig) { + return ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiFp(this.configuration).disableTwoFactor(requestParameters.passwordRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Enable Two-factor authentication - * @param {ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiEnableTwoFactorRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi - */ - public enableTwoFactor( - requestParameters: ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiEnableTwoFactorRequest = {}, - options?: AxiosRequestConfig - ) { - return ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiFp( - this.configuration - ) - .enableTwoFactor(requestParameters.passwordRequest, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Enable Two-factor authentication + * @param {ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiEnableTwoFactorRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi + */ + public enableTwoFactor(requestParameters: ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiEnableTwoFactorRequest = {}, options?: RawAxiosRequestConfig) { + return ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiFp(this.configuration).enableTwoFactor(requestParameters.passwordRequest, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get TOTP auth link, including secret - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi - */ - public getTotpAuthLink(options?: AxiosRequestConfig) { - return ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiFp( - this.configuration - ) - .getTotpAuthLink(options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get TOTP auth link, including secret + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi + */ + public getTotpAuthLink(options?: RawAxiosRequestConfig) { + return ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiFp(this.configuration).getTotpAuthLink(options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get Two-factor authentication settings. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi - */ - public getTwoFactorAuthenticationSettings(options?: AxiosRequestConfig) { - return ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiFp( - this.configuration - ) - .getTwoFactorAuthenticationSettings(options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get Two-factor authentication settings. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApi + */ + public getTwoFactorAuthenticationSettings(options?: RawAxiosRequestConfig) { + return ApiSecurityHaloRunV1alpha1AuthenticationTwoFactorApiFp(this.configuration).getTwoFactorAuthenticationSettings(options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/api-security-halo-run-v1alpha1-personal-access-token-api.ts b/ui/packages/api-client/src/api/api-security-halo-run-v1alpha1-personal-access-token-api.ts index 7af1134b9..f1a37ebd0 100644 --- a/ui/packages/api-client/src/api/api-security-halo-run-v1alpha1-personal-access-token-api.ts +++ b/ui/packages/api-client/src/api/api-security-halo-run-v1alpha1-personal-access-token-api.ts @@ -5,626 +5,420 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { PersonalAccessToken } from "../models"; +import { PersonalAccessToken } from '../models'; /** * ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi - axios parameter creator * @export */ -export const ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiAxiosParamCreator = - function (configuration?: Configuration) { +export const ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Delete a PAT - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletePat: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletePat", "name", name); - const localVarPath = - `/apis/api.security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * Delete a PAT + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletePat: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletePat', 'name', name) + const localVarPath = `/apis/api.security.halo.run/v1alpha1/personalaccesstokens/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Generate a PAT. - * @param {PersonalAccessToken} personalAccessToken - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - generatePat: async ( - personalAccessToken: PersonalAccessToken, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'personalAccessToken' is not null or undefined - assertParamExists( - "generatePat", - "personalAccessToken", - personalAccessToken - ); - const localVarPath = `/apis/api.security.halo.run/v1alpha1/personalaccesstokens`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Generate a PAT. + * @param {PersonalAccessToken} personalAccessToken + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + generatePat: async (personalAccessToken: PersonalAccessToken, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'personalAccessToken' is not null or undefined + assertParamExists('generatePat', 'personalAccessToken', personalAccessToken) + const localVarPath = `/apis/api.security.halo.run/v1alpha1/personalaccesstokens`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - personalAccessToken, - localVarRequestOptions, - configuration - ); - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Obtain a PAT. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - obtainPat: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("obtainPat", "name", name); - const localVarPath = - `/apis/api.security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + + localVarHeaderParameter['Content-Type'] = 'application/json'; - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(personalAccessToken, localVarRequestOptions, configuration) - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Obtain a PAT. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + obtainPat: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('obtainPat', 'name', name) + const localVarPath = `/apis/api.security.halo.run/v1alpha1/personalaccesstokens/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Obtain PAT list. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - obtainPats: async ( - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/api.security.halo.run/v1alpha1/personalaccesstokens`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Obtain PAT list. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + obtainPats: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/api.security.halo.run/v1alpha1/personalaccesstokens`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Restore a PAT. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - restorePat: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("restorePat", "name", name); - const localVarPath = - `/apis/api.security.halo.run/v1alpha1/personalaccesstokens/{name}/actions/restoration`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Restore a PAT. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + restorePat: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('restorePat', 'name', name) + const localVarPath = `/apis/api.security.halo.run/v1alpha1/personalaccesstokens/{name}/actions/restoration` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Revoke a PAT - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - revokePat: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("revokePat", "name", name); - const localVarPath = - `/apis/api.security.halo.run/v1alpha1/personalaccesstokens/{name}/actions/revocation`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Revoke a PAT + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + revokePat: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('revokePat', 'name', name) + const localVarPath = `/apis/api.security.halo.run/v1alpha1/personalaccesstokens/{name}/actions/revocation` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi - functional programming interface * @export */ -export const ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiAxiosParamCreator( - configuration - ); - return { - /** - * Delete a PAT - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletePat( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.deletePat( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Generate a PAT. - * @param {PersonalAccessToken} personalAccessToken - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async generatePat( - personalAccessToken: PersonalAccessToken, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.generatePat( - personalAccessToken, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Obtain a PAT. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async obtainPat( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.obtainPat( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Obtain PAT list. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async obtainPats( - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise> - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.obtainPats( - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Restore a PAT. - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async restorePat( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.restorePat( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Revoke a PAT - * @param {string} name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async revokePat( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.revokePat( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiAxiosParamCreator(configuration) + return { + /** + * Delete a PAT + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletePat(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletePat(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi.deletePat']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Generate a PAT. + * @param {PersonalAccessToken} personalAccessToken + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async generatePat(personalAccessToken: PersonalAccessToken, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.generatePat(personalAccessToken, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi.generatePat']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Obtain a PAT. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async obtainPat(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.obtainPat(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi.obtainPat']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Obtain PAT list. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async obtainPats(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.obtainPats(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi.obtainPats']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Restore a PAT. + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async restorePat(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.restorePat(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi.restorePat']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Revoke a PAT + * @param {string} name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async revokePat(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.revokePat(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi.revokePat']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi - factory interface * @export */ -export const ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiFactory = - function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance - ) { - const localVarFp = - ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiFp(configuration); +export const ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiFp(configuration) return { - /** - * Delete a PAT - * @param {ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiDeletePatRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletePat( - requestParameters: ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiDeletePatRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletePat(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Generate a PAT. - * @param {ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiGeneratePatRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - generatePat( - requestParameters: ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiGeneratePatRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .generatePat(requestParameters.personalAccessToken, options) - .then((request) => request(axios, basePath)); - }, - /** - * Obtain a PAT. - * @param {ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiObtainPatRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - obtainPat( - requestParameters: ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiObtainPatRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .obtainPat(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Obtain PAT list. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - obtainPats( - options?: AxiosRequestConfig - ): AxiosPromise> { - return localVarFp - .obtainPats(options) - .then((request) => request(axios, basePath)); - }, - /** - * Restore a PAT. - * @param {ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRestorePatRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - restorePat( - requestParameters: ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRestorePatRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .restorePat(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Revoke a PAT - * @param {ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRevokePatRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - revokePat( - requestParameters: ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRevokePatRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .revokePat(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, + /** + * Delete a PAT + * @param {ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiDeletePatRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletePat(requestParameters: ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiDeletePatRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletePat(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Generate a PAT. + * @param {ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiGeneratePatRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + generatePat(requestParameters: ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiGeneratePatRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.generatePat(requestParameters.personalAccessToken, options).then((request) => request(axios, basePath)); + }, + /** + * Obtain a PAT. + * @param {ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiObtainPatRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + obtainPat(requestParameters: ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiObtainPatRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.obtainPat(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Obtain PAT list. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + obtainPats(options?: RawAxiosRequestConfig): AxiosPromise> { + return localVarFp.obtainPats(options).then((request) => request(axios, basePath)); + }, + /** + * Restore a PAT. + * @param {ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRestorePatRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + restorePat(requestParameters: ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRestorePatRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.restorePat(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Revoke a PAT + * @param {ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRevokePatRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + revokePat(requestParameters: ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRevokePatRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.revokePat(requestParameters.name, options).then((request) => request(axios, basePath)); + }, }; - }; +}; /** * Request parameters for deletePat operation in ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi. @@ -632,12 +426,12 @@ export const ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiFactory = * @interface ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiDeletePatRequest */ export interface ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiDeletePatRequest { - /** - * - * @type {string} - * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiDeletePat - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiDeletePat + */ + readonly name: string } /** @@ -646,12 +440,12 @@ export interface ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiDeletePatReques * @interface ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiGeneratePatRequest */ export interface ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiGeneratePatRequest { - /** - * - * @type {PersonalAccessToken} - * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiGeneratePat - */ - readonly personalAccessToken: PersonalAccessToken; + /** + * + * @type {PersonalAccessToken} + * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiGeneratePat + */ + readonly personalAccessToken: PersonalAccessToken } /** @@ -660,12 +454,12 @@ export interface ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiGeneratePatRequ * @interface ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiObtainPatRequest */ export interface ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiObtainPatRequest { - /** - * - * @type {string} - * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiObtainPat - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiObtainPat + */ + readonly name: string } /** @@ -674,12 +468,12 @@ export interface ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiObtainPatReques * @interface ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRestorePatRequest */ export interface ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRestorePatRequest { - /** - * - * @type {string} - * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRestorePat - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRestorePat + */ + readonly name: string } /** @@ -688,12 +482,12 @@ export interface ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRestorePatReque * @interface ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRevokePatRequest */ export interface ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRevokePatRequest { - /** - * - * @type {string} - * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRevokePat - */ - readonly name: string; + /** + * + * @type {string} + * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRevokePat + */ + readonly name: string } /** @@ -703,107 +497,69 @@ export interface ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRevokePatReques * @extends {BaseAPI} */ export class ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi extends BaseAPI { - /** - * Delete a PAT - * @param {ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiDeletePatRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi - */ - public deletePat( - requestParameters: ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiDeletePatRequest, - options?: AxiosRequestConfig - ) { - return ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiFp( - this.configuration - ) - .deletePat(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete a PAT + * @param {ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiDeletePatRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi + */ + public deletePat(requestParameters: ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiDeletePatRequest, options?: RawAxiosRequestConfig) { + return ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiFp(this.configuration).deletePat(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Generate a PAT. - * @param {ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiGeneratePatRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi - */ - public generatePat( - requestParameters: ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiGeneratePatRequest, - options?: AxiosRequestConfig - ) { - return ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiFp( - this.configuration - ) - .generatePat(requestParameters.personalAccessToken, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Generate a PAT. + * @param {ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiGeneratePatRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi + */ + public generatePat(requestParameters: ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiGeneratePatRequest, options?: RawAxiosRequestConfig) { + return ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiFp(this.configuration).generatePat(requestParameters.personalAccessToken, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Obtain a PAT. - * @param {ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiObtainPatRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi - */ - public obtainPat( - requestParameters: ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiObtainPatRequest, - options?: AxiosRequestConfig - ) { - return ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiFp( - this.configuration - ) - .obtainPat(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Obtain a PAT. + * @param {ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiObtainPatRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi + */ + public obtainPat(requestParameters: ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiObtainPatRequest, options?: RawAxiosRequestConfig) { + return ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiFp(this.configuration).obtainPat(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Obtain PAT list. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi - */ - public obtainPats(options?: AxiosRequestConfig) { - return ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiFp( - this.configuration - ) - .obtainPats(options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Obtain PAT list. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi + */ + public obtainPats(options?: RawAxiosRequestConfig) { + return ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiFp(this.configuration).obtainPats(options).then((request) => request(this.axios, this.basePath)); + } - /** - * Restore a PAT. - * @param {ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRestorePatRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi - */ - public restorePat( - requestParameters: ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRestorePatRequest, - options?: AxiosRequestConfig - ) { - return ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiFp( - this.configuration - ) - .restorePat(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Restore a PAT. + * @param {ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRestorePatRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi + */ + public restorePat(requestParameters: ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRestorePatRequest, options?: RawAxiosRequestConfig) { + return ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiFp(this.configuration).restorePat(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Revoke a PAT - * @param {ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRevokePatRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi - */ - public revokePat( - requestParameters: ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRevokePatRequest, - options?: AxiosRequestConfig - ) { - return ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiFp( - this.configuration - ) - .revokePat(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Revoke a PAT + * @param {ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRevokePatRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiSecurityHaloRunV1alpha1PersonalAccessTokenApi + */ + public revokePat(requestParameters: ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiRevokePatRequest, options?: RawAxiosRequestConfig) { + return ApiSecurityHaloRunV1alpha1PersonalAccessTokenApiFp(this.configuration).revokePat(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/auth-halo-run-v1alpha1-auth-provider-api.ts b/ui/packages/api-client/src/api/auth-halo-run-v1alpha1-auth-provider-api.ts index 59e7178f5..26320cbb6 100644 --- a/ui/packages/api-client/src/api/auth-halo-run-v1alpha1-auth-provider-api.ts +++ b/ui/packages/api-client/src/api/auth-halo-run-v1alpha1-auth-provider-api.ts @@ -5,602 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { AuthProvider } from "../models"; +import { AuthProvider } from '../models'; // @ts-ignore -import { AuthProviderList } from "../models"; +import { AuthProviderList } from '../models'; /** * AuthHaloRunV1alpha1AuthProviderApi - axios parameter creator * @export */ -export const AuthHaloRunV1alpha1AuthProviderApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create auth.halo.run/v1alpha1/AuthProvider - * @param {AuthProvider} [authProvider] Fresh authprovider - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createauthHaloRunV1alpha1AuthProvider: async ( - authProvider?: AuthProvider, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/auth.halo.run/v1alpha1/authproviders`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const AuthHaloRunV1alpha1AuthProviderApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create auth.halo.run/v1alpha1/AuthProvider + * @param {AuthProvider} [authProvider] Fresh authprovider + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createauthHaloRunV1alpha1AuthProvider: async (authProvider?: AuthProvider, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/auth.halo.run/v1alpha1/authproviders`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - authProvider, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete auth.halo.run/v1alpha1/AuthProvider - * @param {string} name Name of authprovider - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteauthHaloRunV1alpha1AuthProvider: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deleteauthHaloRunV1alpha1AuthProvider", "name", name); - const localVarPath = - `/apis/auth.halo.run/v1alpha1/authproviders/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(authProvider, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete auth.halo.run/v1alpha1/AuthProvider + * @param {string} name Name of authprovider + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteauthHaloRunV1alpha1AuthProvider: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deleteauthHaloRunV1alpha1AuthProvider', 'name', name) + const localVarPath = `/apis/auth.halo.run/v1alpha1/authproviders/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get auth.halo.run/v1alpha1/AuthProvider - * @param {string} name Name of authprovider - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getauthHaloRunV1alpha1AuthProvider: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getauthHaloRunV1alpha1AuthProvider", "name", name); - const localVarPath = - `/apis/auth.halo.run/v1alpha1/authproviders/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get auth.halo.run/v1alpha1/AuthProvider + * @param {string} name Name of authprovider + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getauthHaloRunV1alpha1AuthProvider: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getauthHaloRunV1alpha1AuthProvider', 'name', name) + const localVarPath = `/apis/auth.halo.run/v1alpha1/authproviders/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List auth.halo.run/v1alpha1/AuthProvider - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listauthHaloRunV1alpha1AuthProvider: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/auth.halo.run/v1alpha1/authproviders`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List auth.halo.run/v1alpha1/AuthProvider + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listauthHaloRunV1alpha1AuthProvider: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/auth.halo.run/v1alpha1/authproviders`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update auth.halo.run/v1alpha1/AuthProvider - * @param {string} name Name of authprovider - * @param {AuthProvider} [authProvider] Updated authprovider - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateauthHaloRunV1alpha1AuthProvider: async ( - name: string, - authProvider?: AuthProvider, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updateauthHaloRunV1alpha1AuthProvider", "name", name); - const localVarPath = - `/apis/auth.halo.run/v1alpha1/authproviders/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update auth.halo.run/v1alpha1/AuthProvider + * @param {string} name Name of authprovider + * @param {AuthProvider} [authProvider] Updated authprovider + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateauthHaloRunV1alpha1AuthProvider: async (name: string, authProvider?: AuthProvider, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updateauthHaloRunV1alpha1AuthProvider', 'name', name) + const localVarPath = `/apis/auth.halo.run/v1alpha1/authproviders/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - authProvider, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(authProvider, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * AuthHaloRunV1alpha1AuthProviderApi - functional programming interface * @export */ -export const AuthHaloRunV1alpha1AuthProviderApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - AuthHaloRunV1alpha1AuthProviderApiAxiosParamCreator(configuration); - return { - /** - * Create auth.halo.run/v1alpha1/AuthProvider - * @param {AuthProvider} [authProvider] Fresh authprovider - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createauthHaloRunV1alpha1AuthProvider( - authProvider?: AuthProvider, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createauthHaloRunV1alpha1AuthProvider( - authProvider, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete auth.halo.run/v1alpha1/AuthProvider - * @param {string} name Name of authprovider - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deleteauthHaloRunV1alpha1AuthProvider( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deleteauthHaloRunV1alpha1AuthProvider( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get auth.halo.run/v1alpha1/AuthProvider - * @param {string} name Name of authprovider - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getauthHaloRunV1alpha1AuthProvider( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getauthHaloRunV1alpha1AuthProvider( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List auth.halo.run/v1alpha1/AuthProvider - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listauthHaloRunV1alpha1AuthProvider( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listauthHaloRunV1alpha1AuthProvider( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update auth.halo.run/v1alpha1/AuthProvider - * @param {string} name Name of authprovider - * @param {AuthProvider} [authProvider] Updated authprovider - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateauthHaloRunV1alpha1AuthProvider( - name: string, - authProvider?: AuthProvider, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updateauthHaloRunV1alpha1AuthProvider( - name, - authProvider, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const AuthHaloRunV1alpha1AuthProviderApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = AuthHaloRunV1alpha1AuthProviderApiAxiosParamCreator(configuration) + return { + /** + * Create auth.halo.run/v1alpha1/AuthProvider + * @param {AuthProvider} [authProvider] Fresh authprovider + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createauthHaloRunV1alpha1AuthProvider(authProvider?: AuthProvider, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createauthHaloRunV1alpha1AuthProvider(authProvider, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthHaloRunV1alpha1AuthProviderApi.createauthHaloRunV1alpha1AuthProvider']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete auth.halo.run/v1alpha1/AuthProvider + * @param {string} name Name of authprovider + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteauthHaloRunV1alpha1AuthProvider(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteauthHaloRunV1alpha1AuthProvider(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthHaloRunV1alpha1AuthProviderApi.deleteauthHaloRunV1alpha1AuthProvider']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get auth.halo.run/v1alpha1/AuthProvider + * @param {string} name Name of authprovider + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getauthHaloRunV1alpha1AuthProvider(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getauthHaloRunV1alpha1AuthProvider(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthHaloRunV1alpha1AuthProviderApi.getauthHaloRunV1alpha1AuthProvider']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List auth.halo.run/v1alpha1/AuthProvider + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listauthHaloRunV1alpha1AuthProvider(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listauthHaloRunV1alpha1AuthProvider(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthHaloRunV1alpha1AuthProviderApi.listauthHaloRunV1alpha1AuthProvider']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update auth.halo.run/v1alpha1/AuthProvider + * @param {string} name Name of authprovider + * @param {AuthProvider} [authProvider] Updated authprovider + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateauthHaloRunV1alpha1AuthProvider(name: string, authProvider?: AuthProvider, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateauthHaloRunV1alpha1AuthProvider(name, authProvider, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthHaloRunV1alpha1AuthProviderApi.updateauthHaloRunV1alpha1AuthProvider']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * AuthHaloRunV1alpha1AuthProviderApi - factory interface * @export */ -export const AuthHaloRunV1alpha1AuthProviderApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = AuthHaloRunV1alpha1AuthProviderApiFp(configuration); - return { - /** - * Create auth.halo.run/v1alpha1/AuthProvider - * @param {AuthHaloRunV1alpha1AuthProviderApiCreateauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createauthHaloRunV1alpha1AuthProvider( - requestParameters: AuthHaloRunV1alpha1AuthProviderApiCreateauthHaloRunV1alpha1AuthProviderRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createauthHaloRunV1alpha1AuthProvider( - requestParameters.authProvider, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Delete auth.halo.run/v1alpha1/AuthProvider - * @param {AuthHaloRunV1alpha1AuthProviderApiDeleteauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteauthHaloRunV1alpha1AuthProvider( - requestParameters: AuthHaloRunV1alpha1AuthProviderApiDeleteauthHaloRunV1alpha1AuthProviderRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deleteauthHaloRunV1alpha1AuthProvider(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get auth.halo.run/v1alpha1/AuthProvider - * @param {AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getauthHaloRunV1alpha1AuthProvider( - requestParameters: AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthProviderRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getauthHaloRunV1alpha1AuthProvider(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List auth.halo.run/v1alpha1/AuthProvider - * @param {AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listauthHaloRunV1alpha1AuthProvider( - requestParameters: AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProviderRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listauthHaloRunV1alpha1AuthProvider( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update auth.halo.run/v1alpha1/AuthProvider - * @param {AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateauthHaloRunV1alpha1AuthProvider( - requestParameters: AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProviderRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updateauthHaloRunV1alpha1AuthProvider( - requestParameters.name, - requestParameters.authProvider, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const AuthHaloRunV1alpha1AuthProviderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = AuthHaloRunV1alpha1AuthProviderApiFp(configuration) + return { + /** + * Create auth.halo.run/v1alpha1/AuthProvider + * @param {AuthHaloRunV1alpha1AuthProviderApiCreateauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createauthHaloRunV1alpha1AuthProvider(requestParameters: AuthHaloRunV1alpha1AuthProviderApiCreateauthHaloRunV1alpha1AuthProviderRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createauthHaloRunV1alpha1AuthProvider(requestParameters.authProvider, options).then((request) => request(axios, basePath)); + }, + /** + * Delete auth.halo.run/v1alpha1/AuthProvider + * @param {AuthHaloRunV1alpha1AuthProviderApiDeleteauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteauthHaloRunV1alpha1AuthProvider(requestParameters: AuthHaloRunV1alpha1AuthProviderApiDeleteauthHaloRunV1alpha1AuthProviderRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deleteauthHaloRunV1alpha1AuthProvider(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get auth.halo.run/v1alpha1/AuthProvider + * @param {AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getauthHaloRunV1alpha1AuthProvider(requestParameters: AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthProviderRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getauthHaloRunV1alpha1AuthProvider(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List auth.halo.run/v1alpha1/AuthProvider + * @param {AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listauthHaloRunV1alpha1AuthProvider(requestParameters: AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProviderRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listauthHaloRunV1alpha1AuthProvider(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update auth.halo.run/v1alpha1/AuthProvider + * @param {AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateauthHaloRunV1alpha1AuthProvider(requestParameters: AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProviderRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updateauthHaloRunV1alpha1AuthProvider(requestParameters.name, requestParameters.authProvider, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -609,12 +400,12 @@ export const AuthHaloRunV1alpha1AuthProviderApiFactory = function ( * @interface AuthHaloRunV1alpha1AuthProviderApiCreateauthHaloRunV1alpha1AuthProviderRequest */ export interface AuthHaloRunV1alpha1AuthProviderApiCreateauthHaloRunV1alpha1AuthProviderRequest { - /** - * Fresh authprovider - * @type {AuthProvider} - * @memberof AuthHaloRunV1alpha1AuthProviderApiCreateauthHaloRunV1alpha1AuthProvider - */ - readonly authProvider?: AuthProvider; + /** + * Fresh authprovider + * @type {AuthProvider} + * @memberof AuthHaloRunV1alpha1AuthProviderApiCreateauthHaloRunV1alpha1AuthProvider + */ + readonly authProvider?: AuthProvider } /** @@ -623,12 +414,12 @@ export interface AuthHaloRunV1alpha1AuthProviderApiCreateauthHaloRunV1alpha1Auth * @interface AuthHaloRunV1alpha1AuthProviderApiDeleteauthHaloRunV1alpha1AuthProviderRequest */ export interface AuthHaloRunV1alpha1AuthProviderApiDeleteauthHaloRunV1alpha1AuthProviderRequest { - /** - * Name of authprovider - * @type {string} - * @memberof AuthHaloRunV1alpha1AuthProviderApiDeleteauthHaloRunV1alpha1AuthProvider - */ - readonly name: string; + /** + * Name of authprovider + * @type {string} + * @memberof AuthHaloRunV1alpha1AuthProviderApiDeleteauthHaloRunV1alpha1AuthProvider + */ + readonly name: string } /** @@ -637,12 +428,12 @@ export interface AuthHaloRunV1alpha1AuthProviderApiDeleteauthHaloRunV1alpha1Auth * @interface AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthProviderRequest */ export interface AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthProviderRequest { - /** - * Name of authprovider - * @type {string} - * @memberof AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthProvider - */ - readonly name: string; + /** + * Name of authprovider + * @type {string} + * @memberof AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthProvider + */ + readonly name: string } /** @@ -651,40 +442,40 @@ export interface AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthPro * @interface AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProviderRequest */ export interface AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProviderRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider + */ + readonly sort?: Array } /** @@ -693,19 +484,19 @@ export interface AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthPr * @interface AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProviderRequest */ export interface AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProviderRequest { - /** - * Name of authprovider - * @type {string} - * @memberof AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProvider - */ - readonly name: string; + /** + * Name of authprovider + * @type {string} + * @memberof AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProvider + */ + readonly name: string - /** - * Updated authprovider - * @type {AuthProvider} - * @memberof AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProvider - */ - readonly authProvider?: AuthProvider; + /** + * Updated authprovider + * @type {AuthProvider} + * @memberof AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProvider + */ + readonly authProvider?: AuthProvider } /** @@ -715,97 +506,59 @@ export interface AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1Auth * @extends {BaseAPI} */ export class AuthHaloRunV1alpha1AuthProviderApi extends BaseAPI { - /** - * Create auth.halo.run/v1alpha1/AuthProvider - * @param {AuthHaloRunV1alpha1AuthProviderApiCreateauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthHaloRunV1alpha1AuthProviderApi - */ - public createauthHaloRunV1alpha1AuthProvider( - requestParameters: AuthHaloRunV1alpha1AuthProviderApiCreateauthHaloRunV1alpha1AuthProviderRequest = {}, - options?: AxiosRequestConfig - ) { - return AuthHaloRunV1alpha1AuthProviderApiFp(this.configuration) - .createauthHaloRunV1alpha1AuthProvider( - requestParameters.authProvider, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create auth.halo.run/v1alpha1/AuthProvider + * @param {AuthHaloRunV1alpha1AuthProviderApiCreateauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthHaloRunV1alpha1AuthProviderApi + */ + public createauthHaloRunV1alpha1AuthProvider(requestParameters: AuthHaloRunV1alpha1AuthProviderApiCreateauthHaloRunV1alpha1AuthProviderRequest = {}, options?: RawAxiosRequestConfig) { + return AuthHaloRunV1alpha1AuthProviderApiFp(this.configuration).createauthHaloRunV1alpha1AuthProvider(requestParameters.authProvider, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete auth.halo.run/v1alpha1/AuthProvider - * @param {AuthHaloRunV1alpha1AuthProviderApiDeleteauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthHaloRunV1alpha1AuthProviderApi - */ - public deleteauthHaloRunV1alpha1AuthProvider( - requestParameters: AuthHaloRunV1alpha1AuthProviderApiDeleteauthHaloRunV1alpha1AuthProviderRequest, - options?: AxiosRequestConfig - ) { - return AuthHaloRunV1alpha1AuthProviderApiFp(this.configuration) - .deleteauthHaloRunV1alpha1AuthProvider(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete auth.halo.run/v1alpha1/AuthProvider + * @param {AuthHaloRunV1alpha1AuthProviderApiDeleteauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthHaloRunV1alpha1AuthProviderApi + */ + public deleteauthHaloRunV1alpha1AuthProvider(requestParameters: AuthHaloRunV1alpha1AuthProviderApiDeleteauthHaloRunV1alpha1AuthProviderRequest, options?: RawAxiosRequestConfig) { + return AuthHaloRunV1alpha1AuthProviderApiFp(this.configuration).deleteauthHaloRunV1alpha1AuthProvider(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get auth.halo.run/v1alpha1/AuthProvider - * @param {AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthHaloRunV1alpha1AuthProviderApi - */ - public getauthHaloRunV1alpha1AuthProvider( - requestParameters: AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthProviderRequest, - options?: AxiosRequestConfig - ) { - return AuthHaloRunV1alpha1AuthProviderApiFp(this.configuration) - .getauthHaloRunV1alpha1AuthProvider(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get auth.halo.run/v1alpha1/AuthProvider + * @param {AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthHaloRunV1alpha1AuthProviderApi + */ + public getauthHaloRunV1alpha1AuthProvider(requestParameters: AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthProviderRequest, options?: RawAxiosRequestConfig) { + return AuthHaloRunV1alpha1AuthProviderApiFp(this.configuration).getauthHaloRunV1alpha1AuthProvider(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List auth.halo.run/v1alpha1/AuthProvider - * @param {AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthHaloRunV1alpha1AuthProviderApi - */ - public listauthHaloRunV1alpha1AuthProvider( - requestParameters: AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProviderRequest = {}, - options?: AxiosRequestConfig - ) { - return AuthHaloRunV1alpha1AuthProviderApiFp(this.configuration) - .listauthHaloRunV1alpha1AuthProvider( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List auth.halo.run/v1alpha1/AuthProvider + * @param {AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthHaloRunV1alpha1AuthProviderApi + */ + public listauthHaloRunV1alpha1AuthProvider(requestParameters: AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProviderRequest = {}, options?: RawAxiosRequestConfig) { + return AuthHaloRunV1alpha1AuthProviderApiFp(this.configuration).listauthHaloRunV1alpha1AuthProvider(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update auth.halo.run/v1alpha1/AuthProvider - * @param {AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthHaloRunV1alpha1AuthProviderApi - */ - public updateauthHaloRunV1alpha1AuthProvider( - requestParameters: AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProviderRequest, - options?: AxiosRequestConfig - ) { - return AuthHaloRunV1alpha1AuthProviderApiFp(this.configuration) - .updateauthHaloRunV1alpha1AuthProvider( - requestParameters.name, - requestParameters.authProvider, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update auth.halo.run/v1alpha1/AuthProvider + * @param {AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthHaloRunV1alpha1AuthProviderApi + */ + public updateauthHaloRunV1alpha1AuthProvider(requestParameters: AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProviderRequest, options?: RawAxiosRequestConfig) { + return AuthHaloRunV1alpha1AuthProviderApiFp(this.configuration).updateauthHaloRunV1alpha1AuthProvider(requestParameters.name, requestParameters.authProvider, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/auth-halo-run-v1alpha1-user-connection-api.ts b/ui/packages/api-client/src/api/auth-halo-run-v1alpha1-user-connection-api.ts index 55c88ce60..4952cedf1 100644 --- a/ui/packages/api-client/src/api/auth-halo-run-v1alpha1-user-connection-api.ts +++ b/ui/packages/api-client/src/api/auth-halo-run-v1alpha1-user-connection-api.ts @@ -5,613 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { UserConnection } from "../models"; +import { UserConnection } from '../models'; // @ts-ignore -import { UserConnectionList } from "../models"; +import { UserConnectionList } from '../models'; /** * AuthHaloRunV1alpha1UserConnectionApi - axios parameter creator * @export */ -export const AuthHaloRunV1alpha1UserConnectionApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create auth.halo.run/v1alpha1/UserConnection - * @param {UserConnection} [userConnection] Fresh userconnection - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createauthHaloRunV1alpha1UserConnection: async ( - userConnection?: UserConnection, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/auth.halo.run/v1alpha1/userconnections`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const AuthHaloRunV1alpha1UserConnectionApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create auth.halo.run/v1alpha1/UserConnection + * @param {UserConnection} [userConnection] Fresh userconnection + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createauthHaloRunV1alpha1UserConnection: async (userConnection?: UserConnection, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/auth.halo.run/v1alpha1/userconnections`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - userConnection, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete auth.halo.run/v1alpha1/UserConnection - * @param {string} name Name of userconnection - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteauthHaloRunV1alpha1UserConnection: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "deleteauthHaloRunV1alpha1UserConnection", - "name", - name - ); - const localVarPath = - `/apis/auth.halo.run/v1alpha1/userconnections/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(userConnection, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete auth.halo.run/v1alpha1/UserConnection + * @param {string} name Name of userconnection + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteauthHaloRunV1alpha1UserConnection: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deleteauthHaloRunV1alpha1UserConnection', 'name', name) + const localVarPath = `/apis/auth.halo.run/v1alpha1/userconnections/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get auth.halo.run/v1alpha1/UserConnection - * @param {string} name Name of userconnection - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getauthHaloRunV1alpha1UserConnection: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getauthHaloRunV1alpha1UserConnection", "name", name); - const localVarPath = - `/apis/auth.halo.run/v1alpha1/userconnections/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get auth.halo.run/v1alpha1/UserConnection + * @param {string} name Name of userconnection + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getauthHaloRunV1alpha1UserConnection: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getauthHaloRunV1alpha1UserConnection', 'name', name) + const localVarPath = `/apis/auth.halo.run/v1alpha1/userconnections/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List auth.halo.run/v1alpha1/UserConnection - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listauthHaloRunV1alpha1UserConnection: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/auth.halo.run/v1alpha1/userconnections`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List auth.halo.run/v1alpha1/UserConnection + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listauthHaloRunV1alpha1UserConnection: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/auth.halo.run/v1alpha1/userconnections`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update auth.halo.run/v1alpha1/UserConnection - * @param {string} name Name of userconnection - * @param {UserConnection} [userConnection] Updated userconnection - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateauthHaloRunV1alpha1UserConnection: async ( - name: string, - userConnection?: UserConnection, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "updateauthHaloRunV1alpha1UserConnection", - "name", - name - ); - const localVarPath = - `/apis/auth.halo.run/v1alpha1/userconnections/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update auth.halo.run/v1alpha1/UserConnection + * @param {string} name Name of userconnection + * @param {UserConnection} [userConnection] Updated userconnection + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateauthHaloRunV1alpha1UserConnection: async (name: string, userConnection?: UserConnection, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updateauthHaloRunV1alpha1UserConnection', 'name', name) + const localVarPath = `/apis/auth.halo.run/v1alpha1/userconnections/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - userConnection, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(userConnection, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * AuthHaloRunV1alpha1UserConnectionApi - functional programming interface * @export */ -export const AuthHaloRunV1alpha1UserConnectionApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - AuthHaloRunV1alpha1UserConnectionApiAxiosParamCreator(configuration); - return { - /** - * Create auth.halo.run/v1alpha1/UserConnection - * @param {UserConnection} [userConnection] Fresh userconnection - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createauthHaloRunV1alpha1UserConnection( - userConnection?: UserConnection, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createauthHaloRunV1alpha1UserConnection( - userConnection, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete auth.halo.run/v1alpha1/UserConnection - * @param {string} name Name of userconnection - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deleteauthHaloRunV1alpha1UserConnection( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deleteauthHaloRunV1alpha1UserConnection( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get auth.halo.run/v1alpha1/UserConnection - * @param {string} name Name of userconnection - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getauthHaloRunV1alpha1UserConnection( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getauthHaloRunV1alpha1UserConnection( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List auth.halo.run/v1alpha1/UserConnection - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listauthHaloRunV1alpha1UserConnection( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listauthHaloRunV1alpha1UserConnection( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update auth.halo.run/v1alpha1/UserConnection - * @param {string} name Name of userconnection - * @param {UserConnection} [userConnection] Updated userconnection - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateauthHaloRunV1alpha1UserConnection( - name: string, - userConnection?: UserConnection, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updateauthHaloRunV1alpha1UserConnection( - name, - userConnection, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const AuthHaloRunV1alpha1UserConnectionApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = AuthHaloRunV1alpha1UserConnectionApiAxiosParamCreator(configuration) + return { + /** + * Create auth.halo.run/v1alpha1/UserConnection + * @param {UserConnection} [userConnection] Fresh userconnection + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createauthHaloRunV1alpha1UserConnection(userConnection?: UserConnection, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createauthHaloRunV1alpha1UserConnection(userConnection, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthHaloRunV1alpha1UserConnectionApi.createauthHaloRunV1alpha1UserConnection']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete auth.halo.run/v1alpha1/UserConnection + * @param {string} name Name of userconnection + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteauthHaloRunV1alpha1UserConnection(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteauthHaloRunV1alpha1UserConnection(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthHaloRunV1alpha1UserConnectionApi.deleteauthHaloRunV1alpha1UserConnection']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get auth.halo.run/v1alpha1/UserConnection + * @param {string} name Name of userconnection + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getauthHaloRunV1alpha1UserConnection(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getauthHaloRunV1alpha1UserConnection(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthHaloRunV1alpha1UserConnectionApi.getauthHaloRunV1alpha1UserConnection']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List auth.halo.run/v1alpha1/UserConnection + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listauthHaloRunV1alpha1UserConnection(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listauthHaloRunV1alpha1UserConnection(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthHaloRunV1alpha1UserConnectionApi.listauthHaloRunV1alpha1UserConnection']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update auth.halo.run/v1alpha1/UserConnection + * @param {string} name Name of userconnection + * @param {UserConnection} [userConnection] Updated userconnection + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateauthHaloRunV1alpha1UserConnection(name: string, userConnection?: UserConnection, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateauthHaloRunV1alpha1UserConnection(name, userConnection, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthHaloRunV1alpha1UserConnectionApi.updateauthHaloRunV1alpha1UserConnection']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * AuthHaloRunV1alpha1UserConnectionApi - factory interface * @export */ -export const AuthHaloRunV1alpha1UserConnectionApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = AuthHaloRunV1alpha1UserConnectionApiFp(configuration); - return { - /** - * Create auth.halo.run/v1alpha1/UserConnection - * @param {AuthHaloRunV1alpha1UserConnectionApiCreateauthHaloRunV1alpha1UserConnectionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createauthHaloRunV1alpha1UserConnection( - requestParameters: AuthHaloRunV1alpha1UserConnectionApiCreateauthHaloRunV1alpha1UserConnectionRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createauthHaloRunV1alpha1UserConnection( - requestParameters.userConnection, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Delete auth.halo.run/v1alpha1/UserConnection - * @param {AuthHaloRunV1alpha1UserConnectionApiDeleteauthHaloRunV1alpha1UserConnectionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteauthHaloRunV1alpha1UserConnection( - requestParameters: AuthHaloRunV1alpha1UserConnectionApiDeleteauthHaloRunV1alpha1UserConnectionRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deleteauthHaloRunV1alpha1UserConnection( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Get auth.halo.run/v1alpha1/UserConnection - * @param {AuthHaloRunV1alpha1UserConnectionApiGetauthHaloRunV1alpha1UserConnectionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getauthHaloRunV1alpha1UserConnection( - requestParameters: AuthHaloRunV1alpha1UserConnectionApiGetauthHaloRunV1alpha1UserConnectionRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getauthHaloRunV1alpha1UserConnection(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List auth.halo.run/v1alpha1/UserConnection - * @param {AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnectionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listauthHaloRunV1alpha1UserConnection( - requestParameters: AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnectionRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listauthHaloRunV1alpha1UserConnection( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update auth.halo.run/v1alpha1/UserConnection - * @param {AuthHaloRunV1alpha1UserConnectionApiUpdateauthHaloRunV1alpha1UserConnectionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateauthHaloRunV1alpha1UserConnection( - requestParameters: AuthHaloRunV1alpha1UserConnectionApiUpdateauthHaloRunV1alpha1UserConnectionRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updateauthHaloRunV1alpha1UserConnection( - requestParameters.name, - requestParameters.userConnection, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const AuthHaloRunV1alpha1UserConnectionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = AuthHaloRunV1alpha1UserConnectionApiFp(configuration) + return { + /** + * Create auth.halo.run/v1alpha1/UserConnection + * @param {AuthHaloRunV1alpha1UserConnectionApiCreateauthHaloRunV1alpha1UserConnectionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createauthHaloRunV1alpha1UserConnection(requestParameters: AuthHaloRunV1alpha1UserConnectionApiCreateauthHaloRunV1alpha1UserConnectionRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createauthHaloRunV1alpha1UserConnection(requestParameters.userConnection, options).then((request) => request(axios, basePath)); + }, + /** + * Delete auth.halo.run/v1alpha1/UserConnection + * @param {AuthHaloRunV1alpha1UserConnectionApiDeleteauthHaloRunV1alpha1UserConnectionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteauthHaloRunV1alpha1UserConnection(requestParameters: AuthHaloRunV1alpha1UserConnectionApiDeleteauthHaloRunV1alpha1UserConnectionRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deleteauthHaloRunV1alpha1UserConnection(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get auth.halo.run/v1alpha1/UserConnection + * @param {AuthHaloRunV1alpha1UserConnectionApiGetauthHaloRunV1alpha1UserConnectionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getauthHaloRunV1alpha1UserConnection(requestParameters: AuthHaloRunV1alpha1UserConnectionApiGetauthHaloRunV1alpha1UserConnectionRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getauthHaloRunV1alpha1UserConnection(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List auth.halo.run/v1alpha1/UserConnection + * @param {AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnectionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listauthHaloRunV1alpha1UserConnection(requestParameters: AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnectionRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listauthHaloRunV1alpha1UserConnection(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update auth.halo.run/v1alpha1/UserConnection + * @param {AuthHaloRunV1alpha1UserConnectionApiUpdateauthHaloRunV1alpha1UserConnectionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateauthHaloRunV1alpha1UserConnection(requestParameters: AuthHaloRunV1alpha1UserConnectionApiUpdateauthHaloRunV1alpha1UserConnectionRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updateauthHaloRunV1alpha1UserConnection(requestParameters.name, requestParameters.userConnection, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -620,12 +400,12 @@ export const AuthHaloRunV1alpha1UserConnectionApiFactory = function ( * @interface AuthHaloRunV1alpha1UserConnectionApiCreateauthHaloRunV1alpha1UserConnectionRequest */ export interface AuthHaloRunV1alpha1UserConnectionApiCreateauthHaloRunV1alpha1UserConnectionRequest { - /** - * Fresh userconnection - * @type {UserConnection} - * @memberof AuthHaloRunV1alpha1UserConnectionApiCreateauthHaloRunV1alpha1UserConnection - */ - readonly userConnection?: UserConnection; + /** + * Fresh userconnection + * @type {UserConnection} + * @memberof AuthHaloRunV1alpha1UserConnectionApiCreateauthHaloRunV1alpha1UserConnection + */ + readonly userConnection?: UserConnection } /** @@ -634,12 +414,12 @@ export interface AuthHaloRunV1alpha1UserConnectionApiCreateauthHaloRunV1alpha1Us * @interface AuthHaloRunV1alpha1UserConnectionApiDeleteauthHaloRunV1alpha1UserConnectionRequest */ export interface AuthHaloRunV1alpha1UserConnectionApiDeleteauthHaloRunV1alpha1UserConnectionRequest { - /** - * Name of userconnection - * @type {string} - * @memberof AuthHaloRunV1alpha1UserConnectionApiDeleteauthHaloRunV1alpha1UserConnection - */ - readonly name: string; + /** + * Name of userconnection + * @type {string} + * @memberof AuthHaloRunV1alpha1UserConnectionApiDeleteauthHaloRunV1alpha1UserConnection + */ + readonly name: string } /** @@ -648,12 +428,12 @@ export interface AuthHaloRunV1alpha1UserConnectionApiDeleteauthHaloRunV1alpha1Us * @interface AuthHaloRunV1alpha1UserConnectionApiGetauthHaloRunV1alpha1UserConnectionRequest */ export interface AuthHaloRunV1alpha1UserConnectionApiGetauthHaloRunV1alpha1UserConnectionRequest { - /** - * Name of userconnection - * @type {string} - * @memberof AuthHaloRunV1alpha1UserConnectionApiGetauthHaloRunV1alpha1UserConnection - */ - readonly name: string; + /** + * Name of userconnection + * @type {string} + * @memberof AuthHaloRunV1alpha1UserConnectionApiGetauthHaloRunV1alpha1UserConnection + */ + readonly name: string } /** @@ -662,40 +442,40 @@ export interface AuthHaloRunV1alpha1UserConnectionApiGetauthHaloRunV1alpha1UserC * @interface AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnectionRequest */ export interface AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnectionRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnection - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnection + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnection - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnection + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnection - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnection + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnection - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnection + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnection - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnection + */ + readonly sort?: Array } /** @@ -704,19 +484,19 @@ export interface AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1User * @interface AuthHaloRunV1alpha1UserConnectionApiUpdateauthHaloRunV1alpha1UserConnectionRequest */ export interface AuthHaloRunV1alpha1UserConnectionApiUpdateauthHaloRunV1alpha1UserConnectionRequest { - /** - * Name of userconnection - * @type {string} - * @memberof AuthHaloRunV1alpha1UserConnectionApiUpdateauthHaloRunV1alpha1UserConnection - */ - readonly name: string; + /** + * Name of userconnection + * @type {string} + * @memberof AuthHaloRunV1alpha1UserConnectionApiUpdateauthHaloRunV1alpha1UserConnection + */ + readonly name: string - /** - * Updated userconnection - * @type {UserConnection} - * @memberof AuthHaloRunV1alpha1UserConnectionApiUpdateauthHaloRunV1alpha1UserConnection - */ - readonly userConnection?: UserConnection; + /** + * Updated userconnection + * @type {UserConnection} + * @memberof AuthHaloRunV1alpha1UserConnectionApiUpdateauthHaloRunV1alpha1UserConnection + */ + readonly userConnection?: UserConnection } /** @@ -726,97 +506,59 @@ export interface AuthHaloRunV1alpha1UserConnectionApiUpdateauthHaloRunV1alpha1Us * @extends {BaseAPI} */ export class AuthHaloRunV1alpha1UserConnectionApi extends BaseAPI { - /** - * Create auth.halo.run/v1alpha1/UserConnection - * @param {AuthHaloRunV1alpha1UserConnectionApiCreateauthHaloRunV1alpha1UserConnectionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthHaloRunV1alpha1UserConnectionApi - */ - public createauthHaloRunV1alpha1UserConnection( - requestParameters: AuthHaloRunV1alpha1UserConnectionApiCreateauthHaloRunV1alpha1UserConnectionRequest = {}, - options?: AxiosRequestConfig - ) { - return AuthHaloRunV1alpha1UserConnectionApiFp(this.configuration) - .createauthHaloRunV1alpha1UserConnection( - requestParameters.userConnection, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create auth.halo.run/v1alpha1/UserConnection + * @param {AuthHaloRunV1alpha1UserConnectionApiCreateauthHaloRunV1alpha1UserConnectionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthHaloRunV1alpha1UserConnectionApi + */ + public createauthHaloRunV1alpha1UserConnection(requestParameters: AuthHaloRunV1alpha1UserConnectionApiCreateauthHaloRunV1alpha1UserConnectionRequest = {}, options?: RawAxiosRequestConfig) { + return AuthHaloRunV1alpha1UserConnectionApiFp(this.configuration).createauthHaloRunV1alpha1UserConnection(requestParameters.userConnection, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete auth.halo.run/v1alpha1/UserConnection - * @param {AuthHaloRunV1alpha1UserConnectionApiDeleteauthHaloRunV1alpha1UserConnectionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthHaloRunV1alpha1UserConnectionApi - */ - public deleteauthHaloRunV1alpha1UserConnection( - requestParameters: AuthHaloRunV1alpha1UserConnectionApiDeleteauthHaloRunV1alpha1UserConnectionRequest, - options?: AxiosRequestConfig - ) { - return AuthHaloRunV1alpha1UserConnectionApiFp(this.configuration) - .deleteauthHaloRunV1alpha1UserConnection(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete auth.halo.run/v1alpha1/UserConnection + * @param {AuthHaloRunV1alpha1UserConnectionApiDeleteauthHaloRunV1alpha1UserConnectionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthHaloRunV1alpha1UserConnectionApi + */ + public deleteauthHaloRunV1alpha1UserConnection(requestParameters: AuthHaloRunV1alpha1UserConnectionApiDeleteauthHaloRunV1alpha1UserConnectionRequest, options?: RawAxiosRequestConfig) { + return AuthHaloRunV1alpha1UserConnectionApiFp(this.configuration).deleteauthHaloRunV1alpha1UserConnection(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get auth.halo.run/v1alpha1/UserConnection - * @param {AuthHaloRunV1alpha1UserConnectionApiGetauthHaloRunV1alpha1UserConnectionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthHaloRunV1alpha1UserConnectionApi - */ - public getauthHaloRunV1alpha1UserConnection( - requestParameters: AuthHaloRunV1alpha1UserConnectionApiGetauthHaloRunV1alpha1UserConnectionRequest, - options?: AxiosRequestConfig - ) { - return AuthHaloRunV1alpha1UserConnectionApiFp(this.configuration) - .getauthHaloRunV1alpha1UserConnection(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get auth.halo.run/v1alpha1/UserConnection + * @param {AuthHaloRunV1alpha1UserConnectionApiGetauthHaloRunV1alpha1UserConnectionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthHaloRunV1alpha1UserConnectionApi + */ + public getauthHaloRunV1alpha1UserConnection(requestParameters: AuthHaloRunV1alpha1UserConnectionApiGetauthHaloRunV1alpha1UserConnectionRequest, options?: RawAxiosRequestConfig) { + return AuthHaloRunV1alpha1UserConnectionApiFp(this.configuration).getauthHaloRunV1alpha1UserConnection(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List auth.halo.run/v1alpha1/UserConnection - * @param {AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnectionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthHaloRunV1alpha1UserConnectionApi - */ - public listauthHaloRunV1alpha1UserConnection( - requestParameters: AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnectionRequest = {}, - options?: AxiosRequestConfig - ) { - return AuthHaloRunV1alpha1UserConnectionApiFp(this.configuration) - .listauthHaloRunV1alpha1UserConnection( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List auth.halo.run/v1alpha1/UserConnection + * @param {AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnectionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthHaloRunV1alpha1UserConnectionApi + */ + public listauthHaloRunV1alpha1UserConnection(requestParameters: AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnectionRequest = {}, options?: RawAxiosRequestConfig) { + return AuthHaloRunV1alpha1UserConnectionApiFp(this.configuration).listauthHaloRunV1alpha1UserConnection(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update auth.halo.run/v1alpha1/UserConnection - * @param {AuthHaloRunV1alpha1UserConnectionApiUpdateauthHaloRunV1alpha1UserConnectionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthHaloRunV1alpha1UserConnectionApi - */ - public updateauthHaloRunV1alpha1UserConnection( - requestParameters: AuthHaloRunV1alpha1UserConnectionApiUpdateauthHaloRunV1alpha1UserConnectionRequest, - options?: AxiosRequestConfig - ) { - return AuthHaloRunV1alpha1UserConnectionApiFp(this.configuration) - .updateauthHaloRunV1alpha1UserConnection( - requestParameters.name, - requestParameters.userConnection, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update auth.halo.run/v1alpha1/UserConnection + * @param {AuthHaloRunV1alpha1UserConnectionApiUpdateauthHaloRunV1alpha1UserConnectionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthHaloRunV1alpha1UserConnectionApi + */ + public updateauthHaloRunV1alpha1UserConnection(requestParameters: AuthHaloRunV1alpha1UserConnectionApiUpdateauthHaloRunV1alpha1UserConnectionRequest, options?: RawAxiosRequestConfig) { + return AuthHaloRunV1alpha1UserConnectionApiFp(this.configuration).updateauthHaloRunV1alpha1UserConnection(requestParameters.name, requestParameters.userConnection, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/console-api-notification-halo-run-v1alpha1-notifier-api.ts b/ui/packages/api-client/src/api/console-api-notification-halo-run-v1alpha1-notifier-api.ts new file mode 100644 index 000000000..396e3eea7 --- /dev/null +++ b/ui/packages/api-client/src/api/console-api-notification-halo-run-v1alpha1-notifier-api.ts @@ -0,0 +1,151 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Halo Next API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import { EmailConfigValidationRequest } from '../models'; +/** + * ConsoleApiNotificationHaloRunV1alpha1NotifierApi - axios parameter creator + * @export + */ +export const ConsoleApiNotificationHaloRunV1alpha1NotifierApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Verify email sender config. + * @param {EmailConfigValidationRequest} emailConfigValidationRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyEmailSenderConfig: async (emailConfigValidationRequest: EmailConfigValidationRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'emailConfigValidationRequest' is not null or undefined + assertParamExists('verifyEmailSenderConfig', 'emailConfigValidationRequest', emailConfigValidationRequest) + const localVarPath = `/apis/console.api.notification.halo.run/v1alpha1/notifiers/default-email-notifier/verify-connection`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(emailConfigValidationRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * ConsoleApiNotificationHaloRunV1alpha1NotifierApi - functional programming interface + * @export + */ +export const ConsoleApiNotificationHaloRunV1alpha1NotifierApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ConsoleApiNotificationHaloRunV1alpha1NotifierApiAxiosParamCreator(configuration) + return { + /** + * Verify email sender config. + * @param {EmailConfigValidationRequest} emailConfigValidationRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async verifyEmailSenderConfig(emailConfigValidationRequest: EmailConfigValidationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.verifyEmailSenderConfig(emailConfigValidationRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ConsoleApiNotificationHaloRunV1alpha1NotifierApi.verifyEmailSenderConfig']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * ConsoleApiNotificationHaloRunV1alpha1NotifierApi - factory interface + * @export + */ +export const ConsoleApiNotificationHaloRunV1alpha1NotifierApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ConsoleApiNotificationHaloRunV1alpha1NotifierApiFp(configuration) + return { + /** + * Verify email sender config. + * @param {ConsoleApiNotificationHaloRunV1alpha1NotifierApiVerifyEmailSenderConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyEmailSenderConfig(requestParameters: ConsoleApiNotificationHaloRunV1alpha1NotifierApiVerifyEmailSenderConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.verifyEmailSenderConfig(requestParameters.emailConfigValidationRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for verifyEmailSenderConfig operation in ConsoleApiNotificationHaloRunV1alpha1NotifierApi. + * @export + * @interface ConsoleApiNotificationHaloRunV1alpha1NotifierApiVerifyEmailSenderConfigRequest + */ +export interface ConsoleApiNotificationHaloRunV1alpha1NotifierApiVerifyEmailSenderConfigRequest { + /** + * + * @type {EmailConfigValidationRequest} + * @memberof ConsoleApiNotificationHaloRunV1alpha1NotifierApiVerifyEmailSenderConfig + */ + readonly emailConfigValidationRequest: EmailConfigValidationRequest +} + +/** + * ConsoleApiNotificationHaloRunV1alpha1NotifierApi - object-oriented interface + * @export + * @class ConsoleApiNotificationHaloRunV1alpha1NotifierApi + * @extends {BaseAPI} + */ +export class ConsoleApiNotificationHaloRunV1alpha1NotifierApi extends BaseAPI { + /** + * Verify email sender config. + * @param {ConsoleApiNotificationHaloRunV1alpha1NotifierApiVerifyEmailSenderConfigRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ConsoleApiNotificationHaloRunV1alpha1NotifierApi + */ + public verifyEmailSenderConfig(requestParameters: ConsoleApiNotificationHaloRunV1alpha1NotifierApiVerifyEmailSenderConfigRequest, options?: RawAxiosRequestConfig) { + return ConsoleApiNotificationHaloRunV1alpha1NotifierApiFp(this.configuration).verifyEmailSenderConfig(requestParameters.emailConfigValidationRequest, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/ui/packages/api-client/src/api/content-halo-run-v1alpha1-category-api.ts b/ui/packages/api-client/src/api/content-halo-run-v1alpha1-category-api.ts index 08c6f7f1d..f67eababd 100644 --- a/ui/packages/api-client/src/api/content-halo-run-v1alpha1-category-api.ts +++ b/ui/packages/api-client/src/api/content-halo-run-v1alpha1-category-api.ts @@ -5,599 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Category } from "../models"; +import { Category } from '../models'; // @ts-ignore -import { CategoryList } from "../models"; +import { CategoryList } from '../models'; /** * ContentHaloRunV1alpha1CategoryApi - axios parameter creator * @export */ -export const ContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create content.halo.run/v1alpha1/Category - * @param {Category} [category] Fresh category - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createcontentHaloRunV1alpha1Category: async ( - category?: Category, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/content.halo.run/v1alpha1/categories`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create content.halo.run/v1alpha1/Category + * @param {Category} [category] Fresh category + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createcontentHaloRunV1alpha1Category: async (category?: Category, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/content.halo.run/v1alpha1/categories`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - category, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete content.halo.run/v1alpha1/Category - * @param {string} name Name of category - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletecontentHaloRunV1alpha1Category: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletecontentHaloRunV1alpha1Category", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/categories/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(category, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete content.halo.run/v1alpha1/Category + * @param {string} name Name of category + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletecontentHaloRunV1alpha1Category: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletecontentHaloRunV1alpha1Category', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/categories/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get content.halo.run/v1alpha1/Category - * @param {string} name Name of category - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getcontentHaloRunV1alpha1Category: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getcontentHaloRunV1alpha1Category", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/categories/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get content.halo.run/v1alpha1/Category + * @param {string} name Name of category + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getcontentHaloRunV1alpha1Category: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getcontentHaloRunV1alpha1Category', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/categories/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List content.halo.run/v1alpha1/Category - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listcontentHaloRunV1alpha1Category: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/content.halo.run/v1alpha1/categories`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List content.halo.run/v1alpha1/Category + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listcontentHaloRunV1alpha1Category: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/content.halo.run/v1alpha1/categories`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update content.halo.run/v1alpha1/Category - * @param {string} name Name of category - * @param {Category} [category] Updated category - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatecontentHaloRunV1alpha1Category: async ( - name: string, - category?: Category, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatecontentHaloRunV1alpha1Category", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/categories/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update content.halo.run/v1alpha1/Category + * @param {string} name Name of category + * @param {Category} [category] Updated category + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatecontentHaloRunV1alpha1Category: async (name: string, category?: Category, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatecontentHaloRunV1alpha1Category', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/categories/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - category, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(category, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ContentHaloRunV1alpha1CategoryApi - functional programming interface * @export */ -export const ContentHaloRunV1alpha1CategoryApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ContentHaloRunV1alpha1CategoryApiAxiosParamCreator(configuration); - return { - /** - * Create content.halo.run/v1alpha1/Category - * @param {Category} [category] Fresh category - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createcontentHaloRunV1alpha1Category( - category?: Category, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Category( - category, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete content.halo.run/v1alpha1/Category - * @param {string} name Name of category - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletecontentHaloRunV1alpha1Category( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Category( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get content.halo.run/v1alpha1/Category - * @param {string} name Name of category - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getcontentHaloRunV1alpha1Category( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Category( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List content.halo.run/v1alpha1/Category - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listcontentHaloRunV1alpha1Category( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Category( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update content.halo.run/v1alpha1/Category - * @param {string} name Name of category - * @param {Category} [category] Updated category - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatecontentHaloRunV1alpha1Category( - name: string, - category?: Category, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Category( - name, - category, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ContentHaloRunV1alpha1CategoryApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ContentHaloRunV1alpha1CategoryApiAxiosParamCreator(configuration) + return { + /** + * Create content.halo.run/v1alpha1/Category + * @param {Category} [category] Fresh category + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createcontentHaloRunV1alpha1Category(category?: Category, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Category(category, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1CategoryApi.createcontentHaloRunV1alpha1Category']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete content.halo.run/v1alpha1/Category + * @param {string} name Name of category + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletecontentHaloRunV1alpha1Category(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Category(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1CategoryApi.deletecontentHaloRunV1alpha1Category']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get content.halo.run/v1alpha1/Category + * @param {string} name Name of category + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getcontentHaloRunV1alpha1Category(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Category(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1CategoryApi.getcontentHaloRunV1alpha1Category']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List content.halo.run/v1alpha1/Category + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listcontentHaloRunV1alpha1Category(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Category(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1CategoryApi.listcontentHaloRunV1alpha1Category']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update content.halo.run/v1alpha1/Category + * @param {string} name Name of category + * @param {Category} [category] Updated category + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatecontentHaloRunV1alpha1Category(name: string, category?: Category, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Category(name, category, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1CategoryApi.updatecontentHaloRunV1alpha1Category']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ContentHaloRunV1alpha1CategoryApi - factory interface * @export */ -export const ContentHaloRunV1alpha1CategoryApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ContentHaloRunV1alpha1CategoryApiFp(configuration); - return { - /** - * Create content.halo.run/v1alpha1/Category - * @param {ContentHaloRunV1alpha1CategoryApiCreatecontentHaloRunV1alpha1CategoryRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createcontentHaloRunV1alpha1Category( - requestParameters: ContentHaloRunV1alpha1CategoryApiCreatecontentHaloRunV1alpha1CategoryRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createcontentHaloRunV1alpha1Category( - requestParameters.category, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Delete content.halo.run/v1alpha1/Category - * @param {ContentHaloRunV1alpha1CategoryApiDeletecontentHaloRunV1alpha1CategoryRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletecontentHaloRunV1alpha1Category( - requestParameters: ContentHaloRunV1alpha1CategoryApiDeletecontentHaloRunV1alpha1CategoryRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletecontentHaloRunV1alpha1Category(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get content.halo.run/v1alpha1/Category - * @param {ContentHaloRunV1alpha1CategoryApiGetcontentHaloRunV1alpha1CategoryRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getcontentHaloRunV1alpha1Category( - requestParameters: ContentHaloRunV1alpha1CategoryApiGetcontentHaloRunV1alpha1CategoryRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getcontentHaloRunV1alpha1Category(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List content.halo.run/v1alpha1/Category - * @param {ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1CategoryRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listcontentHaloRunV1alpha1Category( - requestParameters: ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1CategoryRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listcontentHaloRunV1alpha1Category( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update content.halo.run/v1alpha1/Category - * @param {ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1CategoryRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatecontentHaloRunV1alpha1Category( - requestParameters: ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1CategoryRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatecontentHaloRunV1alpha1Category( - requestParameters.name, - requestParameters.category, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ContentHaloRunV1alpha1CategoryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ContentHaloRunV1alpha1CategoryApiFp(configuration) + return { + /** + * Create content.halo.run/v1alpha1/Category + * @param {ContentHaloRunV1alpha1CategoryApiCreatecontentHaloRunV1alpha1CategoryRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createcontentHaloRunV1alpha1Category(requestParameters: ContentHaloRunV1alpha1CategoryApiCreatecontentHaloRunV1alpha1CategoryRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createcontentHaloRunV1alpha1Category(requestParameters.category, options).then((request) => request(axios, basePath)); + }, + /** + * Delete content.halo.run/v1alpha1/Category + * @param {ContentHaloRunV1alpha1CategoryApiDeletecontentHaloRunV1alpha1CategoryRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletecontentHaloRunV1alpha1Category(requestParameters: ContentHaloRunV1alpha1CategoryApiDeletecontentHaloRunV1alpha1CategoryRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletecontentHaloRunV1alpha1Category(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get content.halo.run/v1alpha1/Category + * @param {ContentHaloRunV1alpha1CategoryApiGetcontentHaloRunV1alpha1CategoryRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getcontentHaloRunV1alpha1Category(requestParameters: ContentHaloRunV1alpha1CategoryApiGetcontentHaloRunV1alpha1CategoryRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getcontentHaloRunV1alpha1Category(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List content.halo.run/v1alpha1/Category + * @param {ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1CategoryRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listcontentHaloRunV1alpha1Category(requestParameters: ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1CategoryRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listcontentHaloRunV1alpha1Category(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update content.halo.run/v1alpha1/Category + * @param {ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1CategoryRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatecontentHaloRunV1alpha1Category(requestParameters: ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1CategoryRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatecontentHaloRunV1alpha1Category(requestParameters.name, requestParameters.category, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -606,12 +400,12 @@ export const ContentHaloRunV1alpha1CategoryApiFactory = function ( * @interface ContentHaloRunV1alpha1CategoryApiCreatecontentHaloRunV1alpha1CategoryRequest */ export interface ContentHaloRunV1alpha1CategoryApiCreatecontentHaloRunV1alpha1CategoryRequest { - /** - * Fresh category - * @type {Category} - * @memberof ContentHaloRunV1alpha1CategoryApiCreatecontentHaloRunV1alpha1Category - */ - readonly category?: Category; + /** + * Fresh category + * @type {Category} + * @memberof ContentHaloRunV1alpha1CategoryApiCreatecontentHaloRunV1alpha1Category + */ + readonly category?: Category } /** @@ -620,12 +414,12 @@ export interface ContentHaloRunV1alpha1CategoryApiCreatecontentHaloRunV1alpha1Ca * @interface ContentHaloRunV1alpha1CategoryApiDeletecontentHaloRunV1alpha1CategoryRequest */ export interface ContentHaloRunV1alpha1CategoryApiDeletecontentHaloRunV1alpha1CategoryRequest { - /** - * Name of category - * @type {string} - * @memberof ContentHaloRunV1alpha1CategoryApiDeletecontentHaloRunV1alpha1Category - */ - readonly name: string; + /** + * Name of category + * @type {string} + * @memberof ContentHaloRunV1alpha1CategoryApiDeletecontentHaloRunV1alpha1Category + */ + readonly name: string } /** @@ -634,12 +428,12 @@ export interface ContentHaloRunV1alpha1CategoryApiDeletecontentHaloRunV1alpha1Ca * @interface ContentHaloRunV1alpha1CategoryApiGetcontentHaloRunV1alpha1CategoryRequest */ export interface ContentHaloRunV1alpha1CategoryApiGetcontentHaloRunV1alpha1CategoryRequest { - /** - * Name of category - * @type {string} - * @memberof ContentHaloRunV1alpha1CategoryApiGetcontentHaloRunV1alpha1Category - */ - readonly name: string; + /** + * Name of category + * @type {string} + * @memberof ContentHaloRunV1alpha1CategoryApiGetcontentHaloRunV1alpha1Category + */ + readonly name: string } /** @@ -648,40 +442,40 @@ export interface ContentHaloRunV1alpha1CategoryApiGetcontentHaloRunV1alpha1Categ * @interface ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1CategoryRequest */ export interface ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1CategoryRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category + */ + readonly sort?: Array } /** @@ -690,19 +484,19 @@ export interface ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Cate * @interface ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1CategoryRequest */ export interface ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1CategoryRequest { - /** - * Name of category - * @type {string} - * @memberof ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1Category - */ - readonly name: string; + /** + * Name of category + * @type {string} + * @memberof ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1Category + */ + readonly name: string - /** - * Updated category - * @type {Category} - * @memberof ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1Category - */ - readonly category?: Category; + /** + * Updated category + * @type {Category} + * @memberof ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1Category + */ + readonly category?: Category } /** @@ -712,94 +506,59 @@ export interface ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1Ca * @extends {BaseAPI} */ export class ContentHaloRunV1alpha1CategoryApi extends BaseAPI { - /** - * Create content.halo.run/v1alpha1/Category - * @param {ContentHaloRunV1alpha1CategoryApiCreatecontentHaloRunV1alpha1CategoryRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1CategoryApi - */ - public createcontentHaloRunV1alpha1Category( - requestParameters: ContentHaloRunV1alpha1CategoryApiCreatecontentHaloRunV1alpha1CategoryRequest = {}, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1CategoryApiFp(this.configuration) - .createcontentHaloRunV1alpha1Category(requestParameters.category, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create content.halo.run/v1alpha1/Category + * @param {ContentHaloRunV1alpha1CategoryApiCreatecontentHaloRunV1alpha1CategoryRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1CategoryApi + */ + public createcontentHaloRunV1alpha1Category(requestParameters: ContentHaloRunV1alpha1CategoryApiCreatecontentHaloRunV1alpha1CategoryRequest = {}, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1CategoryApiFp(this.configuration).createcontentHaloRunV1alpha1Category(requestParameters.category, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete content.halo.run/v1alpha1/Category - * @param {ContentHaloRunV1alpha1CategoryApiDeletecontentHaloRunV1alpha1CategoryRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1CategoryApi - */ - public deletecontentHaloRunV1alpha1Category( - requestParameters: ContentHaloRunV1alpha1CategoryApiDeletecontentHaloRunV1alpha1CategoryRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1CategoryApiFp(this.configuration) - .deletecontentHaloRunV1alpha1Category(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete content.halo.run/v1alpha1/Category + * @param {ContentHaloRunV1alpha1CategoryApiDeletecontentHaloRunV1alpha1CategoryRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1CategoryApi + */ + public deletecontentHaloRunV1alpha1Category(requestParameters: ContentHaloRunV1alpha1CategoryApiDeletecontentHaloRunV1alpha1CategoryRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1CategoryApiFp(this.configuration).deletecontentHaloRunV1alpha1Category(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get content.halo.run/v1alpha1/Category - * @param {ContentHaloRunV1alpha1CategoryApiGetcontentHaloRunV1alpha1CategoryRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1CategoryApi - */ - public getcontentHaloRunV1alpha1Category( - requestParameters: ContentHaloRunV1alpha1CategoryApiGetcontentHaloRunV1alpha1CategoryRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1CategoryApiFp(this.configuration) - .getcontentHaloRunV1alpha1Category(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get content.halo.run/v1alpha1/Category + * @param {ContentHaloRunV1alpha1CategoryApiGetcontentHaloRunV1alpha1CategoryRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1CategoryApi + */ + public getcontentHaloRunV1alpha1Category(requestParameters: ContentHaloRunV1alpha1CategoryApiGetcontentHaloRunV1alpha1CategoryRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1CategoryApiFp(this.configuration).getcontentHaloRunV1alpha1Category(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List content.halo.run/v1alpha1/Category - * @param {ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1CategoryRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1CategoryApi - */ - public listcontentHaloRunV1alpha1Category( - requestParameters: ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1CategoryRequest = {}, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1CategoryApiFp(this.configuration) - .listcontentHaloRunV1alpha1Category( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List content.halo.run/v1alpha1/Category + * @param {ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1CategoryRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1CategoryApi + */ + public listcontentHaloRunV1alpha1Category(requestParameters: ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1CategoryRequest = {}, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1CategoryApiFp(this.configuration).listcontentHaloRunV1alpha1Category(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update content.halo.run/v1alpha1/Category - * @param {ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1CategoryRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1CategoryApi - */ - public updatecontentHaloRunV1alpha1Category( - requestParameters: ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1CategoryRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1CategoryApiFp(this.configuration) - .updatecontentHaloRunV1alpha1Category( - requestParameters.name, - requestParameters.category, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update content.halo.run/v1alpha1/Category + * @param {ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1CategoryRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1CategoryApi + */ + public updatecontentHaloRunV1alpha1Category(requestParameters: ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1CategoryRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1CategoryApiFp(this.configuration).updatecontentHaloRunV1alpha1Category(requestParameters.name, requestParameters.category, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/content-halo-run-v1alpha1-comment-api.ts b/ui/packages/api-client/src/api/content-halo-run-v1alpha1-comment-api.ts index 4f8ccea4b..bd055b69d 100644 --- a/ui/packages/api-client/src/api/content-halo-run-v1alpha1-comment-api.ts +++ b/ui/packages/api-client/src/api/content-halo-run-v1alpha1-comment-api.ts @@ -5,596 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Comment } from "../models"; +import { Comment } from '../models'; // @ts-ignore -import { CommentList } from "../models"; +import { CommentList } from '../models'; /** * ContentHaloRunV1alpha1CommentApi - axios parameter creator * @export */ -export const ContentHaloRunV1alpha1CommentApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create content.halo.run/v1alpha1/Comment - * @param {Comment} [comment] Fresh comment - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createcontentHaloRunV1alpha1Comment: async ( - comment?: Comment, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/content.halo.run/v1alpha1/comments`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ContentHaloRunV1alpha1CommentApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create content.halo.run/v1alpha1/Comment + * @param {Comment} [comment] Fresh comment + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createcontentHaloRunV1alpha1Comment: async (comment?: Comment, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/content.halo.run/v1alpha1/comments`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - comment, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete content.halo.run/v1alpha1/Comment - * @param {string} name Name of comment - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletecontentHaloRunV1alpha1Comment: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletecontentHaloRunV1alpha1Comment", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/comments/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(comment, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete content.halo.run/v1alpha1/Comment + * @param {string} name Name of comment + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletecontentHaloRunV1alpha1Comment: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletecontentHaloRunV1alpha1Comment', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/comments/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get content.halo.run/v1alpha1/Comment - * @param {string} name Name of comment - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getcontentHaloRunV1alpha1Comment: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getcontentHaloRunV1alpha1Comment", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/comments/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get content.halo.run/v1alpha1/Comment + * @param {string} name Name of comment + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getcontentHaloRunV1alpha1Comment: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getcontentHaloRunV1alpha1Comment', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/comments/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List content.halo.run/v1alpha1/Comment - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listcontentHaloRunV1alpha1Comment: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/content.halo.run/v1alpha1/comments`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List content.halo.run/v1alpha1/Comment + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listcontentHaloRunV1alpha1Comment: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/content.halo.run/v1alpha1/comments`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update content.halo.run/v1alpha1/Comment - * @param {string} name Name of comment - * @param {Comment} [comment] Updated comment - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatecontentHaloRunV1alpha1Comment: async ( - name: string, - comment?: Comment, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatecontentHaloRunV1alpha1Comment", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/comments/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update content.halo.run/v1alpha1/Comment + * @param {string} name Name of comment + * @param {Comment} [comment] Updated comment + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatecontentHaloRunV1alpha1Comment: async (name: string, comment?: Comment, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatecontentHaloRunV1alpha1Comment', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/comments/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - comment, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(comment, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ContentHaloRunV1alpha1CommentApi - functional programming interface * @export */ -export const ContentHaloRunV1alpha1CommentApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ContentHaloRunV1alpha1CommentApiAxiosParamCreator(configuration); - return { - /** - * Create content.halo.run/v1alpha1/Comment - * @param {Comment} [comment] Fresh comment - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createcontentHaloRunV1alpha1Comment( - comment?: Comment, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Comment( - comment, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete content.halo.run/v1alpha1/Comment - * @param {string} name Name of comment - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletecontentHaloRunV1alpha1Comment( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Comment( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get content.halo.run/v1alpha1/Comment - * @param {string} name Name of comment - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getcontentHaloRunV1alpha1Comment( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Comment( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List content.halo.run/v1alpha1/Comment - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listcontentHaloRunV1alpha1Comment( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Comment( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update content.halo.run/v1alpha1/Comment - * @param {string} name Name of comment - * @param {Comment} [comment] Updated comment - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatecontentHaloRunV1alpha1Comment( - name: string, - comment?: Comment, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Comment( - name, - comment, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ContentHaloRunV1alpha1CommentApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ContentHaloRunV1alpha1CommentApiAxiosParamCreator(configuration) + return { + /** + * Create content.halo.run/v1alpha1/Comment + * @param {Comment} [comment] Fresh comment + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createcontentHaloRunV1alpha1Comment(comment?: Comment, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Comment(comment, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1CommentApi.createcontentHaloRunV1alpha1Comment']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete content.halo.run/v1alpha1/Comment + * @param {string} name Name of comment + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletecontentHaloRunV1alpha1Comment(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Comment(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1CommentApi.deletecontentHaloRunV1alpha1Comment']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get content.halo.run/v1alpha1/Comment + * @param {string} name Name of comment + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getcontentHaloRunV1alpha1Comment(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Comment(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1CommentApi.getcontentHaloRunV1alpha1Comment']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List content.halo.run/v1alpha1/Comment + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listcontentHaloRunV1alpha1Comment(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Comment(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1CommentApi.listcontentHaloRunV1alpha1Comment']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update content.halo.run/v1alpha1/Comment + * @param {string} name Name of comment + * @param {Comment} [comment] Updated comment + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatecontentHaloRunV1alpha1Comment(name: string, comment?: Comment, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Comment(name, comment, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1CommentApi.updatecontentHaloRunV1alpha1Comment']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ContentHaloRunV1alpha1CommentApi - factory interface * @export */ -export const ContentHaloRunV1alpha1CommentApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ContentHaloRunV1alpha1CommentApiFp(configuration); - return { - /** - * Create content.halo.run/v1alpha1/Comment - * @param {ContentHaloRunV1alpha1CommentApiCreatecontentHaloRunV1alpha1CommentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createcontentHaloRunV1alpha1Comment( - requestParameters: ContentHaloRunV1alpha1CommentApiCreatecontentHaloRunV1alpha1CommentRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createcontentHaloRunV1alpha1Comment(requestParameters.comment, options) - .then((request) => request(axios, basePath)); - }, - /** - * Delete content.halo.run/v1alpha1/Comment - * @param {ContentHaloRunV1alpha1CommentApiDeletecontentHaloRunV1alpha1CommentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletecontentHaloRunV1alpha1Comment( - requestParameters: ContentHaloRunV1alpha1CommentApiDeletecontentHaloRunV1alpha1CommentRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletecontentHaloRunV1alpha1Comment(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get content.halo.run/v1alpha1/Comment - * @param {ContentHaloRunV1alpha1CommentApiGetcontentHaloRunV1alpha1CommentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getcontentHaloRunV1alpha1Comment( - requestParameters: ContentHaloRunV1alpha1CommentApiGetcontentHaloRunV1alpha1CommentRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getcontentHaloRunV1alpha1Comment(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List content.halo.run/v1alpha1/Comment - * @param {ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1CommentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listcontentHaloRunV1alpha1Comment( - requestParameters: ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1CommentRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listcontentHaloRunV1alpha1Comment( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update content.halo.run/v1alpha1/Comment - * @param {ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1CommentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatecontentHaloRunV1alpha1Comment( - requestParameters: ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1CommentRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatecontentHaloRunV1alpha1Comment( - requestParameters.name, - requestParameters.comment, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ContentHaloRunV1alpha1CommentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ContentHaloRunV1alpha1CommentApiFp(configuration) + return { + /** + * Create content.halo.run/v1alpha1/Comment + * @param {ContentHaloRunV1alpha1CommentApiCreatecontentHaloRunV1alpha1CommentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createcontentHaloRunV1alpha1Comment(requestParameters: ContentHaloRunV1alpha1CommentApiCreatecontentHaloRunV1alpha1CommentRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createcontentHaloRunV1alpha1Comment(requestParameters.comment, options).then((request) => request(axios, basePath)); + }, + /** + * Delete content.halo.run/v1alpha1/Comment + * @param {ContentHaloRunV1alpha1CommentApiDeletecontentHaloRunV1alpha1CommentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletecontentHaloRunV1alpha1Comment(requestParameters: ContentHaloRunV1alpha1CommentApiDeletecontentHaloRunV1alpha1CommentRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletecontentHaloRunV1alpha1Comment(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get content.halo.run/v1alpha1/Comment + * @param {ContentHaloRunV1alpha1CommentApiGetcontentHaloRunV1alpha1CommentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getcontentHaloRunV1alpha1Comment(requestParameters: ContentHaloRunV1alpha1CommentApiGetcontentHaloRunV1alpha1CommentRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getcontentHaloRunV1alpha1Comment(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List content.halo.run/v1alpha1/Comment + * @param {ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1CommentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listcontentHaloRunV1alpha1Comment(requestParameters: ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1CommentRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listcontentHaloRunV1alpha1Comment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update content.halo.run/v1alpha1/Comment + * @param {ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1CommentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatecontentHaloRunV1alpha1Comment(requestParameters: ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1CommentRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatecontentHaloRunV1alpha1Comment(requestParameters.name, requestParameters.comment, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -603,12 +400,12 @@ export const ContentHaloRunV1alpha1CommentApiFactory = function ( * @interface ContentHaloRunV1alpha1CommentApiCreatecontentHaloRunV1alpha1CommentRequest */ export interface ContentHaloRunV1alpha1CommentApiCreatecontentHaloRunV1alpha1CommentRequest { - /** - * Fresh comment - * @type {Comment} - * @memberof ContentHaloRunV1alpha1CommentApiCreatecontentHaloRunV1alpha1Comment - */ - readonly comment?: Comment; + /** + * Fresh comment + * @type {Comment} + * @memberof ContentHaloRunV1alpha1CommentApiCreatecontentHaloRunV1alpha1Comment + */ + readonly comment?: Comment } /** @@ -617,12 +414,12 @@ export interface ContentHaloRunV1alpha1CommentApiCreatecontentHaloRunV1alpha1Com * @interface ContentHaloRunV1alpha1CommentApiDeletecontentHaloRunV1alpha1CommentRequest */ export interface ContentHaloRunV1alpha1CommentApiDeletecontentHaloRunV1alpha1CommentRequest { - /** - * Name of comment - * @type {string} - * @memberof ContentHaloRunV1alpha1CommentApiDeletecontentHaloRunV1alpha1Comment - */ - readonly name: string; + /** + * Name of comment + * @type {string} + * @memberof ContentHaloRunV1alpha1CommentApiDeletecontentHaloRunV1alpha1Comment + */ + readonly name: string } /** @@ -631,12 +428,12 @@ export interface ContentHaloRunV1alpha1CommentApiDeletecontentHaloRunV1alpha1Com * @interface ContentHaloRunV1alpha1CommentApiGetcontentHaloRunV1alpha1CommentRequest */ export interface ContentHaloRunV1alpha1CommentApiGetcontentHaloRunV1alpha1CommentRequest { - /** - * Name of comment - * @type {string} - * @memberof ContentHaloRunV1alpha1CommentApiGetcontentHaloRunV1alpha1Comment - */ - readonly name: string; + /** + * Name of comment + * @type {string} + * @memberof ContentHaloRunV1alpha1CommentApiGetcontentHaloRunV1alpha1Comment + */ + readonly name: string } /** @@ -645,40 +442,40 @@ export interface ContentHaloRunV1alpha1CommentApiGetcontentHaloRunV1alpha1Commen * @interface ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1CommentRequest */ export interface ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1CommentRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment + */ + readonly sort?: Array } /** @@ -687,19 +484,19 @@ export interface ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comme * @interface ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1CommentRequest */ export interface ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1CommentRequest { - /** - * Name of comment - * @type {string} - * @memberof ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1Comment - */ - readonly name: string; + /** + * Name of comment + * @type {string} + * @memberof ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1Comment + */ + readonly name: string - /** - * Updated comment - * @type {Comment} - * @memberof ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1Comment - */ - readonly comment?: Comment; + /** + * Updated comment + * @type {Comment} + * @memberof ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1Comment + */ + readonly comment?: Comment } /** @@ -709,94 +506,59 @@ export interface ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1Com * @extends {BaseAPI} */ export class ContentHaloRunV1alpha1CommentApi extends BaseAPI { - /** - * Create content.halo.run/v1alpha1/Comment - * @param {ContentHaloRunV1alpha1CommentApiCreatecontentHaloRunV1alpha1CommentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1CommentApi - */ - public createcontentHaloRunV1alpha1Comment( - requestParameters: ContentHaloRunV1alpha1CommentApiCreatecontentHaloRunV1alpha1CommentRequest = {}, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1CommentApiFp(this.configuration) - .createcontentHaloRunV1alpha1Comment(requestParameters.comment, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create content.halo.run/v1alpha1/Comment + * @param {ContentHaloRunV1alpha1CommentApiCreatecontentHaloRunV1alpha1CommentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1CommentApi + */ + public createcontentHaloRunV1alpha1Comment(requestParameters: ContentHaloRunV1alpha1CommentApiCreatecontentHaloRunV1alpha1CommentRequest = {}, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1CommentApiFp(this.configuration).createcontentHaloRunV1alpha1Comment(requestParameters.comment, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete content.halo.run/v1alpha1/Comment - * @param {ContentHaloRunV1alpha1CommentApiDeletecontentHaloRunV1alpha1CommentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1CommentApi - */ - public deletecontentHaloRunV1alpha1Comment( - requestParameters: ContentHaloRunV1alpha1CommentApiDeletecontentHaloRunV1alpha1CommentRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1CommentApiFp(this.configuration) - .deletecontentHaloRunV1alpha1Comment(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete content.halo.run/v1alpha1/Comment + * @param {ContentHaloRunV1alpha1CommentApiDeletecontentHaloRunV1alpha1CommentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1CommentApi + */ + public deletecontentHaloRunV1alpha1Comment(requestParameters: ContentHaloRunV1alpha1CommentApiDeletecontentHaloRunV1alpha1CommentRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1CommentApiFp(this.configuration).deletecontentHaloRunV1alpha1Comment(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get content.halo.run/v1alpha1/Comment - * @param {ContentHaloRunV1alpha1CommentApiGetcontentHaloRunV1alpha1CommentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1CommentApi - */ - public getcontentHaloRunV1alpha1Comment( - requestParameters: ContentHaloRunV1alpha1CommentApiGetcontentHaloRunV1alpha1CommentRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1CommentApiFp(this.configuration) - .getcontentHaloRunV1alpha1Comment(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get content.halo.run/v1alpha1/Comment + * @param {ContentHaloRunV1alpha1CommentApiGetcontentHaloRunV1alpha1CommentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1CommentApi + */ + public getcontentHaloRunV1alpha1Comment(requestParameters: ContentHaloRunV1alpha1CommentApiGetcontentHaloRunV1alpha1CommentRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1CommentApiFp(this.configuration).getcontentHaloRunV1alpha1Comment(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List content.halo.run/v1alpha1/Comment - * @param {ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1CommentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1CommentApi - */ - public listcontentHaloRunV1alpha1Comment( - requestParameters: ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1CommentRequest = {}, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1CommentApiFp(this.configuration) - .listcontentHaloRunV1alpha1Comment( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List content.halo.run/v1alpha1/Comment + * @param {ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1CommentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1CommentApi + */ + public listcontentHaloRunV1alpha1Comment(requestParameters: ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1CommentRequest = {}, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1CommentApiFp(this.configuration).listcontentHaloRunV1alpha1Comment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update content.halo.run/v1alpha1/Comment - * @param {ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1CommentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1CommentApi - */ - public updatecontentHaloRunV1alpha1Comment( - requestParameters: ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1CommentRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1CommentApiFp(this.configuration) - .updatecontentHaloRunV1alpha1Comment( - requestParameters.name, - requestParameters.comment, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update content.halo.run/v1alpha1/Comment + * @param {ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1CommentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1CommentApi + */ + public updatecontentHaloRunV1alpha1Comment(requestParameters: ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1CommentRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1CommentApiFp(this.configuration).updatecontentHaloRunV1alpha1Comment(requestParameters.name, requestParameters.comment, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/content-halo-run-v1alpha1-post-api.ts b/ui/packages/api-client/src/api/content-halo-run-v1alpha1-post-api.ts index 440756f00..4629cc6fa 100644 --- a/ui/packages/api-client/src/api/content-halo-run-v1alpha1-post-api.ts +++ b/ui/packages/api-client/src/api/content-halo-run-v1alpha1-post-api.ts @@ -5,596 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Post } from "../models"; +import { Post } from '../models'; // @ts-ignore -import { PostList } from "../models"; +import { PostList } from '../models'; /** * ContentHaloRunV1alpha1PostApi - axios parameter creator * @export */ -export const ContentHaloRunV1alpha1PostApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create content.halo.run/v1alpha1/Post - * @param {Post} [post] Fresh post - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createcontentHaloRunV1alpha1Post: async ( - post?: Post, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/content.halo.run/v1alpha1/posts`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ContentHaloRunV1alpha1PostApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create content.halo.run/v1alpha1/Post + * @param {Post} [post] Fresh post + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createcontentHaloRunV1alpha1Post: async (post?: Post, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/content.halo.run/v1alpha1/posts`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - post, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete content.halo.run/v1alpha1/Post - * @param {string} name Name of post - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletecontentHaloRunV1alpha1Post: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletecontentHaloRunV1alpha1Post", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/posts/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(post, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete content.halo.run/v1alpha1/Post + * @param {string} name Name of post + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletecontentHaloRunV1alpha1Post: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletecontentHaloRunV1alpha1Post', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/posts/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get content.halo.run/v1alpha1/Post - * @param {string} name Name of post - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getcontentHaloRunV1alpha1Post: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getcontentHaloRunV1alpha1Post", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/posts/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get content.halo.run/v1alpha1/Post + * @param {string} name Name of post + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getcontentHaloRunV1alpha1Post: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getcontentHaloRunV1alpha1Post', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/posts/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List content.halo.run/v1alpha1/Post - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listcontentHaloRunV1alpha1Post: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/content.halo.run/v1alpha1/posts`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List content.halo.run/v1alpha1/Post + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listcontentHaloRunV1alpha1Post: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/content.halo.run/v1alpha1/posts`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update content.halo.run/v1alpha1/Post - * @param {string} name Name of post - * @param {Post} [post] Updated post - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatecontentHaloRunV1alpha1Post: async ( - name: string, - post?: Post, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatecontentHaloRunV1alpha1Post", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/posts/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update content.halo.run/v1alpha1/Post + * @param {string} name Name of post + * @param {Post} [post] Updated post + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatecontentHaloRunV1alpha1Post: async (name: string, post?: Post, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatecontentHaloRunV1alpha1Post', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/posts/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - post, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(post, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ContentHaloRunV1alpha1PostApi - functional programming interface * @export */ -export const ContentHaloRunV1alpha1PostApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ContentHaloRunV1alpha1PostApiAxiosParamCreator(configuration); - return { - /** - * Create content.halo.run/v1alpha1/Post - * @param {Post} [post] Fresh post - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createcontentHaloRunV1alpha1Post( - post?: Post, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Post( - post, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete content.halo.run/v1alpha1/Post - * @param {string} name Name of post - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletecontentHaloRunV1alpha1Post( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Post( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get content.halo.run/v1alpha1/Post - * @param {string} name Name of post - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getcontentHaloRunV1alpha1Post( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Post( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List content.halo.run/v1alpha1/Post - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listcontentHaloRunV1alpha1Post( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Post( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update content.halo.run/v1alpha1/Post - * @param {string} name Name of post - * @param {Post} [post] Updated post - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatecontentHaloRunV1alpha1Post( - name: string, - post?: Post, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Post( - name, - post, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ContentHaloRunV1alpha1PostApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ContentHaloRunV1alpha1PostApiAxiosParamCreator(configuration) + return { + /** + * Create content.halo.run/v1alpha1/Post + * @param {Post} [post] Fresh post + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createcontentHaloRunV1alpha1Post(post?: Post, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Post(post, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1PostApi.createcontentHaloRunV1alpha1Post']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete content.halo.run/v1alpha1/Post + * @param {string} name Name of post + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletecontentHaloRunV1alpha1Post(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Post(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1PostApi.deletecontentHaloRunV1alpha1Post']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get content.halo.run/v1alpha1/Post + * @param {string} name Name of post + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getcontentHaloRunV1alpha1Post(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Post(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1PostApi.getcontentHaloRunV1alpha1Post']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List content.halo.run/v1alpha1/Post + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listcontentHaloRunV1alpha1Post(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Post(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1PostApi.listcontentHaloRunV1alpha1Post']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update content.halo.run/v1alpha1/Post + * @param {string} name Name of post + * @param {Post} [post] Updated post + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatecontentHaloRunV1alpha1Post(name: string, post?: Post, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Post(name, post, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1PostApi.updatecontentHaloRunV1alpha1Post']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ContentHaloRunV1alpha1PostApi - factory interface * @export */ -export const ContentHaloRunV1alpha1PostApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ContentHaloRunV1alpha1PostApiFp(configuration); - return { - /** - * Create content.halo.run/v1alpha1/Post - * @param {ContentHaloRunV1alpha1PostApiCreatecontentHaloRunV1alpha1PostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createcontentHaloRunV1alpha1Post( - requestParameters: ContentHaloRunV1alpha1PostApiCreatecontentHaloRunV1alpha1PostRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createcontentHaloRunV1alpha1Post(requestParameters.post, options) - .then((request) => request(axios, basePath)); - }, - /** - * Delete content.halo.run/v1alpha1/Post - * @param {ContentHaloRunV1alpha1PostApiDeletecontentHaloRunV1alpha1PostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletecontentHaloRunV1alpha1Post( - requestParameters: ContentHaloRunV1alpha1PostApiDeletecontentHaloRunV1alpha1PostRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletecontentHaloRunV1alpha1Post(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get content.halo.run/v1alpha1/Post - * @param {ContentHaloRunV1alpha1PostApiGetcontentHaloRunV1alpha1PostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getcontentHaloRunV1alpha1Post( - requestParameters: ContentHaloRunV1alpha1PostApiGetcontentHaloRunV1alpha1PostRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getcontentHaloRunV1alpha1Post(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List content.halo.run/v1alpha1/Post - * @param {ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1PostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listcontentHaloRunV1alpha1Post( - requestParameters: ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1PostRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listcontentHaloRunV1alpha1Post( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update content.halo.run/v1alpha1/Post - * @param {ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1PostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatecontentHaloRunV1alpha1Post( - requestParameters: ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1PostRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatecontentHaloRunV1alpha1Post( - requestParameters.name, - requestParameters.post, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ContentHaloRunV1alpha1PostApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ContentHaloRunV1alpha1PostApiFp(configuration) + return { + /** + * Create content.halo.run/v1alpha1/Post + * @param {ContentHaloRunV1alpha1PostApiCreatecontentHaloRunV1alpha1PostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createcontentHaloRunV1alpha1Post(requestParameters: ContentHaloRunV1alpha1PostApiCreatecontentHaloRunV1alpha1PostRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createcontentHaloRunV1alpha1Post(requestParameters.post, options).then((request) => request(axios, basePath)); + }, + /** + * Delete content.halo.run/v1alpha1/Post + * @param {ContentHaloRunV1alpha1PostApiDeletecontentHaloRunV1alpha1PostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletecontentHaloRunV1alpha1Post(requestParameters: ContentHaloRunV1alpha1PostApiDeletecontentHaloRunV1alpha1PostRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletecontentHaloRunV1alpha1Post(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get content.halo.run/v1alpha1/Post + * @param {ContentHaloRunV1alpha1PostApiGetcontentHaloRunV1alpha1PostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getcontentHaloRunV1alpha1Post(requestParameters: ContentHaloRunV1alpha1PostApiGetcontentHaloRunV1alpha1PostRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getcontentHaloRunV1alpha1Post(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List content.halo.run/v1alpha1/Post + * @param {ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1PostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listcontentHaloRunV1alpha1Post(requestParameters: ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1PostRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listcontentHaloRunV1alpha1Post(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update content.halo.run/v1alpha1/Post + * @param {ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1PostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatecontentHaloRunV1alpha1Post(requestParameters: ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1PostRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatecontentHaloRunV1alpha1Post(requestParameters.name, requestParameters.post, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -603,12 +400,12 @@ export const ContentHaloRunV1alpha1PostApiFactory = function ( * @interface ContentHaloRunV1alpha1PostApiCreatecontentHaloRunV1alpha1PostRequest */ export interface ContentHaloRunV1alpha1PostApiCreatecontentHaloRunV1alpha1PostRequest { - /** - * Fresh post - * @type {Post} - * @memberof ContentHaloRunV1alpha1PostApiCreatecontentHaloRunV1alpha1Post - */ - readonly post?: Post; + /** + * Fresh post + * @type {Post} + * @memberof ContentHaloRunV1alpha1PostApiCreatecontentHaloRunV1alpha1Post + */ + readonly post?: Post } /** @@ -617,12 +414,12 @@ export interface ContentHaloRunV1alpha1PostApiCreatecontentHaloRunV1alpha1PostRe * @interface ContentHaloRunV1alpha1PostApiDeletecontentHaloRunV1alpha1PostRequest */ export interface ContentHaloRunV1alpha1PostApiDeletecontentHaloRunV1alpha1PostRequest { - /** - * Name of post - * @type {string} - * @memberof ContentHaloRunV1alpha1PostApiDeletecontentHaloRunV1alpha1Post - */ - readonly name: string; + /** + * Name of post + * @type {string} + * @memberof ContentHaloRunV1alpha1PostApiDeletecontentHaloRunV1alpha1Post + */ + readonly name: string } /** @@ -631,12 +428,12 @@ export interface ContentHaloRunV1alpha1PostApiDeletecontentHaloRunV1alpha1PostRe * @interface ContentHaloRunV1alpha1PostApiGetcontentHaloRunV1alpha1PostRequest */ export interface ContentHaloRunV1alpha1PostApiGetcontentHaloRunV1alpha1PostRequest { - /** - * Name of post - * @type {string} - * @memberof ContentHaloRunV1alpha1PostApiGetcontentHaloRunV1alpha1Post - */ - readonly name: string; + /** + * Name of post + * @type {string} + * @memberof ContentHaloRunV1alpha1PostApiGetcontentHaloRunV1alpha1Post + */ + readonly name: string } /** @@ -645,40 +442,40 @@ export interface ContentHaloRunV1alpha1PostApiGetcontentHaloRunV1alpha1PostReque * @interface ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1PostRequest */ export interface ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1PostRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post + */ + readonly sort?: Array } /** @@ -687,19 +484,19 @@ export interface ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1PostRequ * @interface ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1PostRequest */ export interface ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1PostRequest { - /** - * Name of post - * @type {string} - * @memberof ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1Post - */ - readonly name: string; + /** + * Name of post + * @type {string} + * @memberof ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1Post + */ + readonly name: string - /** - * Updated post - * @type {Post} - * @memberof ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1Post - */ - readonly post?: Post; + /** + * Updated post + * @type {Post} + * @memberof ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1Post + */ + readonly post?: Post } /** @@ -709,94 +506,59 @@ export interface ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1PostRe * @extends {BaseAPI} */ export class ContentHaloRunV1alpha1PostApi extends BaseAPI { - /** - * Create content.halo.run/v1alpha1/Post - * @param {ContentHaloRunV1alpha1PostApiCreatecontentHaloRunV1alpha1PostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1PostApi - */ - public createcontentHaloRunV1alpha1Post( - requestParameters: ContentHaloRunV1alpha1PostApiCreatecontentHaloRunV1alpha1PostRequest = {}, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1PostApiFp(this.configuration) - .createcontentHaloRunV1alpha1Post(requestParameters.post, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create content.halo.run/v1alpha1/Post + * @param {ContentHaloRunV1alpha1PostApiCreatecontentHaloRunV1alpha1PostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1PostApi + */ + public createcontentHaloRunV1alpha1Post(requestParameters: ContentHaloRunV1alpha1PostApiCreatecontentHaloRunV1alpha1PostRequest = {}, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1PostApiFp(this.configuration).createcontentHaloRunV1alpha1Post(requestParameters.post, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete content.halo.run/v1alpha1/Post - * @param {ContentHaloRunV1alpha1PostApiDeletecontentHaloRunV1alpha1PostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1PostApi - */ - public deletecontentHaloRunV1alpha1Post( - requestParameters: ContentHaloRunV1alpha1PostApiDeletecontentHaloRunV1alpha1PostRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1PostApiFp(this.configuration) - .deletecontentHaloRunV1alpha1Post(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete content.halo.run/v1alpha1/Post + * @param {ContentHaloRunV1alpha1PostApiDeletecontentHaloRunV1alpha1PostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1PostApi + */ + public deletecontentHaloRunV1alpha1Post(requestParameters: ContentHaloRunV1alpha1PostApiDeletecontentHaloRunV1alpha1PostRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1PostApiFp(this.configuration).deletecontentHaloRunV1alpha1Post(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get content.halo.run/v1alpha1/Post - * @param {ContentHaloRunV1alpha1PostApiGetcontentHaloRunV1alpha1PostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1PostApi - */ - public getcontentHaloRunV1alpha1Post( - requestParameters: ContentHaloRunV1alpha1PostApiGetcontentHaloRunV1alpha1PostRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1PostApiFp(this.configuration) - .getcontentHaloRunV1alpha1Post(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get content.halo.run/v1alpha1/Post + * @param {ContentHaloRunV1alpha1PostApiGetcontentHaloRunV1alpha1PostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1PostApi + */ + public getcontentHaloRunV1alpha1Post(requestParameters: ContentHaloRunV1alpha1PostApiGetcontentHaloRunV1alpha1PostRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1PostApiFp(this.configuration).getcontentHaloRunV1alpha1Post(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List content.halo.run/v1alpha1/Post - * @param {ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1PostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1PostApi - */ - public listcontentHaloRunV1alpha1Post( - requestParameters: ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1PostRequest = {}, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1PostApiFp(this.configuration) - .listcontentHaloRunV1alpha1Post( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List content.halo.run/v1alpha1/Post + * @param {ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1PostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1PostApi + */ + public listcontentHaloRunV1alpha1Post(requestParameters: ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1PostRequest = {}, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1PostApiFp(this.configuration).listcontentHaloRunV1alpha1Post(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update content.halo.run/v1alpha1/Post - * @param {ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1PostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1PostApi - */ - public updatecontentHaloRunV1alpha1Post( - requestParameters: ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1PostRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1PostApiFp(this.configuration) - .updatecontentHaloRunV1alpha1Post( - requestParameters.name, - requestParameters.post, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update content.halo.run/v1alpha1/Post + * @param {ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1PostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1PostApi + */ + public updatecontentHaloRunV1alpha1Post(requestParameters: ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1PostRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1PostApiFp(this.configuration).updatecontentHaloRunV1alpha1Post(requestParameters.name, requestParameters.post, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/content-halo-run-v1alpha1-reply-api.ts b/ui/packages/api-client/src/api/content-halo-run-v1alpha1-reply-api.ts index 8cd0c2b0c..f186e4691 100644 --- a/ui/packages/api-client/src/api/content-halo-run-v1alpha1-reply-api.ts +++ b/ui/packages/api-client/src/api/content-halo-run-v1alpha1-reply-api.ts @@ -5,596 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Reply } from "../models"; +import { Reply } from '../models'; // @ts-ignore -import { ReplyList } from "../models"; +import { ReplyList } from '../models'; /** * ContentHaloRunV1alpha1ReplyApi - axios parameter creator * @export */ -export const ContentHaloRunV1alpha1ReplyApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create content.halo.run/v1alpha1/Reply - * @param {Reply} [reply] Fresh reply - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createcontentHaloRunV1alpha1Reply: async ( - reply?: Reply, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/content.halo.run/v1alpha1/replies`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ContentHaloRunV1alpha1ReplyApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create content.halo.run/v1alpha1/Reply + * @param {Reply} [reply] Fresh reply + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createcontentHaloRunV1alpha1Reply: async (reply?: Reply, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/content.halo.run/v1alpha1/replies`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - reply, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete content.halo.run/v1alpha1/Reply - * @param {string} name Name of reply - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletecontentHaloRunV1alpha1Reply: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletecontentHaloRunV1alpha1Reply", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/replies/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(reply, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete content.halo.run/v1alpha1/Reply + * @param {string} name Name of reply + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletecontentHaloRunV1alpha1Reply: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletecontentHaloRunV1alpha1Reply', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/replies/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get content.halo.run/v1alpha1/Reply - * @param {string} name Name of reply - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getcontentHaloRunV1alpha1Reply: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getcontentHaloRunV1alpha1Reply", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/replies/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get content.halo.run/v1alpha1/Reply + * @param {string} name Name of reply + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getcontentHaloRunV1alpha1Reply: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getcontentHaloRunV1alpha1Reply', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/replies/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List content.halo.run/v1alpha1/Reply - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listcontentHaloRunV1alpha1Reply: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/content.halo.run/v1alpha1/replies`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List content.halo.run/v1alpha1/Reply + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listcontentHaloRunV1alpha1Reply: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/content.halo.run/v1alpha1/replies`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update content.halo.run/v1alpha1/Reply - * @param {string} name Name of reply - * @param {Reply} [reply] Updated reply - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatecontentHaloRunV1alpha1Reply: async ( - name: string, - reply?: Reply, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatecontentHaloRunV1alpha1Reply", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/replies/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update content.halo.run/v1alpha1/Reply + * @param {string} name Name of reply + * @param {Reply} [reply] Updated reply + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatecontentHaloRunV1alpha1Reply: async (name: string, reply?: Reply, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatecontentHaloRunV1alpha1Reply', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/replies/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - reply, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(reply, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ContentHaloRunV1alpha1ReplyApi - functional programming interface * @export */ -export const ContentHaloRunV1alpha1ReplyApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ContentHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration); - return { - /** - * Create content.halo.run/v1alpha1/Reply - * @param {Reply} [reply] Fresh reply - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createcontentHaloRunV1alpha1Reply( - reply?: Reply, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Reply( - reply, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete content.halo.run/v1alpha1/Reply - * @param {string} name Name of reply - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletecontentHaloRunV1alpha1Reply( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Reply( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get content.halo.run/v1alpha1/Reply - * @param {string} name Name of reply - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getcontentHaloRunV1alpha1Reply( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Reply( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List content.halo.run/v1alpha1/Reply - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listcontentHaloRunV1alpha1Reply( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Reply( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update content.halo.run/v1alpha1/Reply - * @param {string} name Name of reply - * @param {Reply} [reply] Updated reply - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatecontentHaloRunV1alpha1Reply( - name: string, - reply?: Reply, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Reply( - name, - reply, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ContentHaloRunV1alpha1ReplyApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ContentHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration) + return { + /** + * Create content.halo.run/v1alpha1/Reply + * @param {Reply} [reply] Fresh reply + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createcontentHaloRunV1alpha1Reply(reply?: Reply, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Reply(reply, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1ReplyApi.createcontentHaloRunV1alpha1Reply']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete content.halo.run/v1alpha1/Reply + * @param {string} name Name of reply + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletecontentHaloRunV1alpha1Reply(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Reply(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1ReplyApi.deletecontentHaloRunV1alpha1Reply']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get content.halo.run/v1alpha1/Reply + * @param {string} name Name of reply + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getcontentHaloRunV1alpha1Reply(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Reply(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1ReplyApi.getcontentHaloRunV1alpha1Reply']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List content.halo.run/v1alpha1/Reply + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listcontentHaloRunV1alpha1Reply(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Reply(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1ReplyApi.listcontentHaloRunV1alpha1Reply']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update content.halo.run/v1alpha1/Reply + * @param {string} name Name of reply + * @param {Reply} [reply] Updated reply + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatecontentHaloRunV1alpha1Reply(name: string, reply?: Reply, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Reply(name, reply, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1ReplyApi.updatecontentHaloRunV1alpha1Reply']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ContentHaloRunV1alpha1ReplyApi - factory interface * @export */ -export const ContentHaloRunV1alpha1ReplyApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ContentHaloRunV1alpha1ReplyApiFp(configuration); - return { - /** - * Create content.halo.run/v1alpha1/Reply - * @param {ContentHaloRunV1alpha1ReplyApiCreatecontentHaloRunV1alpha1ReplyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createcontentHaloRunV1alpha1Reply( - requestParameters: ContentHaloRunV1alpha1ReplyApiCreatecontentHaloRunV1alpha1ReplyRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createcontentHaloRunV1alpha1Reply(requestParameters.reply, options) - .then((request) => request(axios, basePath)); - }, - /** - * Delete content.halo.run/v1alpha1/Reply - * @param {ContentHaloRunV1alpha1ReplyApiDeletecontentHaloRunV1alpha1ReplyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletecontentHaloRunV1alpha1Reply( - requestParameters: ContentHaloRunV1alpha1ReplyApiDeletecontentHaloRunV1alpha1ReplyRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletecontentHaloRunV1alpha1Reply(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get content.halo.run/v1alpha1/Reply - * @param {ContentHaloRunV1alpha1ReplyApiGetcontentHaloRunV1alpha1ReplyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getcontentHaloRunV1alpha1Reply( - requestParameters: ContentHaloRunV1alpha1ReplyApiGetcontentHaloRunV1alpha1ReplyRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getcontentHaloRunV1alpha1Reply(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List content.halo.run/v1alpha1/Reply - * @param {ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1ReplyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listcontentHaloRunV1alpha1Reply( - requestParameters: ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1ReplyRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listcontentHaloRunV1alpha1Reply( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update content.halo.run/v1alpha1/Reply - * @param {ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1ReplyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatecontentHaloRunV1alpha1Reply( - requestParameters: ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1ReplyRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatecontentHaloRunV1alpha1Reply( - requestParameters.name, - requestParameters.reply, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ContentHaloRunV1alpha1ReplyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ContentHaloRunV1alpha1ReplyApiFp(configuration) + return { + /** + * Create content.halo.run/v1alpha1/Reply + * @param {ContentHaloRunV1alpha1ReplyApiCreatecontentHaloRunV1alpha1ReplyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createcontentHaloRunV1alpha1Reply(requestParameters: ContentHaloRunV1alpha1ReplyApiCreatecontentHaloRunV1alpha1ReplyRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createcontentHaloRunV1alpha1Reply(requestParameters.reply, options).then((request) => request(axios, basePath)); + }, + /** + * Delete content.halo.run/v1alpha1/Reply + * @param {ContentHaloRunV1alpha1ReplyApiDeletecontentHaloRunV1alpha1ReplyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletecontentHaloRunV1alpha1Reply(requestParameters: ContentHaloRunV1alpha1ReplyApiDeletecontentHaloRunV1alpha1ReplyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletecontentHaloRunV1alpha1Reply(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get content.halo.run/v1alpha1/Reply + * @param {ContentHaloRunV1alpha1ReplyApiGetcontentHaloRunV1alpha1ReplyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getcontentHaloRunV1alpha1Reply(requestParameters: ContentHaloRunV1alpha1ReplyApiGetcontentHaloRunV1alpha1ReplyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getcontentHaloRunV1alpha1Reply(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List content.halo.run/v1alpha1/Reply + * @param {ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1ReplyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listcontentHaloRunV1alpha1Reply(requestParameters: ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1ReplyRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listcontentHaloRunV1alpha1Reply(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update content.halo.run/v1alpha1/Reply + * @param {ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1ReplyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatecontentHaloRunV1alpha1Reply(requestParameters: ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1ReplyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatecontentHaloRunV1alpha1Reply(requestParameters.name, requestParameters.reply, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -603,12 +400,12 @@ export const ContentHaloRunV1alpha1ReplyApiFactory = function ( * @interface ContentHaloRunV1alpha1ReplyApiCreatecontentHaloRunV1alpha1ReplyRequest */ export interface ContentHaloRunV1alpha1ReplyApiCreatecontentHaloRunV1alpha1ReplyRequest { - /** - * Fresh reply - * @type {Reply} - * @memberof ContentHaloRunV1alpha1ReplyApiCreatecontentHaloRunV1alpha1Reply - */ - readonly reply?: Reply; + /** + * Fresh reply + * @type {Reply} + * @memberof ContentHaloRunV1alpha1ReplyApiCreatecontentHaloRunV1alpha1Reply + */ + readonly reply?: Reply } /** @@ -617,12 +414,12 @@ export interface ContentHaloRunV1alpha1ReplyApiCreatecontentHaloRunV1alpha1Reply * @interface ContentHaloRunV1alpha1ReplyApiDeletecontentHaloRunV1alpha1ReplyRequest */ export interface ContentHaloRunV1alpha1ReplyApiDeletecontentHaloRunV1alpha1ReplyRequest { - /** - * Name of reply - * @type {string} - * @memberof ContentHaloRunV1alpha1ReplyApiDeletecontentHaloRunV1alpha1Reply - */ - readonly name: string; + /** + * Name of reply + * @type {string} + * @memberof ContentHaloRunV1alpha1ReplyApiDeletecontentHaloRunV1alpha1Reply + */ + readonly name: string } /** @@ -631,12 +428,12 @@ export interface ContentHaloRunV1alpha1ReplyApiDeletecontentHaloRunV1alpha1Reply * @interface ContentHaloRunV1alpha1ReplyApiGetcontentHaloRunV1alpha1ReplyRequest */ export interface ContentHaloRunV1alpha1ReplyApiGetcontentHaloRunV1alpha1ReplyRequest { - /** - * Name of reply - * @type {string} - * @memberof ContentHaloRunV1alpha1ReplyApiGetcontentHaloRunV1alpha1Reply - */ - readonly name: string; + /** + * Name of reply + * @type {string} + * @memberof ContentHaloRunV1alpha1ReplyApiGetcontentHaloRunV1alpha1Reply + */ + readonly name: string } /** @@ -645,40 +442,40 @@ export interface ContentHaloRunV1alpha1ReplyApiGetcontentHaloRunV1alpha1ReplyReq * @interface ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1ReplyRequest */ export interface ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1ReplyRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply + */ + readonly sort?: Array } /** @@ -687,19 +484,19 @@ export interface ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1ReplyRe * @interface ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1ReplyRequest */ export interface ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1ReplyRequest { - /** - * Name of reply - * @type {string} - * @memberof ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1Reply - */ - readonly name: string; + /** + * Name of reply + * @type {string} + * @memberof ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1Reply + */ + readonly name: string - /** - * Updated reply - * @type {Reply} - * @memberof ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1Reply - */ - readonly reply?: Reply; + /** + * Updated reply + * @type {Reply} + * @memberof ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1Reply + */ + readonly reply?: Reply } /** @@ -709,94 +506,59 @@ export interface ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1Reply * @extends {BaseAPI} */ export class ContentHaloRunV1alpha1ReplyApi extends BaseAPI { - /** - * Create content.halo.run/v1alpha1/Reply - * @param {ContentHaloRunV1alpha1ReplyApiCreatecontentHaloRunV1alpha1ReplyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1ReplyApi - */ - public createcontentHaloRunV1alpha1Reply( - requestParameters: ContentHaloRunV1alpha1ReplyApiCreatecontentHaloRunV1alpha1ReplyRequest = {}, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1ReplyApiFp(this.configuration) - .createcontentHaloRunV1alpha1Reply(requestParameters.reply, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create content.halo.run/v1alpha1/Reply + * @param {ContentHaloRunV1alpha1ReplyApiCreatecontentHaloRunV1alpha1ReplyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1ReplyApi + */ + public createcontentHaloRunV1alpha1Reply(requestParameters: ContentHaloRunV1alpha1ReplyApiCreatecontentHaloRunV1alpha1ReplyRequest = {}, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1ReplyApiFp(this.configuration).createcontentHaloRunV1alpha1Reply(requestParameters.reply, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete content.halo.run/v1alpha1/Reply - * @param {ContentHaloRunV1alpha1ReplyApiDeletecontentHaloRunV1alpha1ReplyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1ReplyApi - */ - public deletecontentHaloRunV1alpha1Reply( - requestParameters: ContentHaloRunV1alpha1ReplyApiDeletecontentHaloRunV1alpha1ReplyRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1ReplyApiFp(this.configuration) - .deletecontentHaloRunV1alpha1Reply(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete content.halo.run/v1alpha1/Reply + * @param {ContentHaloRunV1alpha1ReplyApiDeletecontentHaloRunV1alpha1ReplyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1ReplyApi + */ + public deletecontentHaloRunV1alpha1Reply(requestParameters: ContentHaloRunV1alpha1ReplyApiDeletecontentHaloRunV1alpha1ReplyRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1ReplyApiFp(this.configuration).deletecontentHaloRunV1alpha1Reply(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get content.halo.run/v1alpha1/Reply - * @param {ContentHaloRunV1alpha1ReplyApiGetcontentHaloRunV1alpha1ReplyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1ReplyApi - */ - public getcontentHaloRunV1alpha1Reply( - requestParameters: ContentHaloRunV1alpha1ReplyApiGetcontentHaloRunV1alpha1ReplyRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1ReplyApiFp(this.configuration) - .getcontentHaloRunV1alpha1Reply(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get content.halo.run/v1alpha1/Reply + * @param {ContentHaloRunV1alpha1ReplyApiGetcontentHaloRunV1alpha1ReplyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1ReplyApi + */ + public getcontentHaloRunV1alpha1Reply(requestParameters: ContentHaloRunV1alpha1ReplyApiGetcontentHaloRunV1alpha1ReplyRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1ReplyApiFp(this.configuration).getcontentHaloRunV1alpha1Reply(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List content.halo.run/v1alpha1/Reply - * @param {ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1ReplyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1ReplyApi - */ - public listcontentHaloRunV1alpha1Reply( - requestParameters: ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1ReplyRequest = {}, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1ReplyApiFp(this.configuration) - .listcontentHaloRunV1alpha1Reply( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List content.halo.run/v1alpha1/Reply + * @param {ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1ReplyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1ReplyApi + */ + public listcontentHaloRunV1alpha1Reply(requestParameters: ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1ReplyRequest = {}, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1ReplyApiFp(this.configuration).listcontentHaloRunV1alpha1Reply(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update content.halo.run/v1alpha1/Reply - * @param {ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1ReplyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1ReplyApi - */ - public updatecontentHaloRunV1alpha1Reply( - requestParameters: ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1ReplyRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1ReplyApiFp(this.configuration) - .updatecontentHaloRunV1alpha1Reply( - requestParameters.name, - requestParameters.reply, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update content.halo.run/v1alpha1/Reply + * @param {ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1ReplyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1ReplyApi + */ + public updatecontentHaloRunV1alpha1Reply(requestParameters: ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1ReplyRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1ReplyApiFp(this.configuration).updatecontentHaloRunV1alpha1Reply(requestParameters.name, requestParameters.reply, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/content-halo-run-v1alpha1-single-page-api.ts b/ui/packages/api-client/src/api/content-halo-run-v1alpha1-single-page-api.ts index 88048d616..9559f2bca 100644 --- a/ui/packages/api-client/src/api/content-halo-run-v1alpha1-single-page-api.ts +++ b/ui/packages/api-client/src/api/content-halo-run-v1alpha1-single-page-api.ts @@ -5,599 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { SinglePage } from "../models"; +import { SinglePage } from '../models'; // @ts-ignore -import { SinglePageList } from "../models"; +import { SinglePageList } from '../models'; /** * ContentHaloRunV1alpha1SinglePageApi - axios parameter creator * @export */ -export const ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create content.halo.run/v1alpha1/SinglePage - * @param {SinglePage} [singlePage] Fresh singlepage - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createcontentHaloRunV1alpha1SinglePage: async ( - singlePage?: SinglePage, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create content.halo.run/v1alpha1/SinglePage + * @param {SinglePage} [singlePage] Fresh singlepage + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createcontentHaloRunV1alpha1SinglePage: async (singlePage?: SinglePage, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - singlePage, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete content.halo.run/v1alpha1/SinglePage - * @param {string} name Name of singlepage - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletecontentHaloRunV1alpha1SinglePage: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletecontentHaloRunV1alpha1SinglePage", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(singlePage, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete content.halo.run/v1alpha1/SinglePage + * @param {string} name Name of singlepage + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletecontentHaloRunV1alpha1SinglePage: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletecontentHaloRunV1alpha1SinglePage', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get content.halo.run/v1alpha1/SinglePage - * @param {string} name Name of singlepage - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getcontentHaloRunV1alpha1SinglePage: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getcontentHaloRunV1alpha1SinglePage", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get content.halo.run/v1alpha1/SinglePage + * @param {string} name Name of singlepage + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getcontentHaloRunV1alpha1SinglePage: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getcontentHaloRunV1alpha1SinglePage', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List content.halo.run/v1alpha1/SinglePage - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listcontentHaloRunV1alpha1SinglePage: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List content.halo.run/v1alpha1/SinglePage + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listcontentHaloRunV1alpha1SinglePage: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update content.halo.run/v1alpha1/SinglePage - * @param {string} name Name of singlepage - * @param {SinglePage} [singlePage] Updated singlepage - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatecontentHaloRunV1alpha1SinglePage: async ( - name: string, - singlePage?: SinglePage, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatecontentHaloRunV1alpha1SinglePage", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update content.halo.run/v1alpha1/SinglePage + * @param {string} name Name of singlepage + * @param {SinglePage} [singlePage] Updated singlepage + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatecontentHaloRunV1alpha1SinglePage: async (name: string, singlePage?: SinglePage, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatecontentHaloRunV1alpha1SinglePage', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - singlePage, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(singlePage, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ContentHaloRunV1alpha1SinglePageApi - functional programming interface * @export */ -export const ContentHaloRunV1alpha1SinglePageApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator(configuration); - return { - /** - * Create content.halo.run/v1alpha1/SinglePage - * @param {SinglePage} [singlePage] Fresh singlepage - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createcontentHaloRunV1alpha1SinglePage( - singlePage?: SinglePage, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createcontentHaloRunV1alpha1SinglePage( - singlePage, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete content.halo.run/v1alpha1/SinglePage - * @param {string} name Name of singlepage - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletecontentHaloRunV1alpha1SinglePage( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1SinglePage( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get content.halo.run/v1alpha1/SinglePage - * @param {string} name Name of singlepage - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getcontentHaloRunV1alpha1SinglePage( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getcontentHaloRunV1alpha1SinglePage( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List content.halo.run/v1alpha1/SinglePage - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listcontentHaloRunV1alpha1SinglePage( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listcontentHaloRunV1alpha1SinglePage( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update content.halo.run/v1alpha1/SinglePage - * @param {string} name Name of singlepage - * @param {SinglePage} [singlePage] Updated singlepage - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatecontentHaloRunV1alpha1SinglePage( - name: string, - singlePage?: SinglePage, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1SinglePage( - name, - singlePage, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ContentHaloRunV1alpha1SinglePageApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator(configuration) + return { + /** + * Create content.halo.run/v1alpha1/SinglePage + * @param {SinglePage} [singlePage] Fresh singlepage + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createcontentHaloRunV1alpha1SinglePage(singlePage?: SinglePage, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createcontentHaloRunV1alpha1SinglePage(singlePage, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1SinglePageApi.createcontentHaloRunV1alpha1SinglePage']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete content.halo.run/v1alpha1/SinglePage + * @param {string} name Name of singlepage + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletecontentHaloRunV1alpha1SinglePage(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1SinglePage(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1SinglePageApi.deletecontentHaloRunV1alpha1SinglePage']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get content.halo.run/v1alpha1/SinglePage + * @param {string} name Name of singlepage + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getcontentHaloRunV1alpha1SinglePage(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getcontentHaloRunV1alpha1SinglePage(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1SinglePageApi.getcontentHaloRunV1alpha1SinglePage']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List content.halo.run/v1alpha1/SinglePage + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listcontentHaloRunV1alpha1SinglePage(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listcontentHaloRunV1alpha1SinglePage(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1SinglePageApi.listcontentHaloRunV1alpha1SinglePage']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update content.halo.run/v1alpha1/SinglePage + * @param {string} name Name of singlepage + * @param {SinglePage} [singlePage] Updated singlepage + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatecontentHaloRunV1alpha1SinglePage(name: string, singlePage?: SinglePage, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1SinglePage(name, singlePage, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1SinglePageApi.updatecontentHaloRunV1alpha1SinglePage']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ContentHaloRunV1alpha1SinglePageApi - factory interface * @export */ -export const ContentHaloRunV1alpha1SinglePageApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ContentHaloRunV1alpha1SinglePageApiFp(configuration); - return { - /** - * Create content.halo.run/v1alpha1/SinglePage - * @param {ContentHaloRunV1alpha1SinglePageApiCreatecontentHaloRunV1alpha1SinglePageRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createcontentHaloRunV1alpha1SinglePage( - requestParameters: ContentHaloRunV1alpha1SinglePageApiCreatecontentHaloRunV1alpha1SinglePageRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createcontentHaloRunV1alpha1SinglePage( - requestParameters.singlePage, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Delete content.halo.run/v1alpha1/SinglePage - * @param {ContentHaloRunV1alpha1SinglePageApiDeletecontentHaloRunV1alpha1SinglePageRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletecontentHaloRunV1alpha1SinglePage( - requestParameters: ContentHaloRunV1alpha1SinglePageApiDeletecontentHaloRunV1alpha1SinglePageRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletecontentHaloRunV1alpha1SinglePage(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get content.halo.run/v1alpha1/SinglePage - * @param {ContentHaloRunV1alpha1SinglePageApiGetcontentHaloRunV1alpha1SinglePageRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getcontentHaloRunV1alpha1SinglePage( - requestParameters: ContentHaloRunV1alpha1SinglePageApiGetcontentHaloRunV1alpha1SinglePageRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getcontentHaloRunV1alpha1SinglePage(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List content.halo.run/v1alpha1/SinglePage - * @param {ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePageRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listcontentHaloRunV1alpha1SinglePage( - requestParameters: ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePageRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listcontentHaloRunV1alpha1SinglePage( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update content.halo.run/v1alpha1/SinglePage - * @param {ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1SinglePageRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatecontentHaloRunV1alpha1SinglePage( - requestParameters: ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1SinglePageRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatecontentHaloRunV1alpha1SinglePage( - requestParameters.name, - requestParameters.singlePage, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ContentHaloRunV1alpha1SinglePageApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ContentHaloRunV1alpha1SinglePageApiFp(configuration) + return { + /** + * Create content.halo.run/v1alpha1/SinglePage + * @param {ContentHaloRunV1alpha1SinglePageApiCreatecontentHaloRunV1alpha1SinglePageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createcontentHaloRunV1alpha1SinglePage(requestParameters: ContentHaloRunV1alpha1SinglePageApiCreatecontentHaloRunV1alpha1SinglePageRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createcontentHaloRunV1alpha1SinglePage(requestParameters.singlePage, options).then((request) => request(axios, basePath)); + }, + /** + * Delete content.halo.run/v1alpha1/SinglePage + * @param {ContentHaloRunV1alpha1SinglePageApiDeletecontentHaloRunV1alpha1SinglePageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletecontentHaloRunV1alpha1SinglePage(requestParameters: ContentHaloRunV1alpha1SinglePageApiDeletecontentHaloRunV1alpha1SinglePageRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletecontentHaloRunV1alpha1SinglePage(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get content.halo.run/v1alpha1/SinglePage + * @param {ContentHaloRunV1alpha1SinglePageApiGetcontentHaloRunV1alpha1SinglePageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getcontentHaloRunV1alpha1SinglePage(requestParameters: ContentHaloRunV1alpha1SinglePageApiGetcontentHaloRunV1alpha1SinglePageRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getcontentHaloRunV1alpha1SinglePage(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List content.halo.run/v1alpha1/SinglePage + * @param {ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listcontentHaloRunV1alpha1SinglePage(requestParameters: ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePageRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listcontentHaloRunV1alpha1SinglePage(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update content.halo.run/v1alpha1/SinglePage + * @param {ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1SinglePageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatecontentHaloRunV1alpha1SinglePage(requestParameters: ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1SinglePageRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatecontentHaloRunV1alpha1SinglePage(requestParameters.name, requestParameters.singlePage, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -606,12 +400,12 @@ export const ContentHaloRunV1alpha1SinglePageApiFactory = function ( * @interface ContentHaloRunV1alpha1SinglePageApiCreatecontentHaloRunV1alpha1SinglePageRequest */ export interface ContentHaloRunV1alpha1SinglePageApiCreatecontentHaloRunV1alpha1SinglePageRequest { - /** - * Fresh singlepage - * @type {SinglePage} - * @memberof ContentHaloRunV1alpha1SinglePageApiCreatecontentHaloRunV1alpha1SinglePage - */ - readonly singlePage?: SinglePage; + /** + * Fresh singlepage + * @type {SinglePage} + * @memberof ContentHaloRunV1alpha1SinglePageApiCreatecontentHaloRunV1alpha1SinglePage + */ + readonly singlePage?: SinglePage } /** @@ -620,12 +414,12 @@ export interface ContentHaloRunV1alpha1SinglePageApiCreatecontentHaloRunV1alpha1 * @interface ContentHaloRunV1alpha1SinglePageApiDeletecontentHaloRunV1alpha1SinglePageRequest */ export interface ContentHaloRunV1alpha1SinglePageApiDeletecontentHaloRunV1alpha1SinglePageRequest { - /** - * Name of singlepage - * @type {string} - * @memberof ContentHaloRunV1alpha1SinglePageApiDeletecontentHaloRunV1alpha1SinglePage - */ - readonly name: string; + /** + * Name of singlepage + * @type {string} + * @memberof ContentHaloRunV1alpha1SinglePageApiDeletecontentHaloRunV1alpha1SinglePage + */ + readonly name: string } /** @@ -634,12 +428,12 @@ export interface ContentHaloRunV1alpha1SinglePageApiDeletecontentHaloRunV1alpha1 * @interface ContentHaloRunV1alpha1SinglePageApiGetcontentHaloRunV1alpha1SinglePageRequest */ export interface ContentHaloRunV1alpha1SinglePageApiGetcontentHaloRunV1alpha1SinglePageRequest { - /** - * Name of singlepage - * @type {string} - * @memberof ContentHaloRunV1alpha1SinglePageApiGetcontentHaloRunV1alpha1SinglePage - */ - readonly name: string; + /** + * Name of singlepage + * @type {string} + * @memberof ContentHaloRunV1alpha1SinglePageApiGetcontentHaloRunV1alpha1SinglePage + */ + readonly name: string } /** @@ -648,40 +442,40 @@ export interface ContentHaloRunV1alpha1SinglePageApiGetcontentHaloRunV1alpha1Sin * @interface ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePageRequest */ export interface ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePageRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage + */ + readonly sort?: Array } /** @@ -690,19 +484,19 @@ export interface ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1Si * @interface ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1SinglePageRequest */ export interface ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1SinglePageRequest { - /** - * Name of singlepage - * @type {string} - * @memberof ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1SinglePage - */ - readonly name: string; + /** + * Name of singlepage + * @type {string} + * @memberof ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1SinglePage + */ + readonly name: string - /** - * Updated singlepage - * @type {SinglePage} - * @memberof ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1SinglePage - */ - readonly singlePage?: SinglePage; + /** + * Updated singlepage + * @type {SinglePage} + * @memberof ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1SinglePage + */ + readonly singlePage?: SinglePage } /** @@ -712,97 +506,59 @@ export interface ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1 * @extends {BaseAPI} */ export class ContentHaloRunV1alpha1SinglePageApi extends BaseAPI { - /** - * Create content.halo.run/v1alpha1/SinglePage - * @param {ContentHaloRunV1alpha1SinglePageApiCreatecontentHaloRunV1alpha1SinglePageRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1SinglePageApi - */ - public createcontentHaloRunV1alpha1SinglePage( - requestParameters: ContentHaloRunV1alpha1SinglePageApiCreatecontentHaloRunV1alpha1SinglePageRequest = {}, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration) - .createcontentHaloRunV1alpha1SinglePage( - requestParameters.singlePage, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create content.halo.run/v1alpha1/SinglePage + * @param {ContentHaloRunV1alpha1SinglePageApiCreatecontentHaloRunV1alpha1SinglePageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1SinglePageApi + */ + public createcontentHaloRunV1alpha1SinglePage(requestParameters: ContentHaloRunV1alpha1SinglePageApiCreatecontentHaloRunV1alpha1SinglePageRequest = {}, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration).createcontentHaloRunV1alpha1SinglePage(requestParameters.singlePage, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete content.halo.run/v1alpha1/SinglePage - * @param {ContentHaloRunV1alpha1SinglePageApiDeletecontentHaloRunV1alpha1SinglePageRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1SinglePageApi - */ - public deletecontentHaloRunV1alpha1SinglePage( - requestParameters: ContentHaloRunV1alpha1SinglePageApiDeletecontentHaloRunV1alpha1SinglePageRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration) - .deletecontentHaloRunV1alpha1SinglePage(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete content.halo.run/v1alpha1/SinglePage + * @param {ContentHaloRunV1alpha1SinglePageApiDeletecontentHaloRunV1alpha1SinglePageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1SinglePageApi + */ + public deletecontentHaloRunV1alpha1SinglePage(requestParameters: ContentHaloRunV1alpha1SinglePageApiDeletecontentHaloRunV1alpha1SinglePageRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration).deletecontentHaloRunV1alpha1SinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get content.halo.run/v1alpha1/SinglePage - * @param {ContentHaloRunV1alpha1SinglePageApiGetcontentHaloRunV1alpha1SinglePageRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1SinglePageApi - */ - public getcontentHaloRunV1alpha1SinglePage( - requestParameters: ContentHaloRunV1alpha1SinglePageApiGetcontentHaloRunV1alpha1SinglePageRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration) - .getcontentHaloRunV1alpha1SinglePage(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get content.halo.run/v1alpha1/SinglePage + * @param {ContentHaloRunV1alpha1SinglePageApiGetcontentHaloRunV1alpha1SinglePageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1SinglePageApi + */ + public getcontentHaloRunV1alpha1SinglePage(requestParameters: ContentHaloRunV1alpha1SinglePageApiGetcontentHaloRunV1alpha1SinglePageRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration).getcontentHaloRunV1alpha1SinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List content.halo.run/v1alpha1/SinglePage - * @param {ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePageRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1SinglePageApi - */ - public listcontentHaloRunV1alpha1SinglePage( - requestParameters: ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePageRequest = {}, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration) - .listcontentHaloRunV1alpha1SinglePage( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List content.halo.run/v1alpha1/SinglePage + * @param {ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1SinglePageApi + */ + public listcontentHaloRunV1alpha1SinglePage(requestParameters: ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePageRequest = {}, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration).listcontentHaloRunV1alpha1SinglePage(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update content.halo.run/v1alpha1/SinglePage - * @param {ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1SinglePageRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1SinglePageApi - */ - public updatecontentHaloRunV1alpha1SinglePage( - requestParameters: ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1SinglePageRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration) - .updatecontentHaloRunV1alpha1SinglePage( - requestParameters.name, - requestParameters.singlePage, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update content.halo.run/v1alpha1/SinglePage + * @param {ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1SinglePageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1SinglePageApi + */ + public updatecontentHaloRunV1alpha1SinglePage(requestParameters: ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1SinglePageRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration).updatecontentHaloRunV1alpha1SinglePage(requestParameters.name, requestParameters.singlePage, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/content-halo-run-v1alpha1-snapshot-api.ts b/ui/packages/api-client/src/api/content-halo-run-v1alpha1-snapshot-api.ts index 5b96541b7..b8deeb0a8 100644 --- a/ui/packages/api-client/src/api/content-halo-run-v1alpha1-snapshot-api.ts +++ b/ui/packages/api-client/src/api/content-halo-run-v1alpha1-snapshot-api.ts @@ -5,599 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Snapshot } from "../models"; +import { Snapshot } from '../models'; // @ts-ignore -import { SnapshotList } from "../models"; +import { SnapshotList } from '../models'; /** * ContentHaloRunV1alpha1SnapshotApi - axios parameter creator * @export */ -export const ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create content.halo.run/v1alpha1/Snapshot - * @param {Snapshot} [snapshot] Fresh snapshot - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createcontentHaloRunV1alpha1Snapshot: async ( - snapshot?: Snapshot, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/content.halo.run/v1alpha1/snapshots`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create content.halo.run/v1alpha1/Snapshot + * @param {Snapshot} [snapshot] Fresh snapshot + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createcontentHaloRunV1alpha1Snapshot: async (snapshot?: Snapshot, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/content.halo.run/v1alpha1/snapshots`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - snapshot, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete content.halo.run/v1alpha1/Snapshot - * @param {string} name Name of snapshot - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletecontentHaloRunV1alpha1Snapshot: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletecontentHaloRunV1alpha1Snapshot", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(snapshot, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete content.halo.run/v1alpha1/Snapshot + * @param {string} name Name of snapshot + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletecontentHaloRunV1alpha1Snapshot: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletecontentHaloRunV1alpha1Snapshot', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/snapshots/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get content.halo.run/v1alpha1/Snapshot - * @param {string} name Name of snapshot - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getcontentHaloRunV1alpha1Snapshot: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getcontentHaloRunV1alpha1Snapshot", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get content.halo.run/v1alpha1/Snapshot + * @param {string} name Name of snapshot + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getcontentHaloRunV1alpha1Snapshot: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getcontentHaloRunV1alpha1Snapshot', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/snapshots/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List content.halo.run/v1alpha1/Snapshot - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listcontentHaloRunV1alpha1Snapshot: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/content.halo.run/v1alpha1/snapshots`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List content.halo.run/v1alpha1/Snapshot + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listcontentHaloRunV1alpha1Snapshot: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/content.halo.run/v1alpha1/snapshots`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update content.halo.run/v1alpha1/Snapshot - * @param {string} name Name of snapshot - * @param {Snapshot} [snapshot] Updated snapshot - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatecontentHaloRunV1alpha1Snapshot: async ( - name: string, - snapshot?: Snapshot, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatecontentHaloRunV1alpha1Snapshot", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update content.halo.run/v1alpha1/Snapshot + * @param {string} name Name of snapshot + * @param {Snapshot} [snapshot] Updated snapshot + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatecontentHaloRunV1alpha1Snapshot: async (name: string, snapshot?: Snapshot, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatecontentHaloRunV1alpha1Snapshot', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/snapshots/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - snapshot, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(snapshot, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ContentHaloRunV1alpha1SnapshotApi - functional programming interface * @export */ -export const ContentHaloRunV1alpha1SnapshotApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator(configuration); - return { - /** - * Create content.halo.run/v1alpha1/Snapshot - * @param {Snapshot} [snapshot] Fresh snapshot - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createcontentHaloRunV1alpha1Snapshot( - snapshot?: Snapshot, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Snapshot( - snapshot, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete content.halo.run/v1alpha1/Snapshot - * @param {string} name Name of snapshot - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletecontentHaloRunV1alpha1Snapshot( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Snapshot( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get content.halo.run/v1alpha1/Snapshot - * @param {string} name Name of snapshot - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getcontentHaloRunV1alpha1Snapshot( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Snapshot( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List content.halo.run/v1alpha1/Snapshot - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listcontentHaloRunV1alpha1Snapshot( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Snapshot( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update content.halo.run/v1alpha1/Snapshot - * @param {string} name Name of snapshot - * @param {Snapshot} [snapshot] Updated snapshot - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatecontentHaloRunV1alpha1Snapshot( - name: string, - snapshot?: Snapshot, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Snapshot( - name, - snapshot, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ContentHaloRunV1alpha1SnapshotApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator(configuration) + return { + /** + * Create content.halo.run/v1alpha1/Snapshot + * @param {Snapshot} [snapshot] Fresh snapshot + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createcontentHaloRunV1alpha1Snapshot(snapshot?: Snapshot, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Snapshot(snapshot, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1SnapshotApi.createcontentHaloRunV1alpha1Snapshot']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete content.halo.run/v1alpha1/Snapshot + * @param {string} name Name of snapshot + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletecontentHaloRunV1alpha1Snapshot(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Snapshot(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1SnapshotApi.deletecontentHaloRunV1alpha1Snapshot']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get content.halo.run/v1alpha1/Snapshot + * @param {string} name Name of snapshot + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getcontentHaloRunV1alpha1Snapshot(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Snapshot(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1SnapshotApi.getcontentHaloRunV1alpha1Snapshot']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List content.halo.run/v1alpha1/Snapshot + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listcontentHaloRunV1alpha1Snapshot(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Snapshot(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1SnapshotApi.listcontentHaloRunV1alpha1Snapshot']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update content.halo.run/v1alpha1/Snapshot + * @param {string} name Name of snapshot + * @param {Snapshot} [snapshot] Updated snapshot + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatecontentHaloRunV1alpha1Snapshot(name: string, snapshot?: Snapshot, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Snapshot(name, snapshot, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1SnapshotApi.updatecontentHaloRunV1alpha1Snapshot']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ContentHaloRunV1alpha1SnapshotApi - factory interface * @export */ -export const ContentHaloRunV1alpha1SnapshotApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ContentHaloRunV1alpha1SnapshotApiFp(configuration); - return { - /** - * Create content.halo.run/v1alpha1/Snapshot - * @param {ContentHaloRunV1alpha1SnapshotApiCreatecontentHaloRunV1alpha1SnapshotRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createcontentHaloRunV1alpha1Snapshot( - requestParameters: ContentHaloRunV1alpha1SnapshotApiCreatecontentHaloRunV1alpha1SnapshotRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createcontentHaloRunV1alpha1Snapshot( - requestParameters.snapshot, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Delete content.halo.run/v1alpha1/Snapshot - * @param {ContentHaloRunV1alpha1SnapshotApiDeletecontentHaloRunV1alpha1SnapshotRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletecontentHaloRunV1alpha1Snapshot( - requestParameters: ContentHaloRunV1alpha1SnapshotApiDeletecontentHaloRunV1alpha1SnapshotRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletecontentHaloRunV1alpha1Snapshot(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get content.halo.run/v1alpha1/Snapshot - * @param {ContentHaloRunV1alpha1SnapshotApiGetcontentHaloRunV1alpha1SnapshotRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getcontentHaloRunV1alpha1Snapshot( - requestParameters: ContentHaloRunV1alpha1SnapshotApiGetcontentHaloRunV1alpha1SnapshotRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getcontentHaloRunV1alpha1Snapshot(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List content.halo.run/v1alpha1/Snapshot - * @param {ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1SnapshotRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listcontentHaloRunV1alpha1Snapshot( - requestParameters: ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1SnapshotRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listcontentHaloRunV1alpha1Snapshot( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update content.halo.run/v1alpha1/Snapshot - * @param {ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1SnapshotRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatecontentHaloRunV1alpha1Snapshot( - requestParameters: ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1SnapshotRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatecontentHaloRunV1alpha1Snapshot( - requestParameters.name, - requestParameters.snapshot, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ContentHaloRunV1alpha1SnapshotApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ContentHaloRunV1alpha1SnapshotApiFp(configuration) + return { + /** + * Create content.halo.run/v1alpha1/Snapshot + * @param {ContentHaloRunV1alpha1SnapshotApiCreatecontentHaloRunV1alpha1SnapshotRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createcontentHaloRunV1alpha1Snapshot(requestParameters: ContentHaloRunV1alpha1SnapshotApiCreatecontentHaloRunV1alpha1SnapshotRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createcontentHaloRunV1alpha1Snapshot(requestParameters.snapshot, options).then((request) => request(axios, basePath)); + }, + /** + * Delete content.halo.run/v1alpha1/Snapshot + * @param {ContentHaloRunV1alpha1SnapshotApiDeletecontentHaloRunV1alpha1SnapshotRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletecontentHaloRunV1alpha1Snapshot(requestParameters: ContentHaloRunV1alpha1SnapshotApiDeletecontentHaloRunV1alpha1SnapshotRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletecontentHaloRunV1alpha1Snapshot(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get content.halo.run/v1alpha1/Snapshot + * @param {ContentHaloRunV1alpha1SnapshotApiGetcontentHaloRunV1alpha1SnapshotRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getcontentHaloRunV1alpha1Snapshot(requestParameters: ContentHaloRunV1alpha1SnapshotApiGetcontentHaloRunV1alpha1SnapshotRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getcontentHaloRunV1alpha1Snapshot(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List content.halo.run/v1alpha1/Snapshot + * @param {ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1SnapshotRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listcontentHaloRunV1alpha1Snapshot(requestParameters: ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1SnapshotRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listcontentHaloRunV1alpha1Snapshot(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update content.halo.run/v1alpha1/Snapshot + * @param {ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1SnapshotRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatecontentHaloRunV1alpha1Snapshot(requestParameters: ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1SnapshotRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatecontentHaloRunV1alpha1Snapshot(requestParameters.name, requestParameters.snapshot, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -606,12 +400,12 @@ export const ContentHaloRunV1alpha1SnapshotApiFactory = function ( * @interface ContentHaloRunV1alpha1SnapshotApiCreatecontentHaloRunV1alpha1SnapshotRequest */ export interface ContentHaloRunV1alpha1SnapshotApiCreatecontentHaloRunV1alpha1SnapshotRequest { - /** - * Fresh snapshot - * @type {Snapshot} - * @memberof ContentHaloRunV1alpha1SnapshotApiCreatecontentHaloRunV1alpha1Snapshot - */ - readonly snapshot?: Snapshot; + /** + * Fresh snapshot + * @type {Snapshot} + * @memberof ContentHaloRunV1alpha1SnapshotApiCreatecontentHaloRunV1alpha1Snapshot + */ + readonly snapshot?: Snapshot } /** @@ -620,12 +414,12 @@ export interface ContentHaloRunV1alpha1SnapshotApiCreatecontentHaloRunV1alpha1Sn * @interface ContentHaloRunV1alpha1SnapshotApiDeletecontentHaloRunV1alpha1SnapshotRequest */ export interface ContentHaloRunV1alpha1SnapshotApiDeletecontentHaloRunV1alpha1SnapshotRequest { - /** - * Name of snapshot - * @type {string} - * @memberof ContentHaloRunV1alpha1SnapshotApiDeletecontentHaloRunV1alpha1Snapshot - */ - readonly name: string; + /** + * Name of snapshot + * @type {string} + * @memberof ContentHaloRunV1alpha1SnapshotApiDeletecontentHaloRunV1alpha1Snapshot + */ + readonly name: string } /** @@ -634,12 +428,12 @@ export interface ContentHaloRunV1alpha1SnapshotApiDeletecontentHaloRunV1alpha1Sn * @interface ContentHaloRunV1alpha1SnapshotApiGetcontentHaloRunV1alpha1SnapshotRequest */ export interface ContentHaloRunV1alpha1SnapshotApiGetcontentHaloRunV1alpha1SnapshotRequest { - /** - * Name of snapshot - * @type {string} - * @memberof ContentHaloRunV1alpha1SnapshotApiGetcontentHaloRunV1alpha1Snapshot - */ - readonly name: string; + /** + * Name of snapshot + * @type {string} + * @memberof ContentHaloRunV1alpha1SnapshotApiGetcontentHaloRunV1alpha1Snapshot + */ + readonly name: string } /** @@ -648,40 +442,40 @@ export interface ContentHaloRunV1alpha1SnapshotApiGetcontentHaloRunV1alpha1Snaps * @interface ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1SnapshotRequest */ export interface ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1SnapshotRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot + */ + readonly sort?: Array } /** @@ -690,19 +484,19 @@ export interface ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snap * @interface ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1SnapshotRequest */ export interface ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1SnapshotRequest { - /** - * Name of snapshot - * @type {string} - * @memberof ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1Snapshot - */ - readonly name: string; + /** + * Name of snapshot + * @type {string} + * @memberof ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1Snapshot + */ + readonly name: string - /** - * Updated snapshot - * @type {Snapshot} - * @memberof ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1Snapshot - */ - readonly snapshot?: Snapshot; + /** + * Updated snapshot + * @type {Snapshot} + * @memberof ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1Snapshot + */ + readonly snapshot?: Snapshot } /** @@ -712,94 +506,59 @@ export interface ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1Sn * @extends {BaseAPI} */ export class ContentHaloRunV1alpha1SnapshotApi extends BaseAPI { - /** - * Create content.halo.run/v1alpha1/Snapshot - * @param {ContentHaloRunV1alpha1SnapshotApiCreatecontentHaloRunV1alpha1SnapshotRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1SnapshotApi - */ - public createcontentHaloRunV1alpha1Snapshot( - requestParameters: ContentHaloRunV1alpha1SnapshotApiCreatecontentHaloRunV1alpha1SnapshotRequest = {}, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1SnapshotApiFp(this.configuration) - .createcontentHaloRunV1alpha1Snapshot(requestParameters.snapshot, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create content.halo.run/v1alpha1/Snapshot + * @param {ContentHaloRunV1alpha1SnapshotApiCreatecontentHaloRunV1alpha1SnapshotRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1SnapshotApi + */ + public createcontentHaloRunV1alpha1Snapshot(requestParameters: ContentHaloRunV1alpha1SnapshotApiCreatecontentHaloRunV1alpha1SnapshotRequest = {}, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1SnapshotApiFp(this.configuration).createcontentHaloRunV1alpha1Snapshot(requestParameters.snapshot, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete content.halo.run/v1alpha1/Snapshot - * @param {ContentHaloRunV1alpha1SnapshotApiDeletecontentHaloRunV1alpha1SnapshotRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1SnapshotApi - */ - public deletecontentHaloRunV1alpha1Snapshot( - requestParameters: ContentHaloRunV1alpha1SnapshotApiDeletecontentHaloRunV1alpha1SnapshotRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1SnapshotApiFp(this.configuration) - .deletecontentHaloRunV1alpha1Snapshot(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete content.halo.run/v1alpha1/Snapshot + * @param {ContentHaloRunV1alpha1SnapshotApiDeletecontentHaloRunV1alpha1SnapshotRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1SnapshotApi + */ + public deletecontentHaloRunV1alpha1Snapshot(requestParameters: ContentHaloRunV1alpha1SnapshotApiDeletecontentHaloRunV1alpha1SnapshotRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1SnapshotApiFp(this.configuration).deletecontentHaloRunV1alpha1Snapshot(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get content.halo.run/v1alpha1/Snapshot - * @param {ContentHaloRunV1alpha1SnapshotApiGetcontentHaloRunV1alpha1SnapshotRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1SnapshotApi - */ - public getcontentHaloRunV1alpha1Snapshot( - requestParameters: ContentHaloRunV1alpha1SnapshotApiGetcontentHaloRunV1alpha1SnapshotRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1SnapshotApiFp(this.configuration) - .getcontentHaloRunV1alpha1Snapshot(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get content.halo.run/v1alpha1/Snapshot + * @param {ContentHaloRunV1alpha1SnapshotApiGetcontentHaloRunV1alpha1SnapshotRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1SnapshotApi + */ + public getcontentHaloRunV1alpha1Snapshot(requestParameters: ContentHaloRunV1alpha1SnapshotApiGetcontentHaloRunV1alpha1SnapshotRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1SnapshotApiFp(this.configuration).getcontentHaloRunV1alpha1Snapshot(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List content.halo.run/v1alpha1/Snapshot - * @param {ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1SnapshotRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1SnapshotApi - */ - public listcontentHaloRunV1alpha1Snapshot( - requestParameters: ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1SnapshotRequest = {}, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1SnapshotApiFp(this.configuration) - .listcontentHaloRunV1alpha1Snapshot( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List content.halo.run/v1alpha1/Snapshot + * @param {ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1SnapshotRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1SnapshotApi + */ + public listcontentHaloRunV1alpha1Snapshot(requestParameters: ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1SnapshotRequest = {}, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1SnapshotApiFp(this.configuration).listcontentHaloRunV1alpha1Snapshot(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update content.halo.run/v1alpha1/Snapshot - * @param {ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1SnapshotRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1SnapshotApi - */ - public updatecontentHaloRunV1alpha1Snapshot( - requestParameters: ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1SnapshotRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1SnapshotApiFp(this.configuration) - .updatecontentHaloRunV1alpha1Snapshot( - requestParameters.name, - requestParameters.snapshot, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update content.halo.run/v1alpha1/Snapshot + * @param {ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1SnapshotRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1SnapshotApi + */ + public updatecontentHaloRunV1alpha1Snapshot(requestParameters: ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1SnapshotRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1SnapshotApiFp(this.configuration).updatecontentHaloRunV1alpha1Snapshot(requestParameters.name, requestParameters.snapshot, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/content-halo-run-v1alpha1-tag-api.ts b/ui/packages/api-client/src/api/content-halo-run-v1alpha1-tag-api.ts index 94e8b9b29..f636451ad 100644 --- a/ui/packages/api-client/src/api/content-halo-run-v1alpha1-tag-api.ts +++ b/ui/packages/api-client/src/api/content-halo-run-v1alpha1-tag-api.ts @@ -5,596 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Tag } from "../models"; +import { Tag } from '../models'; // @ts-ignore -import { TagList } from "../models"; +import { TagList } from '../models'; /** * ContentHaloRunV1alpha1TagApi - axios parameter creator * @export */ -export const ContentHaloRunV1alpha1TagApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create content.halo.run/v1alpha1/Tag - * @param {Tag} [tag] Fresh tag - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createcontentHaloRunV1alpha1Tag: async ( - tag?: Tag, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/content.halo.run/v1alpha1/tags`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ContentHaloRunV1alpha1TagApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create content.halo.run/v1alpha1/Tag + * @param {Tag} [tag] Fresh tag + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createcontentHaloRunV1alpha1Tag: async (tag?: Tag, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/content.halo.run/v1alpha1/tags`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - tag, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete content.halo.run/v1alpha1/Tag - * @param {string} name Name of tag - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletecontentHaloRunV1alpha1Tag: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletecontentHaloRunV1alpha1Tag", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/tags/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(tag, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete content.halo.run/v1alpha1/Tag + * @param {string} name Name of tag + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletecontentHaloRunV1alpha1Tag: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletecontentHaloRunV1alpha1Tag', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/tags/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get content.halo.run/v1alpha1/Tag - * @param {string} name Name of tag - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getcontentHaloRunV1alpha1Tag: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getcontentHaloRunV1alpha1Tag", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/tags/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get content.halo.run/v1alpha1/Tag + * @param {string} name Name of tag + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getcontentHaloRunV1alpha1Tag: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getcontentHaloRunV1alpha1Tag', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/tags/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List content.halo.run/v1alpha1/Tag - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listcontentHaloRunV1alpha1Tag: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/content.halo.run/v1alpha1/tags`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List content.halo.run/v1alpha1/Tag + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listcontentHaloRunV1alpha1Tag: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/content.halo.run/v1alpha1/tags`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update content.halo.run/v1alpha1/Tag - * @param {string} name Name of tag - * @param {Tag} [tag] Updated tag - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatecontentHaloRunV1alpha1Tag: async ( - name: string, - tag?: Tag, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatecontentHaloRunV1alpha1Tag", "name", name); - const localVarPath = - `/apis/content.halo.run/v1alpha1/tags/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update content.halo.run/v1alpha1/Tag + * @param {string} name Name of tag + * @param {Tag} [tag] Updated tag + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatecontentHaloRunV1alpha1Tag: async (name: string, tag?: Tag, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatecontentHaloRunV1alpha1Tag', 'name', name) + const localVarPath = `/apis/content.halo.run/v1alpha1/tags/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - tag, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(tag, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ContentHaloRunV1alpha1TagApi - functional programming interface * @export */ -export const ContentHaloRunV1alpha1TagApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ContentHaloRunV1alpha1TagApiAxiosParamCreator(configuration); - return { - /** - * Create content.halo.run/v1alpha1/Tag - * @param {Tag} [tag] Fresh tag - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createcontentHaloRunV1alpha1Tag( - tag?: Tag, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Tag( - tag, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete content.halo.run/v1alpha1/Tag - * @param {string} name Name of tag - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletecontentHaloRunV1alpha1Tag( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Tag( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get content.halo.run/v1alpha1/Tag - * @param {string} name Name of tag - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getcontentHaloRunV1alpha1Tag( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Tag( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List content.halo.run/v1alpha1/Tag - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listcontentHaloRunV1alpha1Tag( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Tag( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update content.halo.run/v1alpha1/Tag - * @param {string} name Name of tag - * @param {Tag} [tag] Updated tag - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatecontentHaloRunV1alpha1Tag( - name: string, - tag?: Tag, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Tag( - name, - tag, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ContentHaloRunV1alpha1TagApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ContentHaloRunV1alpha1TagApiAxiosParamCreator(configuration) + return { + /** + * Create content.halo.run/v1alpha1/Tag + * @param {Tag} [tag] Fresh tag + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createcontentHaloRunV1alpha1Tag(tag?: Tag, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Tag(tag, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1TagApi.createcontentHaloRunV1alpha1Tag']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete content.halo.run/v1alpha1/Tag + * @param {string} name Name of tag + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletecontentHaloRunV1alpha1Tag(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Tag(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1TagApi.deletecontentHaloRunV1alpha1Tag']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get content.halo.run/v1alpha1/Tag + * @param {string} name Name of tag + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getcontentHaloRunV1alpha1Tag(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Tag(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1TagApi.getcontentHaloRunV1alpha1Tag']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List content.halo.run/v1alpha1/Tag + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listcontentHaloRunV1alpha1Tag(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Tag(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1TagApi.listcontentHaloRunV1alpha1Tag']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update content.halo.run/v1alpha1/Tag + * @param {string} name Name of tag + * @param {Tag} [tag] Updated tag + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatecontentHaloRunV1alpha1Tag(name: string, tag?: Tag, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Tag(name, tag, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ContentHaloRunV1alpha1TagApi.updatecontentHaloRunV1alpha1Tag']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ContentHaloRunV1alpha1TagApi - factory interface * @export */ -export const ContentHaloRunV1alpha1TagApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ContentHaloRunV1alpha1TagApiFp(configuration); - return { - /** - * Create content.halo.run/v1alpha1/Tag - * @param {ContentHaloRunV1alpha1TagApiCreatecontentHaloRunV1alpha1TagRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createcontentHaloRunV1alpha1Tag( - requestParameters: ContentHaloRunV1alpha1TagApiCreatecontentHaloRunV1alpha1TagRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createcontentHaloRunV1alpha1Tag(requestParameters.tag, options) - .then((request) => request(axios, basePath)); - }, - /** - * Delete content.halo.run/v1alpha1/Tag - * @param {ContentHaloRunV1alpha1TagApiDeletecontentHaloRunV1alpha1TagRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletecontentHaloRunV1alpha1Tag( - requestParameters: ContentHaloRunV1alpha1TagApiDeletecontentHaloRunV1alpha1TagRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletecontentHaloRunV1alpha1Tag(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get content.halo.run/v1alpha1/Tag - * @param {ContentHaloRunV1alpha1TagApiGetcontentHaloRunV1alpha1TagRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getcontentHaloRunV1alpha1Tag( - requestParameters: ContentHaloRunV1alpha1TagApiGetcontentHaloRunV1alpha1TagRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getcontentHaloRunV1alpha1Tag(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List content.halo.run/v1alpha1/Tag - * @param {ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1TagRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listcontentHaloRunV1alpha1Tag( - requestParameters: ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1TagRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listcontentHaloRunV1alpha1Tag( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update content.halo.run/v1alpha1/Tag - * @param {ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1TagRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatecontentHaloRunV1alpha1Tag( - requestParameters: ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1TagRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatecontentHaloRunV1alpha1Tag( - requestParameters.name, - requestParameters.tag, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ContentHaloRunV1alpha1TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ContentHaloRunV1alpha1TagApiFp(configuration) + return { + /** + * Create content.halo.run/v1alpha1/Tag + * @param {ContentHaloRunV1alpha1TagApiCreatecontentHaloRunV1alpha1TagRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createcontentHaloRunV1alpha1Tag(requestParameters: ContentHaloRunV1alpha1TagApiCreatecontentHaloRunV1alpha1TagRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createcontentHaloRunV1alpha1Tag(requestParameters.tag, options).then((request) => request(axios, basePath)); + }, + /** + * Delete content.halo.run/v1alpha1/Tag + * @param {ContentHaloRunV1alpha1TagApiDeletecontentHaloRunV1alpha1TagRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletecontentHaloRunV1alpha1Tag(requestParameters: ContentHaloRunV1alpha1TagApiDeletecontentHaloRunV1alpha1TagRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletecontentHaloRunV1alpha1Tag(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get content.halo.run/v1alpha1/Tag + * @param {ContentHaloRunV1alpha1TagApiGetcontentHaloRunV1alpha1TagRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getcontentHaloRunV1alpha1Tag(requestParameters: ContentHaloRunV1alpha1TagApiGetcontentHaloRunV1alpha1TagRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getcontentHaloRunV1alpha1Tag(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List content.halo.run/v1alpha1/Tag + * @param {ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1TagRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listcontentHaloRunV1alpha1Tag(requestParameters: ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1TagRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listcontentHaloRunV1alpha1Tag(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update content.halo.run/v1alpha1/Tag + * @param {ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1TagRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatecontentHaloRunV1alpha1Tag(requestParameters: ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1TagRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatecontentHaloRunV1alpha1Tag(requestParameters.name, requestParameters.tag, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -603,12 +400,12 @@ export const ContentHaloRunV1alpha1TagApiFactory = function ( * @interface ContentHaloRunV1alpha1TagApiCreatecontentHaloRunV1alpha1TagRequest */ export interface ContentHaloRunV1alpha1TagApiCreatecontentHaloRunV1alpha1TagRequest { - /** - * Fresh tag - * @type {Tag} - * @memberof ContentHaloRunV1alpha1TagApiCreatecontentHaloRunV1alpha1Tag - */ - readonly tag?: Tag; + /** + * Fresh tag + * @type {Tag} + * @memberof ContentHaloRunV1alpha1TagApiCreatecontentHaloRunV1alpha1Tag + */ + readonly tag?: Tag } /** @@ -617,12 +414,12 @@ export interface ContentHaloRunV1alpha1TagApiCreatecontentHaloRunV1alpha1TagRequ * @interface ContentHaloRunV1alpha1TagApiDeletecontentHaloRunV1alpha1TagRequest */ export interface ContentHaloRunV1alpha1TagApiDeletecontentHaloRunV1alpha1TagRequest { - /** - * Name of tag - * @type {string} - * @memberof ContentHaloRunV1alpha1TagApiDeletecontentHaloRunV1alpha1Tag - */ - readonly name: string; + /** + * Name of tag + * @type {string} + * @memberof ContentHaloRunV1alpha1TagApiDeletecontentHaloRunV1alpha1Tag + */ + readonly name: string } /** @@ -631,12 +428,12 @@ export interface ContentHaloRunV1alpha1TagApiDeletecontentHaloRunV1alpha1TagRequ * @interface ContentHaloRunV1alpha1TagApiGetcontentHaloRunV1alpha1TagRequest */ export interface ContentHaloRunV1alpha1TagApiGetcontentHaloRunV1alpha1TagRequest { - /** - * Name of tag - * @type {string} - * @memberof ContentHaloRunV1alpha1TagApiGetcontentHaloRunV1alpha1Tag - */ - readonly name: string; + /** + * Name of tag + * @type {string} + * @memberof ContentHaloRunV1alpha1TagApiGetcontentHaloRunV1alpha1Tag + */ + readonly name: string } /** @@ -645,40 +442,40 @@ export interface ContentHaloRunV1alpha1TagApiGetcontentHaloRunV1alpha1TagRequest * @interface ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1TagRequest */ export interface ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1TagRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag + */ + readonly sort?: Array } /** @@ -687,19 +484,19 @@ export interface ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1TagReques * @interface ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1TagRequest */ export interface ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1TagRequest { - /** - * Name of tag - * @type {string} - * @memberof ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1Tag - */ - readonly name: string; + /** + * Name of tag + * @type {string} + * @memberof ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1Tag + */ + readonly name: string - /** - * Updated tag - * @type {Tag} - * @memberof ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1Tag - */ - readonly tag?: Tag; + /** + * Updated tag + * @type {Tag} + * @memberof ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1Tag + */ + readonly tag?: Tag } /** @@ -709,94 +506,59 @@ export interface ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1TagRequ * @extends {BaseAPI} */ export class ContentHaloRunV1alpha1TagApi extends BaseAPI { - /** - * Create content.halo.run/v1alpha1/Tag - * @param {ContentHaloRunV1alpha1TagApiCreatecontentHaloRunV1alpha1TagRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1TagApi - */ - public createcontentHaloRunV1alpha1Tag( - requestParameters: ContentHaloRunV1alpha1TagApiCreatecontentHaloRunV1alpha1TagRequest = {}, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1TagApiFp(this.configuration) - .createcontentHaloRunV1alpha1Tag(requestParameters.tag, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create content.halo.run/v1alpha1/Tag + * @param {ContentHaloRunV1alpha1TagApiCreatecontentHaloRunV1alpha1TagRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1TagApi + */ + public createcontentHaloRunV1alpha1Tag(requestParameters: ContentHaloRunV1alpha1TagApiCreatecontentHaloRunV1alpha1TagRequest = {}, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1TagApiFp(this.configuration).createcontentHaloRunV1alpha1Tag(requestParameters.tag, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete content.halo.run/v1alpha1/Tag - * @param {ContentHaloRunV1alpha1TagApiDeletecontentHaloRunV1alpha1TagRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1TagApi - */ - public deletecontentHaloRunV1alpha1Tag( - requestParameters: ContentHaloRunV1alpha1TagApiDeletecontentHaloRunV1alpha1TagRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1TagApiFp(this.configuration) - .deletecontentHaloRunV1alpha1Tag(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete content.halo.run/v1alpha1/Tag + * @param {ContentHaloRunV1alpha1TagApiDeletecontentHaloRunV1alpha1TagRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1TagApi + */ + public deletecontentHaloRunV1alpha1Tag(requestParameters: ContentHaloRunV1alpha1TagApiDeletecontentHaloRunV1alpha1TagRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1TagApiFp(this.configuration).deletecontentHaloRunV1alpha1Tag(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get content.halo.run/v1alpha1/Tag - * @param {ContentHaloRunV1alpha1TagApiGetcontentHaloRunV1alpha1TagRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1TagApi - */ - public getcontentHaloRunV1alpha1Tag( - requestParameters: ContentHaloRunV1alpha1TagApiGetcontentHaloRunV1alpha1TagRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1TagApiFp(this.configuration) - .getcontentHaloRunV1alpha1Tag(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get content.halo.run/v1alpha1/Tag + * @param {ContentHaloRunV1alpha1TagApiGetcontentHaloRunV1alpha1TagRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1TagApi + */ + public getcontentHaloRunV1alpha1Tag(requestParameters: ContentHaloRunV1alpha1TagApiGetcontentHaloRunV1alpha1TagRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1TagApiFp(this.configuration).getcontentHaloRunV1alpha1Tag(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List content.halo.run/v1alpha1/Tag - * @param {ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1TagRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1TagApi - */ - public listcontentHaloRunV1alpha1Tag( - requestParameters: ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1TagRequest = {}, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1TagApiFp(this.configuration) - .listcontentHaloRunV1alpha1Tag( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List content.halo.run/v1alpha1/Tag + * @param {ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1TagRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1TagApi + */ + public listcontentHaloRunV1alpha1Tag(requestParameters: ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1TagRequest = {}, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1TagApiFp(this.configuration).listcontentHaloRunV1alpha1Tag(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update content.halo.run/v1alpha1/Tag - * @param {ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1TagRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ContentHaloRunV1alpha1TagApi - */ - public updatecontentHaloRunV1alpha1Tag( - requestParameters: ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1TagRequest, - options?: AxiosRequestConfig - ) { - return ContentHaloRunV1alpha1TagApiFp(this.configuration) - .updatecontentHaloRunV1alpha1Tag( - requestParameters.name, - requestParameters.tag, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update content.halo.run/v1alpha1/Tag + * @param {ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1TagRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentHaloRunV1alpha1TagApi + */ + public updatecontentHaloRunV1alpha1Tag(requestParameters: ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1TagRequest, options?: RawAxiosRequestConfig) { + return ContentHaloRunV1alpha1TagApiFp(this.configuration).updatecontentHaloRunV1alpha1Tag(requestParameters.name, requestParameters.tag, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/login-api.ts b/ui/packages/api-client/src/api/login-api.ts index 414a81666..373f214dd 100644 --- a/ui/packages/api-client/src/api/login-api.ts +++ b/ui/packages/api-client/src/api/login-api.ts @@ -5,154 +5,107 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { PublicKeyResponse } from "../models"; +import { PublicKeyResponse } from '../models'; /** * LoginApi - axios parameter creator * @export */ -export const LoginApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Read public key for encrypting password. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getPublicKey: async ( - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/login/public-key`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const LoginApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Read public key for encrypting password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPublicKey: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/login/public-key`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * LoginApi - functional programming interface * @export */ -export const LoginApiFp = function (configuration?: Configuration) { - const localVarAxiosParamCreator = LoginApiAxiosParamCreator(configuration); - return { - /** - * Read public key for encrypting password. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getPublicKey( - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicKey( - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const LoginApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = LoginApiAxiosParamCreator(configuration) + return { + /** + * Read public key for encrypting password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getPublicKey(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicKey(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['LoginApi.getPublicKey']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * LoginApi - factory interface * @export */ -export const LoginApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = LoginApiFp(configuration); - return { - /** - * Read public key for encrypting password. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getPublicKey( - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getPublicKey(options) - .then((request) => request(axios, basePath)); - }, - }; +export const LoginApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = LoginApiFp(configuration) + return { + /** + * Read public key for encrypting password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPublicKey(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getPublicKey(options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -162,15 +115,14 @@ export const LoginApiFactory = function ( * @extends {BaseAPI} */ export class LoginApi extends BaseAPI { - /** - * Read public key for encrypting password. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LoginApi - */ - public getPublicKey(options?: AxiosRequestConfig) { - return LoginApiFp(this.configuration) - .getPublicKey(options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Read public key for encrypting password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoginApi + */ + public getPublicKey(options?: RawAxiosRequestConfig) { + return LoginApiFp(this.configuration).getPublicKey(options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/metrics-halo-run-v1alpha1-counter-api.ts b/ui/packages/api-client/src/api/metrics-halo-run-v1alpha1-counter-api.ts index 9b6f85129..853d71793 100644 --- a/ui/packages/api-client/src/api/metrics-halo-run-v1alpha1-counter-api.ts +++ b/ui/packages/api-client/src/api/metrics-halo-run-v1alpha1-counter-api.ts @@ -5,596 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Counter } from "../models"; +import { Counter } from '../models'; // @ts-ignore -import { CounterList } from "../models"; +import { CounterList } from '../models'; /** * MetricsHaloRunV1alpha1CounterApi - axios parameter creator * @export */ -export const MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create metrics.halo.run/v1alpha1/Counter - * @param {Counter} [counter] Fresh counter - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createmetricsHaloRunV1alpha1Counter: async ( - counter?: Counter, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create metrics.halo.run/v1alpha1/Counter + * @param {Counter} [counter] Fresh counter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createmetricsHaloRunV1alpha1Counter: async (counter?: Counter, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - counter, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete metrics.halo.run/v1alpha1/Counter - * @param {string} name Name of counter - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletemetricsHaloRunV1alpha1Counter: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletemetricsHaloRunV1alpha1Counter", "name", name); - const localVarPath = - `/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(counter, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete metrics.halo.run/v1alpha1/Counter + * @param {string} name Name of counter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletemetricsHaloRunV1alpha1Counter: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletemetricsHaloRunV1alpha1Counter', 'name', name) + const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get metrics.halo.run/v1alpha1/Counter - * @param {string} name Name of counter - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getmetricsHaloRunV1alpha1Counter: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getmetricsHaloRunV1alpha1Counter", "name", name); - const localVarPath = - `/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get metrics.halo.run/v1alpha1/Counter + * @param {string} name Name of counter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getmetricsHaloRunV1alpha1Counter: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getmetricsHaloRunV1alpha1Counter', 'name', name) + const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List metrics.halo.run/v1alpha1/Counter - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listmetricsHaloRunV1alpha1Counter: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List metrics.halo.run/v1alpha1/Counter + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listmetricsHaloRunV1alpha1Counter: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update metrics.halo.run/v1alpha1/Counter - * @param {string} name Name of counter - * @param {Counter} [counter] Updated counter - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatemetricsHaloRunV1alpha1Counter: async ( - name: string, - counter?: Counter, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatemetricsHaloRunV1alpha1Counter", "name", name); - const localVarPath = - `/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update metrics.halo.run/v1alpha1/Counter + * @param {string} name Name of counter + * @param {Counter} [counter] Updated counter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatemetricsHaloRunV1alpha1Counter: async (name: string, counter?: Counter, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatemetricsHaloRunV1alpha1Counter', 'name', name) + const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - counter, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(counter, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * MetricsHaloRunV1alpha1CounterApi - functional programming interface * @export */ -export const MetricsHaloRunV1alpha1CounterApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - MetricsHaloRunV1alpha1CounterApiAxiosParamCreator(configuration); - return { - /** - * Create metrics.halo.run/v1alpha1/Counter - * @param {Counter} [counter] Fresh counter - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createmetricsHaloRunV1alpha1Counter( - counter?: Counter, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createmetricsHaloRunV1alpha1Counter( - counter, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete metrics.halo.run/v1alpha1/Counter - * @param {string} name Name of counter - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletemetricsHaloRunV1alpha1Counter( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletemetricsHaloRunV1alpha1Counter( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get metrics.halo.run/v1alpha1/Counter - * @param {string} name Name of counter - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getmetricsHaloRunV1alpha1Counter( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getmetricsHaloRunV1alpha1Counter( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List metrics.halo.run/v1alpha1/Counter - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listmetricsHaloRunV1alpha1Counter( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listmetricsHaloRunV1alpha1Counter( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update metrics.halo.run/v1alpha1/Counter - * @param {string} name Name of counter - * @param {Counter} [counter] Updated counter - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatemetricsHaloRunV1alpha1Counter( - name: string, - counter?: Counter, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatemetricsHaloRunV1alpha1Counter( - name, - counter, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const MetricsHaloRunV1alpha1CounterApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = MetricsHaloRunV1alpha1CounterApiAxiosParamCreator(configuration) + return { + /** + * Create metrics.halo.run/v1alpha1/Counter + * @param {Counter} [counter] Fresh counter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createmetricsHaloRunV1alpha1Counter(counter?: Counter, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createmetricsHaloRunV1alpha1Counter(counter, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['MetricsHaloRunV1alpha1CounterApi.createmetricsHaloRunV1alpha1Counter']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete metrics.halo.run/v1alpha1/Counter + * @param {string} name Name of counter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletemetricsHaloRunV1alpha1Counter(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletemetricsHaloRunV1alpha1Counter(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['MetricsHaloRunV1alpha1CounterApi.deletemetricsHaloRunV1alpha1Counter']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get metrics.halo.run/v1alpha1/Counter + * @param {string} name Name of counter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getmetricsHaloRunV1alpha1Counter(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getmetricsHaloRunV1alpha1Counter(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['MetricsHaloRunV1alpha1CounterApi.getmetricsHaloRunV1alpha1Counter']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List metrics.halo.run/v1alpha1/Counter + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listmetricsHaloRunV1alpha1Counter(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listmetricsHaloRunV1alpha1Counter(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['MetricsHaloRunV1alpha1CounterApi.listmetricsHaloRunV1alpha1Counter']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update metrics.halo.run/v1alpha1/Counter + * @param {string} name Name of counter + * @param {Counter} [counter] Updated counter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatemetricsHaloRunV1alpha1Counter(name: string, counter?: Counter, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatemetricsHaloRunV1alpha1Counter(name, counter, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['MetricsHaloRunV1alpha1CounterApi.updatemetricsHaloRunV1alpha1Counter']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * MetricsHaloRunV1alpha1CounterApi - factory interface * @export */ -export const MetricsHaloRunV1alpha1CounterApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = MetricsHaloRunV1alpha1CounterApiFp(configuration); - return { - /** - * Create metrics.halo.run/v1alpha1/Counter - * @param {MetricsHaloRunV1alpha1CounterApiCreatemetricsHaloRunV1alpha1CounterRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createmetricsHaloRunV1alpha1Counter( - requestParameters: MetricsHaloRunV1alpha1CounterApiCreatemetricsHaloRunV1alpha1CounterRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createmetricsHaloRunV1alpha1Counter(requestParameters.counter, options) - .then((request) => request(axios, basePath)); - }, - /** - * Delete metrics.halo.run/v1alpha1/Counter - * @param {MetricsHaloRunV1alpha1CounterApiDeletemetricsHaloRunV1alpha1CounterRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletemetricsHaloRunV1alpha1Counter( - requestParameters: MetricsHaloRunV1alpha1CounterApiDeletemetricsHaloRunV1alpha1CounterRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletemetricsHaloRunV1alpha1Counter(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get metrics.halo.run/v1alpha1/Counter - * @param {MetricsHaloRunV1alpha1CounterApiGetmetricsHaloRunV1alpha1CounterRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getmetricsHaloRunV1alpha1Counter( - requestParameters: MetricsHaloRunV1alpha1CounterApiGetmetricsHaloRunV1alpha1CounterRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getmetricsHaloRunV1alpha1Counter(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List metrics.halo.run/v1alpha1/Counter - * @param {MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1CounterRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listmetricsHaloRunV1alpha1Counter( - requestParameters: MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1CounterRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listmetricsHaloRunV1alpha1Counter( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update metrics.halo.run/v1alpha1/Counter - * @param {MetricsHaloRunV1alpha1CounterApiUpdatemetricsHaloRunV1alpha1CounterRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatemetricsHaloRunV1alpha1Counter( - requestParameters: MetricsHaloRunV1alpha1CounterApiUpdatemetricsHaloRunV1alpha1CounterRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatemetricsHaloRunV1alpha1Counter( - requestParameters.name, - requestParameters.counter, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const MetricsHaloRunV1alpha1CounterApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = MetricsHaloRunV1alpha1CounterApiFp(configuration) + return { + /** + * Create metrics.halo.run/v1alpha1/Counter + * @param {MetricsHaloRunV1alpha1CounterApiCreatemetricsHaloRunV1alpha1CounterRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createmetricsHaloRunV1alpha1Counter(requestParameters: MetricsHaloRunV1alpha1CounterApiCreatemetricsHaloRunV1alpha1CounterRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createmetricsHaloRunV1alpha1Counter(requestParameters.counter, options).then((request) => request(axios, basePath)); + }, + /** + * Delete metrics.halo.run/v1alpha1/Counter + * @param {MetricsHaloRunV1alpha1CounterApiDeletemetricsHaloRunV1alpha1CounterRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletemetricsHaloRunV1alpha1Counter(requestParameters: MetricsHaloRunV1alpha1CounterApiDeletemetricsHaloRunV1alpha1CounterRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletemetricsHaloRunV1alpha1Counter(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get metrics.halo.run/v1alpha1/Counter + * @param {MetricsHaloRunV1alpha1CounterApiGetmetricsHaloRunV1alpha1CounterRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getmetricsHaloRunV1alpha1Counter(requestParameters: MetricsHaloRunV1alpha1CounterApiGetmetricsHaloRunV1alpha1CounterRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getmetricsHaloRunV1alpha1Counter(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List metrics.halo.run/v1alpha1/Counter + * @param {MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1CounterRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listmetricsHaloRunV1alpha1Counter(requestParameters: MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1CounterRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listmetricsHaloRunV1alpha1Counter(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update metrics.halo.run/v1alpha1/Counter + * @param {MetricsHaloRunV1alpha1CounterApiUpdatemetricsHaloRunV1alpha1CounterRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatemetricsHaloRunV1alpha1Counter(requestParameters: MetricsHaloRunV1alpha1CounterApiUpdatemetricsHaloRunV1alpha1CounterRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatemetricsHaloRunV1alpha1Counter(requestParameters.name, requestParameters.counter, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -603,12 +400,12 @@ export const MetricsHaloRunV1alpha1CounterApiFactory = function ( * @interface MetricsHaloRunV1alpha1CounterApiCreatemetricsHaloRunV1alpha1CounterRequest */ export interface MetricsHaloRunV1alpha1CounterApiCreatemetricsHaloRunV1alpha1CounterRequest { - /** - * Fresh counter - * @type {Counter} - * @memberof MetricsHaloRunV1alpha1CounterApiCreatemetricsHaloRunV1alpha1Counter - */ - readonly counter?: Counter; + /** + * Fresh counter + * @type {Counter} + * @memberof MetricsHaloRunV1alpha1CounterApiCreatemetricsHaloRunV1alpha1Counter + */ + readonly counter?: Counter } /** @@ -617,12 +414,12 @@ export interface MetricsHaloRunV1alpha1CounterApiCreatemetricsHaloRunV1alpha1Cou * @interface MetricsHaloRunV1alpha1CounterApiDeletemetricsHaloRunV1alpha1CounterRequest */ export interface MetricsHaloRunV1alpha1CounterApiDeletemetricsHaloRunV1alpha1CounterRequest { - /** - * Name of counter - * @type {string} - * @memberof MetricsHaloRunV1alpha1CounterApiDeletemetricsHaloRunV1alpha1Counter - */ - readonly name: string; + /** + * Name of counter + * @type {string} + * @memberof MetricsHaloRunV1alpha1CounterApiDeletemetricsHaloRunV1alpha1Counter + */ + readonly name: string } /** @@ -631,12 +428,12 @@ export interface MetricsHaloRunV1alpha1CounterApiDeletemetricsHaloRunV1alpha1Cou * @interface MetricsHaloRunV1alpha1CounterApiGetmetricsHaloRunV1alpha1CounterRequest */ export interface MetricsHaloRunV1alpha1CounterApiGetmetricsHaloRunV1alpha1CounterRequest { - /** - * Name of counter - * @type {string} - * @memberof MetricsHaloRunV1alpha1CounterApiGetmetricsHaloRunV1alpha1Counter - */ - readonly name: string; + /** + * Name of counter + * @type {string} + * @memberof MetricsHaloRunV1alpha1CounterApiGetmetricsHaloRunV1alpha1Counter + */ + readonly name: string } /** @@ -645,40 +442,40 @@ export interface MetricsHaloRunV1alpha1CounterApiGetmetricsHaloRunV1alpha1Counte * @interface MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1CounterRequest */ export interface MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1CounterRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter + */ + readonly sort?: Array } /** @@ -687,19 +484,19 @@ export interface MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Count * @interface MetricsHaloRunV1alpha1CounterApiUpdatemetricsHaloRunV1alpha1CounterRequest */ export interface MetricsHaloRunV1alpha1CounterApiUpdatemetricsHaloRunV1alpha1CounterRequest { - /** - * Name of counter - * @type {string} - * @memberof MetricsHaloRunV1alpha1CounterApiUpdatemetricsHaloRunV1alpha1Counter - */ - readonly name: string; + /** + * Name of counter + * @type {string} + * @memberof MetricsHaloRunV1alpha1CounterApiUpdatemetricsHaloRunV1alpha1Counter + */ + readonly name: string - /** - * Updated counter - * @type {Counter} - * @memberof MetricsHaloRunV1alpha1CounterApiUpdatemetricsHaloRunV1alpha1Counter - */ - readonly counter?: Counter; + /** + * Updated counter + * @type {Counter} + * @memberof MetricsHaloRunV1alpha1CounterApiUpdatemetricsHaloRunV1alpha1Counter + */ + readonly counter?: Counter } /** @@ -709,94 +506,59 @@ export interface MetricsHaloRunV1alpha1CounterApiUpdatemetricsHaloRunV1alpha1Cou * @extends {BaseAPI} */ export class MetricsHaloRunV1alpha1CounterApi extends BaseAPI { - /** - * Create metrics.halo.run/v1alpha1/Counter - * @param {MetricsHaloRunV1alpha1CounterApiCreatemetricsHaloRunV1alpha1CounterRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof MetricsHaloRunV1alpha1CounterApi - */ - public createmetricsHaloRunV1alpha1Counter( - requestParameters: MetricsHaloRunV1alpha1CounterApiCreatemetricsHaloRunV1alpha1CounterRequest = {}, - options?: AxiosRequestConfig - ) { - return MetricsHaloRunV1alpha1CounterApiFp(this.configuration) - .createmetricsHaloRunV1alpha1Counter(requestParameters.counter, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create metrics.halo.run/v1alpha1/Counter + * @param {MetricsHaloRunV1alpha1CounterApiCreatemetricsHaloRunV1alpha1CounterRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MetricsHaloRunV1alpha1CounterApi + */ + public createmetricsHaloRunV1alpha1Counter(requestParameters: MetricsHaloRunV1alpha1CounterApiCreatemetricsHaloRunV1alpha1CounterRequest = {}, options?: RawAxiosRequestConfig) { + return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).createmetricsHaloRunV1alpha1Counter(requestParameters.counter, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete metrics.halo.run/v1alpha1/Counter - * @param {MetricsHaloRunV1alpha1CounterApiDeletemetricsHaloRunV1alpha1CounterRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof MetricsHaloRunV1alpha1CounterApi - */ - public deletemetricsHaloRunV1alpha1Counter( - requestParameters: MetricsHaloRunV1alpha1CounterApiDeletemetricsHaloRunV1alpha1CounterRequest, - options?: AxiosRequestConfig - ) { - return MetricsHaloRunV1alpha1CounterApiFp(this.configuration) - .deletemetricsHaloRunV1alpha1Counter(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete metrics.halo.run/v1alpha1/Counter + * @param {MetricsHaloRunV1alpha1CounterApiDeletemetricsHaloRunV1alpha1CounterRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MetricsHaloRunV1alpha1CounterApi + */ + public deletemetricsHaloRunV1alpha1Counter(requestParameters: MetricsHaloRunV1alpha1CounterApiDeletemetricsHaloRunV1alpha1CounterRequest, options?: RawAxiosRequestConfig) { + return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).deletemetricsHaloRunV1alpha1Counter(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get metrics.halo.run/v1alpha1/Counter - * @param {MetricsHaloRunV1alpha1CounterApiGetmetricsHaloRunV1alpha1CounterRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof MetricsHaloRunV1alpha1CounterApi - */ - public getmetricsHaloRunV1alpha1Counter( - requestParameters: MetricsHaloRunV1alpha1CounterApiGetmetricsHaloRunV1alpha1CounterRequest, - options?: AxiosRequestConfig - ) { - return MetricsHaloRunV1alpha1CounterApiFp(this.configuration) - .getmetricsHaloRunV1alpha1Counter(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get metrics.halo.run/v1alpha1/Counter + * @param {MetricsHaloRunV1alpha1CounterApiGetmetricsHaloRunV1alpha1CounterRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MetricsHaloRunV1alpha1CounterApi + */ + public getmetricsHaloRunV1alpha1Counter(requestParameters: MetricsHaloRunV1alpha1CounterApiGetmetricsHaloRunV1alpha1CounterRequest, options?: RawAxiosRequestConfig) { + return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).getmetricsHaloRunV1alpha1Counter(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List metrics.halo.run/v1alpha1/Counter - * @param {MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1CounterRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof MetricsHaloRunV1alpha1CounterApi - */ - public listmetricsHaloRunV1alpha1Counter( - requestParameters: MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1CounterRequest = {}, - options?: AxiosRequestConfig - ) { - return MetricsHaloRunV1alpha1CounterApiFp(this.configuration) - .listmetricsHaloRunV1alpha1Counter( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List metrics.halo.run/v1alpha1/Counter + * @param {MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1CounterRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MetricsHaloRunV1alpha1CounterApi + */ + public listmetricsHaloRunV1alpha1Counter(requestParameters: MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1CounterRequest = {}, options?: RawAxiosRequestConfig) { + return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).listmetricsHaloRunV1alpha1Counter(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update metrics.halo.run/v1alpha1/Counter - * @param {MetricsHaloRunV1alpha1CounterApiUpdatemetricsHaloRunV1alpha1CounterRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof MetricsHaloRunV1alpha1CounterApi - */ - public updatemetricsHaloRunV1alpha1Counter( - requestParameters: MetricsHaloRunV1alpha1CounterApiUpdatemetricsHaloRunV1alpha1CounterRequest, - options?: AxiosRequestConfig - ) { - return MetricsHaloRunV1alpha1CounterApiFp(this.configuration) - .updatemetricsHaloRunV1alpha1Counter( - requestParameters.name, - requestParameters.counter, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update metrics.halo.run/v1alpha1/Counter + * @param {MetricsHaloRunV1alpha1CounterApiUpdatemetricsHaloRunV1alpha1CounterRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MetricsHaloRunV1alpha1CounterApi + */ + public updatemetricsHaloRunV1alpha1Counter(requestParameters: MetricsHaloRunV1alpha1CounterApiUpdatemetricsHaloRunV1alpha1CounterRequest, options?: RawAxiosRequestConfig) { + return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).updatemetricsHaloRunV1alpha1Counter(requestParameters.name, requestParameters.counter, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/migration-halo-run-v1alpha1-backup-api.ts b/ui/packages/api-client/src/api/migration-halo-run-v1alpha1-backup-api.ts index 4b5185be5..f899f76c5 100644 --- a/ui/packages/api-client/src/api/migration-halo-run-v1alpha1-backup-api.ts +++ b/ui/packages/api-client/src/api/migration-halo-run-v1alpha1-backup-api.ts @@ -5,596 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Backup } from "../models"; +import { Backup } from '../models'; // @ts-ignore -import { BackupList } from "../models"; +import { BackupList } from '../models'; /** * MigrationHaloRunV1alpha1BackupApi - axios parameter creator * @export */ -export const MigrationHaloRunV1alpha1BackupApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create migration.halo.run/v1alpha1/Backup - * @param {Backup} [backup] Fresh backup - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createmigrationHaloRunV1alpha1Backup: async ( - backup?: Backup, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/migration.halo.run/v1alpha1/backups`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const MigrationHaloRunV1alpha1BackupApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create migration.halo.run/v1alpha1/Backup + * @param {Backup} [backup] Fresh backup + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createmigrationHaloRunV1alpha1Backup: async (backup?: Backup, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/migration.halo.run/v1alpha1/backups`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - backup, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete migration.halo.run/v1alpha1/Backup - * @param {string} name Name of backup - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletemigrationHaloRunV1alpha1Backup: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletemigrationHaloRunV1alpha1Backup", "name", name); - const localVarPath = - `/apis/migration.halo.run/v1alpha1/backups/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(backup, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete migration.halo.run/v1alpha1/Backup + * @param {string} name Name of backup + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletemigrationHaloRunV1alpha1Backup: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletemigrationHaloRunV1alpha1Backup', 'name', name) + const localVarPath = `/apis/migration.halo.run/v1alpha1/backups/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get migration.halo.run/v1alpha1/Backup - * @param {string} name Name of backup - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getmigrationHaloRunV1alpha1Backup: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getmigrationHaloRunV1alpha1Backup", "name", name); - const localVarPath = - `/apis/migration.halo.run/v1alpha1/backups/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get migration.halo.run/v1alpha1/Backup + * @param {string} name Name of backup + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getmigrationHaloRunV1alpha1Backup: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getmigrationHaloRunV1alpha1Backup', 'name', name) + const localVarPath = `/apis/migration.halo.run/v1alpha1/backups/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List migration.halo.run/v1alpha1/Backup - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listmigrationHaloRunV1alpha1Backup: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/migration.halo.run/v1alpha1/backups`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List migration.halo.run/v1alpha1/Backup + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listmigrationHaloRunV1alpha1Backup: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/migration.halo.run/v1alpha1/backups`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update migration.halo.run/v1alpha1/Backup - * @param {string} name Name of backup - * @param {Backup} [backup] Updated backup - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatemigrationHaloRunV1alpha1Backup: async ( - name: string, - backup?: Backup, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatemigrationHaloRunV1alpha1Backup", "name", name); - const localVarPath = - `/apis/migration.halo.run/v1alpha1/backups/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update migration.halo.run/v1alpha1/Backup + * @param {string} name Name of backup + * @param {Backup} [backup] Updated backup + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatemigrationHaloRunV1alpha1Backup: async (name: string, backup?: Backup, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatemigrationHaloRunV1alpha1Backup', 'name', name) + const localVarPath = `/apis/migration.halo.run/v1alpha1/backups/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - backup, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(backup, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * MigrationHaloRunV1alpha1BackupApi - functional programming interface * @export */ -export const MigrationHaloRunV1alpha1BackupApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - MigrationHaloRunV1alpha1BackupApiAxiosParamCreator(configuration); - return { - /** - * Create migration.halo.run/v1alpha1/Backup - * @param {Backup} [backup] Fresh backup - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createmigrationHaloRunV1alpha1Backup( - backup?: Backup, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createmigrationHaloRunV1alpha1Backup( - backup, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete migration.halo.run/v1alpha1/Backup - * @param {string} name Name of backup - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletemigrationHaloRunV1alpha1Backup( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletemigrationHaloRunV1alpha1Backup( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get migration.halo.run/v1alpha1/Backup - * @param {string} name Name of backup - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getmigrationHaloRunV1alpha1Backup( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getmigrationHaloRunV1alpha1Backup( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List migration.halo.run/v1alpha1/Backup - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listmigrationHaloRunV1alpha1Backup( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listmigrationHaloRunV1alpha1Backup( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update migration.halo.run/v1alpha1/Backup - * @param {string} name Name of backup - * @param {Backup} [backup] Updated backup - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatemigrationHaloRunV1alpha1Backup( - name: string, - backup?: Backup, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatemigrationHaloRunV1alpha1Backup( - name, - backup, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const MigrationHaloRunV1alpha1BackupApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = MigrationHaloRunV1alpha1BackupApiAxiosParamCreator(configuration) + return { + /** + * Create migration.halo.run/v1alpha1/Backup + * @param {Backup} [backup] Fresh backup + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createmigrationHaloRunV1alpha1Backup(backup?: Backup, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createmigrationHaloRunV1alpha1Backup(backup, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['MigrationHaloRunV1alpha1BackupApi.createmigrationHaloRunV1alpha1Backup']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete migration.halo.run/v1alpha1/Backup + * @param {string} name Name of backup + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletemigrationHaloRunV1alpha1Backup(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletemigrationHaloRunV1alpha1Backup(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['MigrationHaloRunV1alpha1BackupApi.deletemigrationHaloRunV1alpha1Backup']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get migration.halo.run/v1alpha1/Backup + * @param {string} name Name of backup + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getmigrationHaloRunV1alpha1Backup(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getmigrationHaloRunV1alpha1Backup(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['MigrationHaloRunV1alpha1BackupApi.getmigrationHaloRunV1alpha1Backup']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List migration.halo.run/v1alpha1/Backup + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listmigrationHaloRunV1alpha1Backup(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listmigrationHaloRunV1alpha1Backup(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['MigrationHaloRunV1alpha1BackupApi.listmigrationHaloRunV1alpha1Backup']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update migration.halo.run/v1alpha1/Backup + * @param {string} name Name of backup + * @param {Backup} [backup] Updated backup + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatemigrationHaloRunV1alpha1Backup(name: string, backup?: Backup, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatemigrationHaloRunV1alpha1Backup(name, backup, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['MigrationHaloRunV1alpha1BackupApi.updatemigrationHaloRunV1alpha1Backup']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * MigrationHaloRunV1alpha1BackupApi - factory interface * @export */ -export const MigrationHaloRunV1alpha1BackupApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = MigrationHaloRunV1alpha1BackupApiFp(configuration); - return { - /** - * Create migration.halo.run/v1alpha1/Backup - * @param {MigrationHaloRunV1alpha1BackupApiCreatemigrationHaloRunV1alpha1BackupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createmigrationHaloRunV1alpha1Backup( - requestParameters: MigrationHaloRunV1alpha1BackupApiCreatemigrationHaloRunV1alpha1BackupRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createmigrationHaloRunV1alpha1Backup(requestParameters.backup, options) - .then((request) => request(axios, basePath)); - }, - /** - * Delete migration.halo.run/v1alpha1/Backup - * @param {MigrationHaloRunV1alpha1BackupApiDeletemigrationHaloRunV1alpha1BackupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletemigrationHaloRunV1alpha1Backup( - requestParameters: MigrationHaloRunV1alpha1BackupApiDeletemigrationHaloRunV1alpha1BackupRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletemigrationHaloRunV1alpha1Backup(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get migration.halo.run/v1alpha1/Backup - * @param {MigrationHaloRunV1alpha1BackupApiGetmigrationHaloRunV1alpha1BackupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getmigrationHaloRunV1alpha1Backup( - requestParameters: MigrationHaloRunV1alpha1BackupApiGetmigrationHaloRunV1alpha1BackupRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getmigrationHaloRunV1alpha1Backup(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List migration.halo.run/v1alpha1/Backup - * @param {MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1BackupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listmigrationHaloRunV1alpha1Backup( - requestParameters: MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1BackupRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listmigrationHaloRunV1alpha1Backup( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update migration.halo.run/v1alpha1/Backup - * @param {MigrationHaloRunV1alpha1BackupApiUpdatemigrationHaloRunV1alpha1BackupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatemigrationHaloRunV1alpha1Backup( - requestParameters: MigrationHaloRunV1alpha1BackupApiUpdatemigrationHaloRunV1alpha1BackupRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatemigrationHaloRunV1alpha1Backup( - requestParameters.name, - requestParameters.backup, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const MigrationHaloRunV1alpha1BackupApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = MigrationHaloRunV1alpha1BackupApiFp(configuration) + return { + /** + * Create migration.halo.run/v1alpha1/Backup + * @param {MigrationHaloRunV1alpha1BackupApiCreatemigrationHaloRunV1alpha1BackupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createmigrationHaloRunV1alpha1Backup(requestParameters: MigrationHaloRunV1alpha1BackupApiCreatemigrationHaloRunV1alpha1BackupRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createmigrationHaloRunV1alpha1Backup(requestParameters.backup, options).then((request) => request(axios, basePath)); + }, + /** + * Delete migration.halo.run/v1alpha1/Backup + * @param {MigrationHaloRunV1alpha1BackupApiDeletemigrationHaloRunV1alpha1BackupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletemigrationHaloRunV1alpha1Backup(requestParameters: MigrationHaloRunV1alpha1BackupApiDeletemigrationHaloRunV1alpha1BackupRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletemigrationHaloRunV1alpha1Backup(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get migration.halo.run/v1alpha1/Backup + * @param {MigrationHaloRunV1alpha1BackupApiGetmigrationHaloRunV1alpha1BackupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getmigrationHaloRunV1alpha1Backup(requestParameters: MigrationHaloRunV1alpha1BackupApiGetmigrationHaloRunV1alpha1BackupRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getmigrationHaloRunV1alpha1Backup(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List migration.halo.run/v1alpha1/Backup + * @param {MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1BackupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listmigrationHaloRunV1alpha1Backup(requestParameters: MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1BackupRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listmigrationHaloRunV1alpha1Backup(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update migration.halo.run/v1alpha1/Backup + * @param {MigrationHaloRunV1alpha1BackupApiUpdatemigrationHaloRunV1alpha1BackupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatemigrationHaloRunV1alpha1Backup(requestParameters: MigrationHaloRunV1alpha1BackupApiUpdatemigrationHaloRunV1alpha1BackupRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatemigrationHaloRunV1alpha1Backup(requestParameters.name, requestParameters.backup, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -603,12 +400,12 @@ export const MigrationHaloRunV1alpha1BackupApiFactory = function ( * @interface MigrationHaloRunV1alpha1BackupApiCreatemigrationHaloRunV1alpha1BackupRequest */ export interface MigrationHaloRunV1alpha1BackupApiCreatemigrationHaloRunV1alpha1BackupRequest { - /** - * Fresh backup - * @type {Backup} - * @memberof MigrationHaloRunV1alpha1BackupApiCreatemigrationHaloRunV1alpha1Backup - */ - readonly backup?: Backup; + /** + * Fresh backup + * @type {Backup} + * @memberof MigrationHaloRunV1alpha1BackupApiCreatemigrationHaloRunV1alpha1Backup + */ + readonly backup?: Backup } /** @@ -617,12 +414,12 @@ export interface MigrationHaloRunV1alpha1BackupApiCreatemigrationHaloRunV1alpha1 * @interface MigrationHaloRunV1alpha1BackupApiDeletemigrationHaloRunV1alpha1BackupRequest */ export interface MigrationHaloRunV1alpha1BackupApiDeletemigrationHaloRunV1alpha1BackupRequest { - /** - * Name of backup - * @type {string} - * @memberof MigrationHaloRunV1alpha1BackupApiDeletemigrationHaloRunV1alpha1Backup - */ - readonly name: string; + /** + * Name of backup + * @type {string} + * @memberof MigrationHaloRunV1alpha1BackupApiDeletemigrationHaloRunV1alpha1Backup + */ + readonly name: string } /** @@ -631,12 +428,12 @@ export interface MigrationHaloRunV1alpha1BackupApiDeletemigrationHaloRunV1alpha1 * @interface MigrationHaloRunV1alpha1BackupApiGetmigrationHaloRunV1alpha1BackupRequest */ export interface MigrationHaloRunV1alpha1BackupApiGetmigrationHaloRunV1alpha1BackupRequest { - /** - * Name of backup - * @type {string} - * @memberof MigrationHaloRunV1alpha1BackupApiGetmigrationHaloRunV1alpha1Backup - */ - readonly name: string; + /** + * Name of backup + * @type {string} + * @memberof MigrationHaloRunV1alpha1BackupApiGetmigrationHaloRunV1alpha1Backup + */ + readonly name: string } /** @@ -645,40 +442,40 @@ export interface MigrationHaloRunV1alpha1BackupApiGetmigrationHaloRunV1alpha1Bac * @interface MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1BackupRequest */ export interface MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1BackupRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1Backup - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1Backup + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1Backup - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1Backup + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1Backup - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1Backup + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1Backup - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1Backup + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1Backup - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1Backup + */ + readonly sort?: Array } /** @@ -687,19 +484,19 @@ export interface MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1Ba * @interface MigrationHaloRunV1alpha1BackupApiUpdatemigrationHaloRunV1alpha1BackupRequest */ export interface MigrationHaloRunV1alpha1BackupApiUpdatemigrationHaloRunV1alpha1BackupRequest { - /** - * Name of backup - * @type {string} - * @memberof MigrationHaloRunV1alpha1BackupApiUpdatemigrationHaloRunV1alpha1Backup - */ - readonly name: string; + /** + * Name of backup + * @type {string} + * @memberof MigrationHaloRunV1alpha1BackupApiUpdatemigrationHaloRunV1alpha1Backup + */ + readonly name: string - /** - * Updated backup - * @type {Backup} - * @memberof MigrationHaloRunV1alpha1BackupApiUpdatemigrationHaloRunV1alpha1Backup - */ - readonly backup?: Backup; + /** + * Updated backup + * @type {Backup} + * @memberof MigrationHaloRunV1alpha1BackupApiUpdatemigrationHaloRunV1alpha1Backup + */ + readonly backup?: Backup } /** @@ -709,94 +506,59 @@ export interface MigrationHaloRunV1alpha1BackupApiUpdatemigrationHaloRunV1alpha1 * @extends {BaseAPI} */ export class MigrationHaloRunV1alpha1BackupApi extends BaseAPI { - /** - * Create migration.halo.run/v1alpha1/Backup - * @param {MigrationHaloRunV1alpha1BackupApiCreatemigrationHaloRunV1alpha1BackupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof MigrationHaloRunV1alpha1BackupApi - */ - public createmigrationHaloRunV1alpha1Backup( - requestParameters: MigrationHaloRunV1alpha1BackupApiCreatemigrationHaloRunV1alpha1BackupRequest = {}, - options?: AxiosRequestConfig - ) { - return MigrationHaloRunV1alpha1BackupApiFp(this.configuration) - .createmigrationHaloRunV1alpha1Backup(requestParameters.backup, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create migration.halo.run/v1alpha1/Backup + * @param {MigrationHaloRunV1alpha1BackupApiCreatemigrationHaloRunV1alpha1BackupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MigrationHaloRunV1alpha1BackupApi + */ + public createmigrationHaloRunV1alpha1Backup(requestParameters: MigrationHaloRunV1alpha1BackupApiCreatemigrationHaloRunV1alpha1BackupRequest = {}, options?: RawAxiosRequestConfig) { + return MigrationHaloRunV1alpha1BackupApiFp(this.configuration).createmigrationHaloRunV1alpha1Backup(requestParameters.backup, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete migration.halo.run/v1alpha1/Backup - * @param {MigrationHaloRunV1alpha1BackupApiDeletemigrationHaloRunV1alpha1BackupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof MigrationHaloRunV1alpha1BackupApi - */ - public deletemigrationHaloRunV1alpha1Backup( - requestParameters: MigrationHaloRunV1alpha1BackupApiDeletemigrationHaloRunV1alpha1BackupRequest, - options?: AxiosRequestConfig - ) { - return MigrationHaloRunV1alpha1BackupApiFp(this.configuration) - .deletemigrationHaloRunV1alpha1Backup(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete migration.halo.run/v1alpha1/Backup + * @param {MigrationHaloRunV1alpha1BackupApiDeletemigrationHaloRunV1alpha1BackupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MigrationHaloRunV1alpha1BackupApi + */ + public deletemigrationHaloRunV1alpha1Backup(requestParameters: MigrationHaloRunV1alpha1BackupApiDeletemigrationHaloRunV1alpha1BackupRequest, options?: RawAxiosRequestConfig) { + return MigrationHaloRunV1alpha1BackupApiFp(this.configuration).deletemigrationHaloRunV1alpha1Backup(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get migration.halo.run/v1alpha1/Backup - * @param {MigrationHaloRunV1alpha1BackupApiGetmigrationHaloRunV1alpha1BackupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof MigrationHaloRunV1alpha1BackupApi - */ - public getmigrationHaloRunV1alpha1Backup( - requestParameters: MigrationHaloRunV1alpha1BackupApiGetmigrationHaloRunV1alpha1BackupRequest, - options?: AxiosRequestConfig - ) { - return MigrationHaloRunV1alpha1BackupApiFp(this.configuration) - .getmigrationHaloRunV1alpha1Backup(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get migration.halo.run/v1alpha1/Backup + * @param {MigrationHaloRunV1alpha1BackupApiGetmigrationHaloRunV1alpha1BackupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MigrationHaloRunV1alpha1BackupApi + */ + public getmigrationHaloRunV1alpha1Backup(requestParameters: MigrationHaloRunV1alpha1BackupApiGetmigrationHaloRunV1alpha1BackupRequest, options?: RawAxiosRequestConfig) { + return MigrationHaloRunV1alpha1BackupApiFp(this.configuration).getmigrationHaloRunV1alpha1Backup(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List migration.halo.run/v1alpha1/Backup - * @param {MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1BackupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof MigrationHaloRunV1alpha1BackupApi - */ - public listmigrationHaloRunV1alpha1Backup( - requestParameters: MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1BackupRequest = {}, - options?: AxiosRequestConfig - ) { - return MigrationHaloRunV1alpha1BackupApiFp(this.configuration) - .listmigrationHaloRunV1alpha1Backup( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List migration.halo.run/v1alpha1/Backup + * @param {MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1BackupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MigrationHaloRunV1alpha1BackupApi + */ + public listmigrationHaloRunV1alpha1Backup(requestParameters: MigrationHaloRunV1alpha1BackupApiListmigrationHaloRunV1alpha1BackupRequest = {}, options?: RawAxiosRequestConfig) { + return MigrationHaloRunV1alpha1BackupApiFp(this.configuration).listmigrationHaloRunV1alpha1Backup(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update migration.halo.run/v1alpha1/Backup - * @param {MigrationHaloRunV1alpha1BackupApiUpdatemigrationHaloRunV1alpha1BackupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof MigrationHaloRunV1alpha1BackupApi - */ - public updatemigrationHaloRunV1alpha1Backup( - requestParameters: MigrationHaloRunV1alpha1BackupApiUpdatemigrationHaloRunV1alpha1BackupRequest, - options?: AxiosRequestConfig - ) { - return MigrationHaloRunV1alpha1BackupApiFp(this.configuration) - .updatemigrationHaloRunV1alpha1Backup( - requestParameters.name, - requestParameters.backup, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update migration.halo.run/v1alpha1/Backup + * @param {MigrationHaloRunV1alpha1BackupApiUpdatemigrationHaloRunV1alpha1BackupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MigrationHaloRunV1alpha1BackupApi + */ + public updatemigrationHaloRunV1alpha1Backup(requestParameters: MigrationHaloRunV1alpha1BackupApiUpdatemigrationHaloRunV1alpha1BackupRequest, options?: RawAxiosRequestConfig) { + return MigrationHaloRunV1alpha1BackupApiFp(this.configuration).updatemigrationHaloRunV1alpha1Backup(requestParameters.name, requestParameters.backup, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-notification-api.ts b/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-notification-api.ts index 861aa52db..410fb17dd 100644 --- a/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-notification-api.ts +++ b/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-notification-api.ts @@ -5,620 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Notification } from "../models"; +import { Notification } from '../models'; // @ts-ignore -import { NotificationList } from "../models"; +import { NotificationList } from '../models'; /** * NotificationHaloRunV1alpha1NotificationApi - axios parameter creator * @export */ -export const NotificationHaloRunV1alpha1NotificationApiAxiosParamCreator = - function (configuration?: Configuration) { +export const NotificationHaloRunV1alpha1NotificationApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Create notification.halo.run/v1alpha1/Notification - * @param {Notification} [notification] Fresh notification - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createnotificationHaloRunV1alpha1Notification: async ( - notification?: Notification, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/notification.halo.run/v1alpha1/notifications`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * Create notification.halo.run/v1alpha1/Notification + * @param {Notification} [notification] Fresh notification + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createnotificationHaloRunV1alpha1Notification: async (notification?: Notification, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/notification.halo.run/v1alpha1/notifications`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - notification, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete notification.halo.run/v1alpha1/Notification - * @param {string} name Name of notification - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletenotificationHaloRunV1alpha1Notification: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "deletenotificationHaloRunV1alpha1Notification", - "name", - name - ); - const localVarPath = - `/apis/notification.halo.run/v1alpha1/notifications/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(notification, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete notification.halo.run/v1alpha1/Notification + * @param {string} name Name of notification + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletenotificationHaloRunV1alpha1Notification: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletenotificationHaloRunV1alpha1Notification', 'name', name) + const localVarPath = `/apis/notification.halo.run/v1alpha1/notifications/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get notification.halo.run/v1alpha1/Notification - * @param {string} name Name of notification - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getnotificationHaloRunV1alpha1Notification: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "getnotificationHaloRunV1alpha1Notification", - "name", - name - ); - const localVarPath = - `/apis/notification.halo.run/v1alpha1/notifications/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get notification.halo.run/v1alpha1/Notification + * @param {string} name Name of notification + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getnotificationHaloRunV1alpha1Notification: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getnotificationHaloRunV1alpha1Notification', 'name', name) + const localVarPath = `/apis/notification.halo.run/v1alpha1/notifications/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List notification.halo.run/v1alpha1/Notification - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listnotificationHaloRunV1alpha1Notification: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/notification.halo.run/v1alpha1/notifications`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List notification.halo.run/v1alpha1/Notification + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listnotificationHaloRunV1alpha1Notification: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/notification.halo.run/v1alpha1/notifications`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update notification.halo.run/v1alpha1/Notification - * @param {string} name Name of notification - * @param {Notification} [notification] Updated notification - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatenotificationHaloRunV1alpha1Notification: async ( - name: string, - notification?: Notification, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "updatenotificationHaloRunV1alpha1Notification", - "name", - name - ); - const localVarPath = - `/apis/notification.halo.run/v1alpha1/notifications/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update notification.halo.run/v1alpha1/Notification + * @param {string} name Name of notification + * @param {Notification} [notification] Updated notification + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatenotificationHaloRunV1alpha1Notification: async (name: string, notification?: Notification, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatenotificationHaloRunV1alpha1Notification', 'name', name) + const localVarPath = `/apis/notification.halo.run/v1alpha1/notifications/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - notification, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(notification, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * NotificationHaloRunV1alpha1NotificationApi - functional programming interface * @export */ -export const NotificationHaloRunV1alpha1NotificationApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - NotificationHaloRunV1alpha1NotificationApiAxiosParamCreator(configuration); - return { - /** - * Create notification.halo.run/v1alpha1/Notification - * @param {Notification} [notification] Fresh notification - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createnotificationHaloRunV1alpha1Notification( - notification?: Notification, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createnotificationHaloRunV1alpha1Notification( - notification, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete notification.halo.run/v1alpha1/Notification - * @param {string} name Name of notification - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletenotificationHaloRunV1alpha1Notification( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletenotificationHaloRunV1alpha1Notification( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get notification.halo.run/v1alpha1/Notification - * @param {string} name Name of notification - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getnotificationHaloRunV1alpha1Notification( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getnotificationHaloRunV1alpha1Notification( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List notification.halo.run/v1alpha1/Notification - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listnotificationHaloRunV1alpha1Notification( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listnotificationHaloRunV1alpha1Notification( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update notification.halo.run/v1alpha1/Notification - * @param {string} name Name of notification - * @param {Notification} [notification] Updated notification - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatenotificationHaloRunV1alpha1Notification( - name: string, - notification?: Notification, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatenotificationHaloRunV1alpha1Notification( - name, - notification, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const NotificationHaloRunV1alpha1NotificationApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = NotificationHaloRunV1alpha1NotificationApiAxiosParamCreator(configuration) + return { + /** + * Create notification.halo.run/v1alpha1/Notification + * @param {Notification} [notification] Fresh notification + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createnotificationHaloRunV1alpha1Notification(notification?: Notification, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createnotificationHaloRunV1alpha1Notification(notification, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1NotificationApi.createnotificationHaloRunV1alpha1Notification']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete notification.halo.run/v1alpha1/Notification + * @param {string} name Name of notification + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletenotificationHaloRunV1alpha1Notification(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletenotificationHaloRunV1alpha1Notification(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1NotificationApi.deletenotificationHaloRunV1alpha1Notification']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get notification.halo.run/v1alpha1/Notification + * @param {string} name Name of notification + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getnotificationHaloRunV1alpha1Notification(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getnotificationHaloRunV1alpha1Notification(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1NotificationApi.getnotificationHaloRunV1alpha1Notification']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List notification.halo.run/v1alpha1/Notification + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listnotificationHaloRunV1alpha1Notification(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listnotificationHaloRunV1alpha1Notification(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1NotificationApi.listnotificationHaloRunV1alpha1Notification']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update notification.halo.run/v1alpha1/Notification + * @param {string} name Name of notification + * @param {Notification} [notification] Updated notification + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatenotificationHaloRunV1alpha1Notification(name: string, notification?: Notification, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatenotificationHaloRunV1alpha1Notification(name, notification, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1NotificationApi.updatenotificationHaloRunV1alpha1Notification']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * NotificationHaloRunV1alpha1NotificationApi - factory interface * @export */ -export const NotificationHaloRunV1alpha1NotificationApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = - NotificationHaloRunV1alpha1NotificationApiFp(configuration); - return { - /** - * Create notification.halo.run/v1alpha1/Notification - * @param {NotificationHaloRunV1alpha1NotificationApiCreatenotificationHaloRunV1alpha1NotificationRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createnotificationHaloRunV1alpha1Notification( - requestParameters: NotificationHaloRunV1alpha1NotificationApiCreatenotificationHaloRunV1alpha1NotificationRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createnotificationHaloRunV1alpha1Notification( - requestParameters.notification, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Delete notification.halo.run/v1alpha1/Notification - * @param {NotificationHaloRunV1alpha1NotificationApiDeletenotificationHaloRunV1alpha1NotificationRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletenotificationHaloRunV1alpha1Notification( - requestParameters: NotificationHaloRunV1alpha1NotificationApiDeletenotificationHaloRunV1alpha1NotificationRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletenotificationHaloRunV1alpha1Notification( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Get notification.halo.run/v1alpha1/Notification - * @param {NotificationHaloRunV1alpha1NotificationApiGetnotificationHaloRunV1alpha1NotificationRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getnotificationHaloRunV1alpha1Notification( - requestParameters: NotificationHaloRunV1alpha1NotificationApiGetnotificationHaloRunV1alpha1NotificationRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getnotificationHaloRunV1alpha1Notification( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * List notification.halo.run/v1alpha1/Notification - * @param {NotificationHaloRunV1alpha1NotificationApiListnotificationHaloRunV1alpha1NotificationRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listnotificationHaloRunV1alpha1Notification( - requestParameters: NotificationHaloRunV1alpha1NotificationApiListnotificationHaloRunV1alpha1NotificationRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listnotificationHaloRunV1alpha1Notification( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update notification.halo.run/v1alpha1/Notification - * @param {NotificationHaloRunV1alpha1NotificationApiUpdatenotificationHaloRunV1alpha1NotificationRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatenotificationHaloRunV1alpha1Notification( - requestParameters: NotificationHaloRunV1alpha1NotificationApiUpdatenotificationHaloRunV1alpha1NotificationRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatenotificationHaloRunV1alpha1Notification( - requestParameters.name, - requestParameters.notification, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const NotificationHaloRunV1alpha1NotificationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = NotificationHaloRunV1alpha1NotificationApiFp(configuration) + return { + /** + * Create notification.halo.run/v1alpha1/Notification + * @param {NotificationHaloRunV1alpha1NotificationApiCreatenotificationHaloRunV1alpha1NotificationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createnotificationHaloRunV1alpha1Notification(requestParameters: NotificationHaloRunV1alpha1NotificationApiCreatenotificationHaloRunV1alpha1NotificationRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createnotificationHaloRunV1alpha1Notification(requestParameters.notification, options).then((request) => request(axios, basePath)); + }, + /** + * Delete notification.halo.run/v1alpha1/Notification + * @param {NotificationHaloRunV1alpha1NotificationApiDeletenotificationHaloRunV1alpha1NotificationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletenotificationHaloRunV1alpha1Notification(requestParameters: NotificationHaloRunV1alpha1NotificationApiDeletenotificationHaloRunV1alpha1NotificationRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletenotificationHaloRunV1alpha1Notification(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get notification.halo.run/v1alpha1/Notification + * @param {NotificationHaloRunV1alpha1NotificationApiGetnotificationHaloRunV1alpha1NotificationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getnotificationHaloRunV1alpha1Notification(requestParameters: NotificationHaloRunV1alpha1NotificationApiGetnotificationHaloRunV1alpha1NotificationRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getnotificationHaloRunV1alpha1Notification(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List notification.halo.run/v1alpha1/Notification + * @param {NotificationHaloRunV1alpha1NotificationApiListnotificationHaloRunV1alpha1NotificationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listnotificationHaloRunV1alpha1Notification(requestParameters: NotificationHaloRunV1alpha1NotificationApiListnotificationHaloRunV1alpha1NotificationRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listnotificationHaloRunV1alpha1Notification(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update notification.halo.run/v1alpha1/Notification + * @param {NotificationHaloRunV1alpha1NotificationApiUpdatenotificationHaloRunV1alpha1NotificationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatenotificationHaloRunV1alpha1Notification(requestParameters: NotificationHaloRunV1alpha1NotificationApiUpdatenotificationHaloRunV1alpha1NotificationRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatenotificationHaloRunV1alpha1Notification(requestParameters.name, requestParameters.notification, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -627,12 +400,12 @@ export const NotificationHaloRunV1alpha1NotificationApiFactory = function ( * @interface NotificationHaloRunV1alpha1NotificationApiCreatenotificationHaloRunV1alpha1NotificationRequest */ export interface NotificationHaloRunV1alpha1NotificationApiCreatenotificationHaloRunV1alpha1NotificationRequest { - /** - * Fresh notification - * @type {Notification} - * @memberof NotificationHaloRunV1alpha1NotificationApiCreatenotificationHaloRunV1alpha1Notification - */ - readonly notification?: Notification; + /** + * Fresh notification + * @type {Notification} + * @memberof NotificationHaloRunV1alpha1NotificationApiCreatenotificationHaloRunV1alpha1Notification + */ + readonly notification?: Notification } /** @@ -641,12 +414,12 @@ export interface NotificationHaloRunV1alpha1NotificationApiCreatenotificationHal * @interface NotificationHaloRunV1alpha1NotificationApiDeletenotificationHaloRunV1alpha1NotificationRequest */ export interface NotificationHaloRunV1alpha1NotificationApiDeletenotificationHaloRunV1alpha1NotificationRequest { - /** - * Name of notification - * @type {string} - * @memberof NotificationHaloRunV1alpha1NotificationApiDeletenotificationHaloRunV1alpha1Notification - */ - readonly name: string; + /** + * Name of notification + * @type {string} + * @memberof NotificationHaloRunV1alpha1NotificationApiDeletenotificationHaloRunV1alpha1Notification + */ + readonly name: string } /** @@ -655,12 +428,12 @@ export interface NotificationHaloRunV1alpha1NotificationApiDeletenotificationHal * @interface NotificationHaloRunV1alpha1NotificationApiGetnotificationHaloRunV1alpha1NotificationRequest */ export interface NotificationHaloRunV1alpha1NotificationApiGetnotificationHaloRunV1alpha1NotificationRequest { - /** - * Name of notification - * @type {string} - * @memberof NotificationHaloRunV1alpha1NotificationApiGetnotificationHaloRunV1alpha1Notification - */ - readonly name: string; + /** + * Name of notification + * @type {string} + * @memberof NotificationHaloRunV1alpha1NotificationApiGetnotificationHaloRunV1alpha1Notification + */ + readonly name: string } /** @@ -669,40 +442,40 @@ export interface NotificationHaloRunV1alpha1NotificationApiGetnotificationHaloRu * @interface NotificationHaloRunV1alpha1NotificationApiListnotificationHaloRunV1alpha1NotificationRequest */ export interface NotificationHaloRunV1alpha1NotificationApiListnotificationHaloRunV1alpha1NotificationRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof NotificationHaloRunV1alpha1NotificationApiListnotificationHaloRunV1alpha1Notification - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof NotificationHaloRunV1alpha1NotificationApiListnotificationHaloRunV1alpha1Notification + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof NotificationHaloRunV1alpha1NotificationApiListnotificationHaloRunV1alpha1Notification - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof NotificationHaloRunV1alpha1NotificationApiListnotificationHaloRunV1alpha1Notification + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof NotificationHaloRunV1alpha1NotificationApiListnotificationHaloRunV1alpha1Notification - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof NotificationHaloRunV1alpha1NotificationApiListnotificationHaloRunV1alpha1Notification + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof NotificationHaloRunV1alpha1NotificationApiListnotificationHaloRunV1alpha1Notification - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof NotificationHaloRunV1alpha1NotificationApiListnotificationHaloRunV1alpha1Notification + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof NotificationHaloRunV1alpha1NotificationApiListnotificationHaloRunV1alpha1Notification - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof NotificationHaloRunV1alpha1NotificationApiListnotificationHaloRunV1alpha1Notification + */ + readonly sort?: Array } /** @@ -711,19 +484,19 @@ export interface NotificationHaloRunV1alpha1NotificationApiListnotificationHaloR * @interface NotificationHaloRunV1alpha1NotificationApiUpdatenotificationHaloRunV1alpha1NotificationRequest */ export interface NotificationHaloRunV1alpha1NotificationApiUpdatenotificationHaloRunV1alpha1NotificationRequest { - /** - * Name of notification - * @type {string} - * @memberof NotificationHaloRunV1alpha1NotificationApiUpdatenotificationHaloRunV1alpha1Notification - */ - readonly name: string; + /** + * Name of notification + * @type {string} + * @memberof NotificationHaloRunV1alpha1NotificationApiUpdatenotificationHaloRunV1alpha1Notification + */ + readonly name: string - /** - * Updated notification - * @type {Notification} - * @memberof NotificationHaloRunV1alpha1NotificationApiUpdatenotificationHaloRunV1alpha1Notification - */ - readonly notification?: Notification; + /** + * Updated notification + * @type {Notification} + * @memberof NotificationHaloRunV1alpha1NotificationApiUpdatenotificationHaloRunV1alpha1Notification + */ + readonly notification?: Notification } /** @@ -733,103 +506,59 @@ export interface NotificationHaloRunV1alpha1NotificationApiUpdatenotificationHal * @extends {BaseAPI} */ export class NotificationHaloRunV1alpha1NotificationApi extends BaseAPI { - /** - * Create notification.halo.run/v1alpha1/Notification - * @param {NotificationHaloRunV1alpha1NotificationApiCreatenotificationHaloRunV1alpha1NotificationRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1NotificationApi - */ - public createnotificationHaloRunV1alpha1Notification( - requestParameters: NotificationHaloRunV1alpha1NotificationApiCreatenotificationHaloRunV1alpha1NotificationRequest = {}, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1NotificationApiFp(this.configuration) - .createnotificationHaloRunV1alpha1Notification( - requestParameters.notification, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create notification.halo.run/v1alpha1/Notification + * @param {NotificationHaloRunV1alpha1NotificationApiCreatenotificationHaloRunV1alpha1NotificationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1NotificationApi + */ + public createnotificationHaloRunV1alpha1Notification(requestParameters: NotificationHaloRunV1alpha1NotificationApiCreatenotificationHaloRunV1alpha1NotificationRequest = {}, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1NotificationApiFp(this.configuration).createnotificationHaloRunV1alpha1Notification(requestParameters.notification, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete notification.halo.run/v1alpha1/Notification - * @param {NotificationHaloRunV1alpha1NotificationApiDeletenotificationHaloRunV1alpha1NotificationRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1NotificationApi - */ - public deletenotificationHaloRunV1alpha1Notification( - requestParameters: NotificationHaloRunV1alpha1NotificationApiDeletenotificationHaloRunV1alpha1NotificationRequest, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1NotificationApiFp(this.configuration) - .deletenotificationHaloRunV1alpha1Notification( - requestParameters.name, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete notification.halo.run/v1alpha1/Notification + * @param {NotificationHaloRunV1alpha1NotificationApiDeletenotificationHaloRunV1alpha1NotificationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1NotificationApi + */ + public deletenotificationHaloRunV1alpha1Notification(requestParameters: NotificationHaloRunV1alpha1NotificationApiDeletenotificationHaloRunV1alpha1NotificationRequest, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1NotificationApiFp(this.configuration).deletenotificationHaloRunV1alpha1Notification(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get notification.halo.run/v1alpha1/Notification - * @param {NotificationHaloRunV1alpha1NotificationApiGetnotificationHaloRunV1alpha1NotificationRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1NotificationApi - */ - public getnotificationHaloRunV1alpha1Notification( - requestParameters: NotificationHaloRunV1alpha1NotificationApiGetnotificationHaloRunV1alpha1NotificationRequest, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1NotificationApiFp(this.configuration) - .getnotificationHaloRunV1alpha1Notification( - requestParameters.name, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get notification.halo.run/v1alpha1/Notification + * @param {NotificationHaloRunV1alpha1NotificationApiGetnotificationHaloRunV1alpha1NotificationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1NotificationApi + */ + public getnotificationHaloRunV1alpha1Notification(requestParameters: NotificationHaloRunV1alpha1NotificationApiGetnotificationHaloRunV1alpha1NotificationRequest, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1NotificationApiFp(this.configuration).getnotificationHaloRunV1alpha1Notification(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List notification.halo.run/v1alpha1/Notification - * @param {NotificationHaloRunV1alpha1NotificationApiListnotificationHaloRunV1alpha1NotificationRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1NotificationApi - */ - public listnotificationHaloRunV1alpha1Notification( - requestParameters: NotificationHaloRunV1alpha1NotificationApiListnotificationHaloRunV1alpha1NotificationRequest = {}, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1NotificationApiFp(this.configuration) - .listnotificationHaloRunV1alpha1Notification( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List notification.halo.run/v1alpha1/Notification + * @param {NotificationHaloRunV1alpha1NotificationApiListnotificationHaloRunV1alpha1NotificationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1NotificationApi + */ + public listnotificationHaloRunV1alpha1Notification(requestParameters: NotificationHaloRunV1alpha1NotificationApiListnotificationHaloRunV1alpha1NotificationRequest = {}, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1NotificationApiFp(this.configuration).listnotificationHaloRunV1alpha1Notification(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update notification.halo.run/v1alpha1/Notification - * @param {NotificationHaloRunV1alpha1NotificationApiUpdatenotificationHaloRunV1alpha1NotificationRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1NotificationApi - */ - public updatenotificationHaloRunV1alpha1Notification( - requestParameters: NotificationHaloRunV1alpha1NotificationApiUpdatenotificationHaloRunV1alpha1NotificationRequest, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1NotificationApiFp(this.configuration) - .updatenotificationHaloRunV1alpha1Notification( - requestParameters.name, - requestParameters.notification, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update notification.halo.run/v1alpha1/Notification + * @param {NotificationHaloRunV1alpha1NotificationApiUpdatenotificationHaloRunV1alpha1NotificationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1NotificationApi + */ + public updatenotificationHaloRunV1alpha1Notification(requestParameters: NotificationHaloRunV1alpha1NotificationApiUpdatenotificationHaloRunV1alpha1NotificationRequest, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1NotificationApiFp(this.configuration).updatenotificationHaloRunV1alpha1Notification(requestParameters.name, requestParameters.notification, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-notification-template-api.ts b/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-notification-template-api.ts index e1bb70555..bc7dd4442 100644 --- a/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-notification-template-api.ts +++ b/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-notification-template-api.ts @@ -5,633 +5,394 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { NotificationTemplate } from "../models"; +import { NotificationTemplate } from '../models'; // @ts-ignore -import { NotificationTemplateList } from "../models"; +import { NotificationTemplateList } from '../models'; /** * NotificationHaloRunV1alpha1NotificationTemplateApi - axios parameter creator * @export */ -export const NotificationHaloRunV1alpha1NotificationTemplateApiAxiosParamCreator = - function (configuration?: Configuration) { +export const NotificationHaloRunV1alpha1NotificationTemplateApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Create notification.halo.run/v1alpha1/NotificationTemplate - * @param {NotificationTemplate} [notificationTemplate] Fresh notificationtemplate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createnotificationHaloRunV1alpha1NotificationTemplate: async ( - notificationTemplate?: NotificationTemplate, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/notification.halo.run/v1alpha1/notificationtemplates`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * Create notification.halo.run/v1alpha1/NotificationTemplate + * @param {NotificationTemplate} [notificationTemplate] Fresh notificationtemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createnotificationHaloRunV1alpha1NotificationTemplate: async (notificationTemplate?: NotificationTemplate, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/notification.halo.run/v1alpha1/notificationtemplates`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - notificationTemplate, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete notification.halo.run/v1alpha1/NotificationTemplate - * @param {string} name Name of notificationtemplate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletenotificationHaloRunV1alpha1NotificationTemplate: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "deletenotificationHaloRunV1alpha1NotificationTemplate", - "name", - name - ); - const localVarPath = - `/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(notificationTemplate, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete notification.halo.run/v1alpha1/NotificationTemplate + * @param {string} name Name of notificationtemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletenotificationHaloRunV1alpha1NotificationTemplate: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletenotificationHaloRunV1alpha1NotificationTemplate', 'name', name) + const localVarPath = `/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get notification.halo.run/v1alpha1/NotificationTemplate - * @param {string} name Name of notificationtemplate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getnotificationHaloRunV1alpha1NotificationTemplate: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "getnotificationHaloRunV1alpha1NotificationTemplate", - "name", - name - ); - const localVarPath = - `/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get notification.halo.run/v1alpha1/NotificationTemplate + * @param {string} name Name of notificationtemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getnotificationHaloRunV1alpha1NotificationTemplate: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getnotificationHaloRunV1alpha1NotificationTemplate', 'name', name) + const localVarPath = `/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List notification.halo.run/v1alpha1/NotificationTemplate - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listnotificationHaloRunV1alpha1NotificationTemplate: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/notification.halo.run/v1alpha1/notificationtemplates`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List notification.halo.run/v1alpha1/NotificationTemplate + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listnotificationHaloRunV1alpha1NotificationTemplate: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/notification.halo.run/v1alpha1/notificationtemplates`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update notification.halo.run/v1alpha1/NotificationTemplate - * @param {string} name Name of notificationtemplate - * @param {NotificationTemplate} [notificationTemplate] Updated notificationtemplate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatenotificationHaloRunV1alpha1NotificationTemplate: async ( - name: string, - notificationTemplate?: NotificationTemplate, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "updatenotificationHaloRunV1alpha1NotificationTemplate", - "name", - name - ); - const localVarPath = - `/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update notification.halo.run/v1alpha1/NotificationTemplate + * @param {string} name Name of notificationtemplate + * @param {NotificationTemplate} [notificationTemplate] Updated notificationtemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatenotificationHaloRunV1alpha1NotificationTemplate: async (name: string, notificationTemplate?: NotificationTemplate, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatenotificationHaloRunV1alpha1NotificationTemplate', 'name', name) + const localVarPath = `/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - notificationTemplate, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(notificationTemplate, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * NotificationHaloRunV1alpha1NotificationTemplateApi - functional programming interface * @export */ -export const NotificationHaloRunV1alpha1NotificationTemplateApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - NotificationHaloRunV1alpha1NotificationTemplateApiAxiosParamCreator( - configuration - ); - return { - /** - * Create notification.halo.run/v1alpha1/NotificationTemplate - * @param {NotificationTemplate} [notificationTemplate] Fresh notificationtemplate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createnotificationHaloRunV1alpha1NotificationTemplate( - notificationTemplate?: NotificationTemplate, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createnotificationHaloRunV1alpha1NotificationTemplate( - notificationTemplate, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete notification.halo.run/v1alpha1/NotificationTemplate - * @param {string} name Name of notificationtemplate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletenotificationHaloRunV1alpha1NotificationTemplate( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletenotificationHaloRunV1alpha1NotificationTemplate( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get notification.halo.run/v1alpha1/NotificationTemplate - * @param {string} name Name of notificationtemplate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getnotificationHaloRunV1alpha1NotificationTemplate( - name: string, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getnotificationHaloRunV1alpha1NotificationTemplate( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List notification.halo.run/v1alpha1/NotificationTemplate - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listnotificationHaloRunV1alpha1NotificationTemplate( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listnotificationHaloRunV1alpha1NotificationTemplate( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update notification.halo.run/v1alpha1/NotificationTemplate - * @param {string} name Name of notificationtemplate - * @param {NotificationTemplate} [notificationTemplate] Updated notificationtemplate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatenotificationHaloRunV1alpha1NotificationTemplate( - name: string, - notificationTemplate?: NotificationTemplate, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatenotificationHaloRunV1alpha1NotificationTemplate( - name, - notificationTemplate, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const NotificationHaloRunV1alpha1NotificationTemplateApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = NotificationHaloRunV1alpha1NotificationTemplateApiAxiosParamCreator(configuration) + return { + /** + * Create notification.halo.run/v1alpha1/NotificationTemplate + * @param {NotificationTemplate} [notificationTemplate] Fresh notificationtemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createnotificationHaloRunV1alpha1NotificationTemplate(notificationTemplate?: NotificationTemplate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createnotificationHaloRunV1alpha1NotificationTemplate(notificationTemplate, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1NotificationTemplateApi.createnotificationHaloRunV1alpha1NotificationTemplate']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete notification.halo.run/v1alpha1/NotificationTemplate + * @param {string} name Name of notificationtemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletenotificationHaloRunV1alpha1NotificationTemplate(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletenotificationHaloRunV1alpha1NotificationTemplate(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1NotificationTemplateApi.deletenotificationHaloRunV1alpha1NotificationTemplate']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get notification.halo.run/v1alpha1/NotificationTemplate + * @param {string} name Name of notificationtemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getnotificationHaloRunV1alpha1NotificationTemplate(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getnotificationHaloRunV1alpha1NotificationTemplate(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1NotificationTemplateApi.getnotificationHaloRunV1alpha1NotificationTemplate']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List notification.halo.run/v1alpha1/NotificationTemplate + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listnotificationHaloRunV1alpha1NotificationTemplate(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listnotificationHaloRunV1alpha1NotificationTemplate(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1NotificationTemplateApi.listnotificationHaloRunV1alpha1NotificationTemplate']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update notification.halo.run/v1alpha1/NotificationTemplate + * @param {string} name Name of notificationtemplate + * @param {NotificationTemplate} [notificationTemplate] Updated notificationtemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatenotificationHaloRunV1alpha1NotificationTemplate(name: string, notificationTemplate?: NotificationTemplate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatenotificationHaloRunV1alpha1NotificationTemplate(name, notificationTemplate, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1NotificationTemplateApi.updatenotificationHaloRunV1alpha1NotificationTemplate']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * NotificationHaloRunV1alpha1NotificationTemplateApi - factory interface * @export */ -export const NotificationHaloRunV1alpha1NotificationTemplateApiFactory = - function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance - ) { - const localVarFp = - NotificationHaloRunV1alpha1NotificationTemplateApiFp(configuration); +export const NotificationHaloRunV1alpha1NotificationTemplateApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = NotificationHaloRunV1alpha1NotificationTemplateApiFp(configuration) return { - /** - * Create notification.halo.run/v1alpha1/NotificationTemplate - * @param {NotificationHaloRunV1alpha1NotificationTemplateApiCreatenotificationHaloRunV1alpha1NotificationTemplateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createnotificationHaloRunV1alpha1NotificationTemplate( - requestParameters: NotificationHaloRunV1alpha1NotificationTemplateApiCreatenotificationHaloRunV1alpha1NotificationTemplateRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createnotificationHaloRunV1alpha1NotificationTemplate( - requestParameters.notificationTemplate, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Delete notification.halo.run/v1alpha1/NotificationTemplate - * @param {NotificationHaloRunV1alpha1NotificationTemplateApiDeletenotificationHaloRunV1alpha1NotificationTemplateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletenotificationHaloRunV1alpha1NotificationTemplate( - requestParameters: NotificationHaloRunV1alpha1NotificationTemplateApiDeletenotificationHaloRunV1alpha1NotificationTemplateRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletenotificationHaloRunV1alpha1NotificationTemplate( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Get notification.halo.run/v1alpha1/NotificationTemplate - * @param {NotificationHaloRunV1alpha1NotificationTemplateApiGetnotificationHaloRunV1alpha1NotificationTemplateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getnotificationHaloRunV1alpha1NotificationTemplate( - requestParameters: NotificationHaloRunV1alpha1NotificationTemplateApiGetnotificationHaloRunV1alpha1NotificationTemplateRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getnotificationHaloRunV1alpha1NotificationTemplate( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * List notification.halo.run/v1alpha1/NotificationTemplate - * @param {NotificationHaloRunV1alpha1NotificationTemplateApiListnotificationHaloRunV1alpha1NotificationTemplateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listnotificationHaloRunV1alpha1NotificationTemplate( - requestParameters: NotificationHaloRunV1alpha1NotificationTemplateApiListnotificationHaloRunV1alpha1NotificationTemplateRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listnotificationHaloRunV1alpha1NotificationTemplate( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update notification.halo.run/v1alpha1/NotificationTemplate - * @param {NotificationHaloRunV1alpha1NotificationTemplateApiUpdatenotificationHaloRunV1alpha1NotificationTemplateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatenotificationHaloRunV1alpha1NotificationTemplate( - requestParameters: NotificationHaloRunV1alpha1NotificationTemplateApiUpdatenotificationHaloRunV1alpha1NotificationTemplateRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatenotificationHaloRunV1alpha1NotificationTemplate( - requestParameters.name, - requestParameters.notificationTemplate, - options - ) - .then((request) => request(axios, basePath)); - }, + /** + * Create notification.halo.run/v1alpha1/NotificationTemplate + * @param {NotificationHaloRunV1alpha1NotificationTemplateApiCreatenotificationHaloRunV1alpha1NotificationTemplateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createnotificationHaloRunV1alpha1NotificationTemplate(requestParameters: NotificationHaloRunV1alpha1NotificationTemplateApiCreatenotificationHaloRunV1alpha1NotificationTemplateRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createnotificationHaloRunV1alpha1NotificationTemplate(requestParameters.notificationTemplate, options).then((request) => request(axios, basePath)); + }, + /** + * Delete notification.halo.run/v1alpha1/NotificationTemplate + * @param {NotificationHaloRunV1alpha1NotificationTemplateApiDeletenotificationHaloRunV1alpha1NotificationTemplateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletenotificationHaloRunV1alpha1NotificationTemplate(requestParameters: NotificationHaloRunV1alpha1NotificationTemplateApiDeletenotificationHaloRunV1alpha1NotificationTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletenotificationHaloRunV1alpha1NotificationTemplate(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get notification.halo.run/v1alpha1/NotificationTemplate + * @param {NotificationHaloRunV1alpha1NotificationTemplateApiGetnotificationHaloRunV1alpha1NotificationTemplateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getnotificationHaloRunV1alpha1NotificationTemplate(requestParameters: NotificationHaloRunV1alpha1NotificationTemplateApiGetnotificationHaloRunV1alpha1NotificationTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getnotificationHaloRunV1alpha1NotificationTemplate(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List notification.halo.run/v1alpha1/NotificationTemplate + * @param {NotificationHaloRunV1alpha1NotificationTemplateApiListnotificationHaloRunV1alpha1NotificationTemplateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listnotificationHaloRunV1alpha1NotificationTemplate(requestParameters: NotificationHaloRunV1alpha1NotificationTemplateApiListnotificationHaloRunV1alpha1NotificationTemplateRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listnotificationHaloRunV1alpha1NotificationTemplate(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update notification.halo.run/v1alpha1/NotificationTemplate + * @param {NotificationHaloRunV1alpha1NotificationTemplateApiUpdatenotificationHaloRunV1alpha1NotificationTemplateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatenotificationHaloRunV1alpha1NotificationTemplate(requestParameters: NotificationHaloRunV1alpha1NotificationTemplateApiUpdatenotificationHaloRunV1alpha1NotificationTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatenotificationHaloRunV1alpha1NotificationTemplate(requestParameters.name, requestParameters.notificationTemplate, options).then((request) => request(axios, basePath)); + }, }; - }; +}; /** * Request parameters for createnotificationHaloRunV1alpha1NotificationTemplate operation in NotificationHaloRunV1alpha1NotificationTemplateApi. @@ -639,12 +400,12 @@ export const NotificationHaloRunV1alpha1NotificationTemplateApiFactory = * @interface NotificationHaloRunV1alpha1NotificationTemplateApiCreatenotificationHaloRunV1alpha1NotificationTemplateRequest */ export interface NotificationHaloRunV1alpha1NotificationTemplateApiCreatenotificationHaloRunV1alpha1NotificationTemplateRequest { - /** - * Fresh notificationtemplate - * @type {NotificationTemplate} - * @memberof NotificationHaloRunV1alpha1NotificationTemplateApiCreatenotificationHaloRunV1alpha1NotificationTemplate - */ - readonly notificationTemplate?: NotificationTemplate; + /** + * Fresh notificationtemplate + * @type {NotificationTemplate} + * @memberof NotificationHaloRunV1alpha1NotificationTemplateApiCreatenotificationHaloRunV1alpha1NotificationTemplate + */ + readonly notificationTemplate?: NotificationTemplate } /** @@ -653,12 +414,12 @@ export interface NotificationHaloRunV1alpha1NotificationTemplateApiCreatenotific * @interface NotificationHaloRunV1alpha1NotificationTemplateApiDeletenotificationHaloRunV1alpha1NotificationTemplateRequest */ export interface NotificationHaloRunV1alpha1NotificationTemplateApiDeletenotificationHaloRunV1alpha1NotificationTemplateRequest { - /** - * Name of notificationtemplate - * @type {string} - * @memberof NotificationHaloRunV1alpha1NotificationTemplateApiDeletenotificationHaloRunV1alpha1NotificationTemplate - */ - readonly name: string; + /** + * Name of notificationtemplate + * @type {string} + * @memberof NotificationHaloRunV1alpha1NotificationTemplateApiDeletenotificationHaloRunV1alpha1NotificationTemplate + */ + readonly name: string } /** @@ -667,12 +428,12 @@ export interface NotificationHaloRunV1alpha1NotificationTemplateApiDeletenotific * @interface NotificationHaloRunV1alpha1NotificationTemplateApiGetnotificationHaloRunV1alpha1NotificationTemplateRequest */ export interface NotificationHaloRunV1alpha1NotificationTemplateApiGetnotificationHaloRunV1alpha1NotificationTemplateRequest { - /** - * Name of notificationtemplate - * @type {string} - * @memberof NotificationHaloRunV1alpha1NotificationTemplateApiGetnotificationHaloRunV1alpha1NotificationTemplate - */ - readonly name: string; + /** + * Name of notificationtemplate + * @type {string} + * @memberof NotificationHaloRunV1alpha1NotificationTemplateApiGetnotificationHaloRunV1alpha1NotificationTemplate + */ + readonly name: string } /** @@ -681,40 +442,40 @@ export interface NotificationHaloRunV1alpha1NotificationTemplateApiGetnotificati * @interface NotificationHaloRunV1alpha1NotificationTemplateApiListnotificationHaloRunV1alpha1NotificationTemplateRequest */ export interface NotificationHaloRunV1alpha1NotificationTemplateApiListnotificationHaloRunV1alpha1NotificationTemplateRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof NotificationHaloRunV1alpha1NotificationTemplateApiListnotificationHaloRunV1alpha1NotificationTemplate - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof NotificationHaloRunV1alpha1NotificationTemplateApiListnotificationHaloRunV1alpha1NotificationTemplate + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof NotificationHaloRunV1alpha1NotificationTemplateApiListnotificationHaloRunV1alpha1NotificationTemplate - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof NotificationHaloRunV1alpha1NotificationTemplateApiListnotificationHaloRunV1alpha1NotificationTemplate + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof NotificationHaloRunV1alpha1NotificationTemplateApiListnotificationHaloRunV1alpha1NotificationTemplate - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof NotificationHaloRunV1alpha1NotificationTemplateApiListnotificationHaloRunV1alpha1NotificationTemplate + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof NotificationHaloRunV1alpha1NotificationTemplateApiListnotificationHaloRunV1alpha1NotificationTemplate - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof NotificationHaloRunV1alpha1NotificationTemplateApiListnotificationHaloRunV1alpha1NotificationTemplate + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof NotificationHaloRunV1alpha1NotificationTemplateApiListnotificationHaloRunV1alpha1NotificationTemplate - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof NotificationHaloRunV1alpha1NotificationTemplateApiListnotificationHaloRunV1alpha1NotificationTemplate + */ + readonly sort?: Array } /** @@ -723,19 +484,19 @@ export interface NotificationHaloRunV1alpha1NotificationTemplateApiListnotificat * @interface NotificationHaloRunV1alpha1NotificationTemplateApiUpdatenotificationHaloRunV1alpha1NotificationTemplateRequest */ export interface NotificationHaloRunV1alpha1NotificationTemplateApiUpdatenotificationHaloRunV1alpha1NotificationTemplateRequest { - /** - * Name of notificationtemplate - * @type {string} - * @memberof NotificationHaloRunV1alpha1NotificationTemplateApiUpdatenotificationHaloRunV1alpha1NotificationTemplate - */ - readonly name: string; + /** + * Name of notificationtemplate + * @type {string} + * @memberof NotificationHaloRunV1alpha1NotificationTemplateApiUpdatenotificationHaloRunV1alpha1NotificationTemplate + */ + readonly name: string - /** - * Updated notificationtemplate - * @type {NotificationTemplate} - * @memberof NotificationHaloRunV1alpha1NotificationTemplateApiUpdatenotificationHaloRunV1alpha1NotificationTemplate - */ - readonly notificationTemplate?: NotificationTemplate; + /** + * Updated notificationtemplate + * @type {NotificationTemplate} + * @memberof NotificationHaloRunV1alpha1NotificationTemplateApiUpdatenotificationHaloRunV1alpha1NotificationTemplate + */ + readonly notificationTemplate?: NotificationTemplate } /** @@ -745,113 +506,59 @@ export interface NotificationHaloRunV1alpha1NotificationTemplateApiUpdatenotific * @extends {BaseAPI} */ export class NotificationHaloRunV1alpha1NotificationTemplateApi extends BaseAPI { - /** - * Create notification.halo.run/v1alpha1/NotificationTemplate - * @param {NotificationHaloRunV1alpha1NotificationTemplateApiCreatenotificationHaloRunV1alpha1NotificationTemplateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1NotificationTemplateApi - */ - public createnotificationHaloRunV1alpha1NotificationTemplate( - requestParameters: NotificationHaloRunV1alpha1NotificationTemplateApiCreatenotificationHaloRunV1alpha1NotificationTemplateRequest = {}, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1NotificationTemplateApiFp( - this.configuration - ) - .createnotificationHaloRunV1alpha1NotificationTemplate( - requestParameters.notificationTemplate, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create notification.halo.run/v1alpha1/NotificationTemplate + * @param {NotificationHaloRunV1alpha1NotificationTemplateApiCreatenotificationHaloRunV1alpha1NotificationTemplateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1NotificationTemplateApi + */ + public createnotificationHaloRunV1alpha1NotificationTemplate(requestParameters: NotificationHaloRunV1alpha1NotificationTemplateApiCreatenotificationHaloRunV1alpha1NotificationTemplateRequest = {}, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1NotificationTemplateApiFp(this.configuration).createnotificationHaloRunV1alpha1NotificationTemplate(requestParameters.notificationTemplate, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete notification.halo.run/v1alpha1/NotificationTemplate - * @param {NotificationHaloRunV1alpha1NotificationTemplateApiDeletenotificationHaloRunV1alpha1NotificationTemplateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1NotificationTemplateApi - */ - public deletenotificationHaloRunV1alpha1NotificationTemplate( - requestParameters: NotificationHaloRunV1alpha1NotificationTemplateApiDeletenotificationHaloRunV1alpha1NotificationTemplateRequest, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1NotificationTemplateApiFp( - this.configuration - ) - .deletenotificationHaloRunV1alpha1NotificationTemplate( - requestParameters.name, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete notification.halo.run/v1alpha1/NotificationTemplate + * @param {NotificationHaloRunV1alpha1NotificationTemplateApiDeletenotificationHaloRunV1alpha1NotificationTemplateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1NotificationTemplateApi + */ + public deletenotificationHaloRunV1alpha1NotificationTemplate(requestParameters: NotificationHaloRunV1alpha1NotificationTemplateApiDeletenotificationHaloRunV1alpha1NotificationTemplateRequest, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1NotificationTemplateApiFp(this.configuration).deletenotificationHaloRunV1alpha1NotificationTemplate(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get notification.halo.run/v1alpha1/NotificationTemplate - * @param {NotificationHaloRunV1alpha1NotificationTemplateApiGetnotificationHaloRunV1alpha1NotificationTemplateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1NotificationTemplateApi - */ - public getnotificationHaloRunV1alpha1NotificationTemplate( - requestParameters: NotificationHaloRunV1alpha1NotificationTemplateApiGetnotificationHaloRunV1alpha1NotificationTemplateRequest, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1NotificationTemplateApiFp( - this.configuration - ) - .getnotificationHaloRunV1alpha1NotificationTemplate( - requestParameters.name, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get notification.halo.run/v1alpha1/NotificationTemplate + * @param {NotificationHaloRunV1alpha1NotificationTemplateApiGetnotificationHaloRunV1alpha1NotificationTemplateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1NotificationTemplateApi + */ + public getnotificationHaloRunV1alpha1NotificationTemplate(requestParameters: NotificationHaloRunV1alpha1NotificationTemplateApiGetnotificationHaloRunV1alpha1NotificationTemplateRequest, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1NotificationTemplateApiFp(this.configuration).getnotificationHaloRunV1alpha1NotificationTemplate(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List notification.halo.run/v1alpha1/NotificationTemplate - * @param {NotificationHaloRunV1alpha1NotificationTemplateApiListnotificationHaloRunV1alpha1NotificationTemplateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1NotificationTemplateApi - */ - public listnotificationHaloRunV1alpha1NotificationTemplate( - requestParameters: NotificationHaloRunV1alpha1NotificationTemplateApiListnotificationHaloRunV1alpha1NotificationTemplateRequest = {}, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1NotificationTemplateApiFp( - this.configuration - ) - .listnotificationHaloRunV1alpha1NotificationTemplate( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List notification.halo.run/v1alpha1/NotificationTemplate + * @param {NotificationHaloRunV1alpha1NotificationTemplateApiListnotificationHaloRunV1alpha1NotificationTemplateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1NotificationTemplateApi + */ + public listnotificationHaloRunV1alpha1NotificationTemplate(requestParameters: NotificationHaloRunV1alpha1NotificationTemplateApiListnotificationHaloRunV1alpha1NotificationTemplateRequest = {}, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1NotificationTemplateApiFp(this.configuration).listnotificationHaloRunV1alpha1NotificationTemplate(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update notification.halo.run/v1alpha1/NotificationTemplate - * @param {NotificationHaloRunV1alpha1NotificationTemplateApiUpdatenotificationHaloRunV1alpha1NotificationTemplateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1NotificationTemplateApi - */ - public updatenotificationHaloRunV1alpha1NotificationTemplate( - requestParameters: NotificationHaloRunV1alpha1NotificationTemplateApiUpdatenotificationHaloRunV1alpha1NotificationTemplateRequest, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1NotificationTemplateApiFp( - this.configuration - ) - .updatenotificationHaloRunV1alpha1NotificationTemplate( - requestParameters.name, - requestParameters.notificationTemplate, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update notification.halo.run/v1alpha1/NotificationTemplate + * @param {NotificationHaloRunV1alpha1NotificationTemplateApiUpdatenotificationHaloRunV1alpha1NotificationTemplateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1NotificationTemplateApi + */ + public updatenotificationHaloRunV1alpha1NotificationTemplate(requestParameters: NotificationHaloRunV1alpha1NotificationTemplateApiUpdatenotificationHaloRunV1alpha1NotificationTemplateRequest, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1NotificationTemplateApiFp(this.configuration).updatenotificationHaloRunV1alpha1NotificationTemplate(requestParameters.name, requestParameters.notificationTemplate, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-notifier-descriptor-api.ts b/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-notifier-descriptor-api.ts index 247baa8c9..69f6f529d 100644 --- a/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-notifier-descriptor-api.ts +++ b/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-notifier-descriptor-api.ts @@ -5,633 +5,394 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { NotifierDescriptor } from "../models"; +import { NotifierDescriptor } from '../models'; // @ts-ignore -import { NotifierDescriptorList } from "../models"; +import { NotifierDescriptorList } from '../models'; /** * NotificationHaloRunV1alpha1NotifierDescriptorApi - axios parameter creator * @export */ -export const NotificationHaloRunV1alpha1NotifierDescriptorApiAxiosParamCreator = - function (configuration?: Configuration) { +export const NotificationHaloRunV1alpha1NotifierDescriptorApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Create notification.halo.run/v1alpha1/NotifierDescriptor - * @param {NotifierDescriptor} [notifierDescriptor] Fresh notifierDescriptor - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createnotificationHaloRunV1alpha1NotifierDescriptor: async ( - notifierDescriptor?: NotifierDescriptor, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/notification.halo.run/v1alpha1/notifierDescriptors`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * Create notification.halo.run/v1alpha1/NotifierDescriptor + * @param {NotifierDescriptor} [notifierDescriptor] Fresh notifierDescriptor + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createnotificationHaloRunV1alpha1NotifierDescriptor: async (notifierDescriptor?: NotifierDescriptor, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/notification.halo.run/v1alpha1/notifierDescriptors`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - notifierDescriptor, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete notification.halo.run/v1alpha1/NotifierDescriptor - * @param {string} name Name of notifierDescriptor - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletenotificationHaloRunV1alpha1NotifierDescriptor: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "deletenotificationHaloRunV1alpha1NotifierDescriptor", - "name", - name - ); - const localVarPath = - `/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(notifierDescriptor, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete notification.halo.run/v1alpha1/NotifierDescriptor + * @param {string} name Name of notifierDescriptor + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletenotificationHaloRunV1alpha1NotifierDescriptor: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletenotificationHaloRunV1alpha1NotifierDescriptor', 'name', name) + const localVarPath = `/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get notification.halo.run/v1alpha1/NotifierDescriptor - * @param {string} name Name of notifierDescriptor - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getnotificationHaloRunV1alpha1NotifierDescriptor: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "getnotificationHaloRunV1alpha1NotifierDescriptor", - "name", - name - ); - const localVarPath = - `/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get notification.halo.run/v1alpha1/NotifierDescriptor + * @param {string} name Name of notifierDescriptor + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getnotificationHaloRunV1alpha1NotifierDescriptor: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getnotificationHaloRunV1alpha1NotifierDescriptor', 'name', name) + const localVarPath = `/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List notification.halo.run/v1alpha1/NotifierDescriptor - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listnotificationHaloRunV1alpha1NotifierDescriptor: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/notification.halo.run/v1alpha1/notifierDescriptors`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List notification.halo.run/v1alpha1/NotifierDescriptor + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listnotificationHaloRunV1alpha1NotifierDescriptor: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/notification.halo.run/v1alpha1/notifierDescriptors`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update notification.halo.run/v1alpha1/NotifierDescriptor - * @param {string} name Name of notifierDescriptor - * @param {NotifierDescriptor} [notifierDescriptor] Updated notifierDescriptor - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatenotificationHaloRunV1alpha1NotifierDescriptor: async ( - name: string, - notifierDescriptor?: NotifierDescriptor, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "updatenotificationHaloRunV1alpha1NotifierDescriptor", - "name", - name - ); - const localVarPath = - `/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update notification.halo.run/v1alpha1/NotifierDescriptor + * @param {string} name Name of notifierDescriptor + * @param {NotifierDescriptor} [notifierDescriptor] Updated notifierDescriptor + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatenotificationHaloRunV1alpha1NotifierDescriptor: async (name: string, notifierDescriptor?: NotifierDescriptor, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatenotificationHaloRunV1alpha1NotifierDescriptor', 'name', name) + const localVarPath = `/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - notifierDescriptor, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(notifierDescriptor, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * NotificationHaloRunV1alpha1NotifierDescriptorApi - functional programming interface * @export */ -export const NotificationHaloRunV1alpha1NotifierDescriptorApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - NotificationHaloRunV1alpha1NotifierDescriptorApiAxiosParamCreator( - configuration - ); - return { - /** - * Create notification.halo.run/v1alpha1/NotifierDescriptor - * @param {NotifierDescriptor} [notifierDescriptor] Fresh notifierDescriptor - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createnotificationHaloRunV1alpha1NotifierDescriptor( - notifierDescriptor?: NotifierDescriptor, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createnotificationHaloRunV1alpha1NotifierDescriptor( - notifierDescriptor, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete notification.halo.run/v1alpha1/NotifierDescriptor - * @param {string} name Name of notifierDescriptor - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletenotificationHaloRunV1alpha1NotifierDescriptor( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletenotificationHaloRunV1alpha1NotifierDescriptor( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get notification.halo.run/v1alpha1/NotifierDescriptor - * @param {string} name Name of notifierDescriptor - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getnotificationHaloRunV1alpha1NotifierDescriptor( - name: string, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getnotificationHaloRunV1alpha1NotifierDescriptor( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List notification.halo.run/v1alpha1/NotifierDescriptor - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listnotificationHaloRunV1alpha1NotifierDescriptor( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listnotificationHaloRunV1alpha1NotifierDescriptor( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update notification.halo.run/v1alpha1/NotifierDescriptor - * @param {string} name Name of notifierDescriptor - * @param {NotifierDescriptor} [notifierDescriptor] Updated notifierDescriptor - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatenotificationHaloRunV1alpha1NotifierDescriptor( - name: string, - notifierDescriptor?: NotifierDescriptor, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatenotificationHaloRunV1alpha1NotifierDescriptor( - name, - notifierDescriptor, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const NotificationHaloRunV1alpha1NotifierDescriptorApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = NotificationHaloRunV1alpha1NotifierDescriptorApiAxiosParamCreator(configuration) + return { + /** + * Create notification.halo.run/v1alpha1/NotifierDescriptor + * @param {NotifierDescriptor} [notifierDescriptor] Fresh notifierDescriptor + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createnotificationHaloRunV1alpha1NotifierDescriptor(notifierDescriptor?: NotifierDescriptor, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createnotificationHaloRunV1alpha1NotifierDescriptor(notifierDescriptor, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1NotifierDescriptorApi.createnotificationHaloRunV1alpha1NotifierDescriptor']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete notification.halo.run/v1alpha1/NotifierDescriptor + * @param {string} name Name of notifierDescriptor + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletenotificationHaloRunV1alpha1NotifierDescriptor(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletenotificationHaloRunV1alpha1NotifierDescriptor(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1NotifierDescriptorApi.deletenotificationHaloRunV1alpha1NotifierDescriptor']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get notification.halo.run/v1alpha1/NotifierDescriptor + * @param {string} name Name of notifierDescriptor + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getnotificationHaloRunV1alpha1NotifierDescriptor(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getnotificationHaloRunV1alpha1NotifierDescriptor(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1NotifierDescriptorApi.getnotificationHaloRunV1alpha1NotifierDescriptor']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List notification.halo.run/v1alpha1/NotifierDescriptor + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listnotificationHaloRunV1alpha1NotifierDescriptor(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listnotificationHaloRunV1alpha1NotifierDescriptor(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1NotifierDescriptorApi.listnotificationHaloRunV1alpha1NotifierDescriptor']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update notification.halo.run/v1alpha1/NotifierDescriptor + * @param {string} name Name of notifierDescriptor + * @param {NotifierDescriptor} [notifierDescriptor] Updated notifierDescriptor + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatenotificationHaloRunV1alpha1NotifierDescriptor(name: string, notifierDescriptor?: NotifierDescriptor, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatenotificationHaloRunV1alpha1NotifierDescriptor(name, notifierDescriptor, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1NotifierDescriptorApi.updatenotificationHaloRunV1alpha1NotifierDescriptor']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * NotificationHaloRunV1alpha1NotifierDescriptorApi - factory interface * @export */ -export const NotificationHaloRunV1alpha1NotifierDescriptorApiFactory = - function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance - ) { - const localVarFp = - NotificationHaloRunV1alpha1NotifierDescriptorApiFp(configuration); +export const NotificationHaloRunV1alpha1NotifierDescriptorApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = NotificationHaloRunV1alpha1NotifierDescriptorApiFp(configuration) return { - /** - * Create notification.halo.run/v1alpha1/NotifierDescriptor - * @param {NotificationHaloRunV1alpha1NotifierDescriptorApiCreatenotificationHaloRunV1alpha1NotifierDescriptorRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createnotificationHaloRunV1alpha1NotifierDescriptor( - requestParameters: NotificationHaloRunV1alpha1NotifierDescriptorApiCreatenotificationHaloRunV1alpha1NotifierDescriptorRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createnotificationHaloRunV1alpha1NotifierDescriptor( - requestParameters.notifierDescriptor, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Delete notification.halo.run/v1alpha1/NotifierDescriptor - * @param {NotificationHaloRunV1alpha1NotifierDescriptorApiDeletenotificationHaloRunV1alpha1NotifierDescriptorRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletenotificationHaloRunV1alpha1NotifierDescriptor( - requestParameters: NotificationHaloRunV1alpha1NotifierDescriptorApiDeletenotificationHaloRunV1alpha1NotifierDescriptorRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletenotificationHaloRunV1alpha1NotifierDescriptor( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Get notification.halo.run/v1alpha1/NotifierDescriptor - * @param {NotificationHaloRunV1alpha1NotifierDescriptorApiGetnotificationHaloRunV1alpha1NotifierDescriptorRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getnotificationHaloRunV1alpha1NotifierDescriptor( - requestParameters: NotificationHaloRunV1alpha1NotifierDescriptorApiGetnotificationHaloRunV1alpha1NotifierDescriptorRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getnotificationHaloRunV1alpha1NotifierDescriptor( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * List notification.halo.run/v1alpha1/NotifierDescriptor - * @param {NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificationHaloRunV1alpha1NotifierDescriptorRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listnotificationHaloRunV1alpha1NotifierDescriptor( - requestParameters: NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificationHaloRunV1alpha1NotifierDescriptorRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listnotificationHaloRunV1alpha1NotifierDescriptor( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update notification.halo.run/v1alpha1/NotifierDescriptor - * @param {NotificationHaloRunV1alpha1NotifierDescriptorApiUpdatenotificationHaloRunV1alpha1NotifierDescriptorRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatenotificationHaloRunV1alpha1NotifierDescriptor( - requestParameters: NotificationHaloRunV1alpha1NotifierDescriptorApiUpdatenotificationHaloRunV1alpha1NotifierDescriptorRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatenotificationHaloRunV1alpha1NotifierDescriptor( - requestParameters.name, - requestParameters.notifierDescriptor, - options - ) - .then((request) => request(axios, basePath)); - }, + /** + * Create notification.halo.run/v1alpha1/NotifierDescriptor + * @param {NotificationHaloRunV1alpha1NotifierDescriptorApiCreatenotificationHaloRunV1alpha1NotifierDescriptorRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createnotificationHaloRunV1alpha1NotifierDescriptor(requestParameters: NotificationHaloRunV1alpha1NotifierDescriptorApiCreatenotificationHaloRunV1alpha1NotifierDescriptorRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createnotificationHaloRunV1alpha1NotifierDescriptor(requestParameters.notifierDescriptor, options).then((request) => request(axios, basePath)); + }, + /** + * Delete notification.halo.run/v1alpha1/NotifierDescriptor + * @param {NotificationHaloRunV1alpha1NotifierDescriptorApiDeletenotificationHaloRunV1alpha1NotifierDescriptorRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletenotificationHaloRunV1alpha1NotifierDescriptor(requestParameters: NotificationHaloRunV1alpha1NotifierDescriptorApiDeletenotificationHaloRunV1alpha1NotifierDescriptorRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletenotificationHaloRunV1alpha1NotifierDescriptor(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get notification.halo.run/v1alpha1/NotifierDescriptor + * @param {NotificationHaloRunV1alpha1NotifierDescriptorApiGetnotificationHaloRunV1alpha1NotifierDescriptorRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getnotificationHaloRunV1alpha1NotifierDescriptor(requestParameters: NotificationHaloRunV1alpha1NotifierDescriptorApiGetnotificationHaloRunV1alpha1NotifierDescriptorRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getnotificationHaloRunV1alpha1NotifierDescriptor(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List notification.halo.run/v1alpha1/NotifierDescriptor + * @param {NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificationHaloRunV1alpha1NotifierDescriptorRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listnotificationHaloRunV1alpha1NotifierDescriptor(requestParameters: NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificationHaloRunV1alpha1NotifierDescriptorRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listnotificationHaloRunV1alpha1NotifierDescriptor(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update notification.halo.run/v1alpha1/NotifierDescriptor + * @param {NotificationHaloRunV1alpha1NotifierDescriptorApiUpdatenotificationHaloRunV1alpha1NotifierDescriptorRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatenotificationHaloRunV1alpha1NotifierDescriptor(requestParameters: NotificationHaloRunV1alpha1NotifierDescriptorApiUpdatenotificationHaloRunV1alpha1NotifierDescriptorRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatenotificationHaloRunV1alpha1NotifierDescriptor(requestParameters.name, requestParameters.notifierDescriptor, options).then((request) => request(axios, basePath)); + }, }; - }; +}; /** * Request parameters for createnotificationHaloRunV1alpha1NotifierDescriptor operation in NotificationHaloRunV1alpha1NotifierDescriptorApi. @@ -639,12 +400,12 @@ export const NotificationHaloRunV1alpha1NotifierDescriptorApiFactory = * @interface NotificationHaloRunV1alpha1NotifierDescriptorApiCreatenotificationHaloRunV1alpha1NotifierDescriptorRequest */ export interface NotificationHaloRunV1alpha1NotifierDescriptorApiCreatenotificationHaloRunV1alpha1NotifierDescriptorRequest { - /** - * Fresh notifierDescriptor - * @type {NotifierDescriptor} - * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApiCreatenotificationHaloRunV1alpha1NotifierDescriptor - */ - readonly notifierDescriptor?: NotifierDescriptor; + /** + * Fresh notifierDescriptor + * @type {NotifierDescriptor} + * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApiCreatenotificationHaloRunV1alpha1NotifierDescriptor + */ + readonly notifierDescriptor?: NotifierDescriptor } /** @@ -653,12 +414,12 @@ export interface NotificationHaloRunV1alpha1NotifierDescriptorApiCreatenotificat * @interface NotificationHaloRunV1alpha1NotifierDescriptorApiDeletenotificationHaloRunV1alpha1NotifierDescriptorRequest */ export interface NotificationHaloRunV1alpha1NotifierDescriptorApiDeletenotificationHaloRunV1alpha1NotifierDescriptorRequest { - /** - * Name of notifierDescriptor - * @type {string} - * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApiDeletenotificationHaloRunV1alpha1NotifierDescriptor - */ - readonly name: string; + /** + * Name of notifierDescriptor + * @type {string} + * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApiDeletenotificationHaloRunV1alpha1NotifierDescriptor + */ + readonly name: string } /** @@ -667,12 +428,12 @@ export interface NotificationHaloRunV1alpha1NotifierDescriptorApiDeletenotificat * @interface NotificationHaloRunV1alpha1NotifierDescriptorApiGetnotificationHaloRunV1alpha1NotifierDescriptorRequest */ export interface NotificationHaloRunV1alpha1NotifierDescriptorApiGetnotificationHaloRunV1alpha1NotifierDescriptorRequest { - /** - * Name of notifierDescriptor - * @type {string} - * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApiGetnotificationHaloRunV1alpha1NotifierDescriptor - */ - readonly name: string; + /** + * Name of notifierDescriptor + * @type {string} + * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApiGetnotificationHaloRunV1alpha1NotifierDescriptor + */ + readonly name: string } /** @@ -681,40 +442,40 @@ export interface NotificationHaloRunV1alpha1NotifierDescriptorApiGetnotification * @interface NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificationHaloRunV1alpha1NotifierDescriptorRequest */ export interface NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificationHaloRunV1alpha1NotifierDescriptorRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificationHaloRunV1alpha1NotifierDescriptor - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificationHaloRunV1alpha1NotifierDescriptor + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificationHaloRunV1alpha1NotifierDescriptor - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificationHaloRunV1alpha1NotifierDescriptor + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificationHaloRunV1alpha1NotifierDescriptor - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificationHaloRunV1alpha1NotifierDescriptor + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificationHaloRunV1alpha1NotifierDescriptor - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificationHaloRunV1alpha1NotifierDescriptor + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificationHaloRunV1alpha1NotifierDescriptor - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificationHaloRunV1alpha1NotifierDescriptor + */ + readonly sort?: Array } /** @@ -723,19 +484,19 @@ export interface NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificatio * @interface NotificationHaloRunV1alpha1NotifierDescriptorApiUpdatenotificationHaloRunV1alpha1NotifierDescriptorRequest */ export interface NotificationHaloRunV1alpha1NotifierDescriptorApiUpdatenotificationHaloRunV1alpha1NotifierDescriptorRequest { - /** - * Name of notifierDescriptor - * @type {string} - * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApiUpdatenotificationHaloRunV1alpha1NotifierDescriptor - */ - readonly name: string; + /** + * Name of notifierDescriptor + * @type {string} + * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApiUpdatenotificationHaloRunV1alpha1NotifierDescriptor + */ + readonly name: string - /** - * Updated notifierDescriptor - * @type {NotifierDescriptor} - * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApiUpdatenotificationHaloRunV1alpha1NotifierDescriptor - */ - readonly notifierDescriptor?: NotifierDescriptor; + /** + * Updated notifierDescriptor + * @type {NotifierDescriptor} + * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApiUpdatenotificationHaloRunV1alpha1NotifierDescriptor + */ + readonly notifierDescriptor?: NotifierDescriptor } /** @@ -745,113 +506,59 @@ export interface NotificationHaloRunV1alpha1NotifierDescriptorApiUpdatenotificat * @extends {BaseAPI} */ export class NotificationHaloRunV1alpha1NotifierDescriptorApi extends BaseAPI { - /** - * Create notification.halo.run/v1alpha1/NotifierDescriptor - * @param {NotificationHaloRunV1alpha1NotifierDescriptorApiCreatenotificationHaloRunV1alpha1NotifierDescriptorRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApi - */ - public createnotificationHaloRunV1alpha1NotifierDescriptor( - requestParameters: NotificationHaloRunV1alpha1NotifierDescriptorApiCreatenotificationHaloRunV1alpha1NotifierDescriptorRequest = {}, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1NotifierDescriptorApiFp( - this.configuration - ) - .createnotificationHaloRunV1alpha1NotifierDescriptor( - requestParameters.notifierDescriptor, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create notification.halo.run/v1alpha1/NotifierDescriptor + * @param {NotificationHaloRunV1alpha1NotifierDescriptorApiCreatenotificationHaloRunV1alpha1NotifierDescriptorRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApi + */ + public createnotificationHaloRunV1alpha1NotifierDescriptor(requestParameters: NotificationHaloRunV1alpha1NotifierDescriptorApiCreatenotificationHaloRunV1alpha1NotifierDescriptorRequest = {}, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1NotifierDescriptorApiFp(this.configuration).createnotificationHaloRunV1alpha1NotifierDescriptor(requestParameters.notifierDescriptor, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete notification.halo.run/v1alpha1/NotifierDescriptor - * @param {NotificationHaloRunV1alpha1NotifierDescriptorApiDeletenotificationHaloRunV1alpha1NotifierDescriptorRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApi - */ - public deletenotificationHaloRunV1alpha1NotifierDescriptor( - requestParameters: NotificationHaloRunV1alpha1NotifierDescriptorApiDeletenotificationHaloRunV1alpha1NotifierDescriptorRequest, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1NotifierDescriptorApiFp( - this.configuration - ) - .deletenotificationHaloRunV1alpha1NotifierDescriptor( - requestParameters.name, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete notification.halo.run/v1alpha1/NotifierDescriptor + * @param {NotificationHaloRunV1alpha1NotifierDescriptorApiDeletenotificationHaloRunV1alpha1NotifierDescriptorRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApi + */ + public deletenotificationHaloRunV1alpha1NotifierDescriptor(requestParameters: NotificationHaloRunV1alpha1NotifierDescriptorApiDeletenotificationHaloRunV1alpha1NotifierDescriptorRequest, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1NotifierDescriptorApiFp(this.configuration).deletenotificationHaloRunV1alpha1NotifierDescriptor(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get notification.halo.run/v1alpha1/NotifierDescriptor - * @param {NotificationHaloRunV1alpha1NotifierDescriptorApiGetnotificationHaloRunV1alpha1NotifierDescriptorRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApi - */ - public getnotificationHaloRunV1alpha1NotifierDescriptor( - requestParameters: NotificationHaloRunV1alpha1NotifierDescriptorApiGetnotificationHaloRunV1alpha1NotifierDescriptorRequest, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1NotifierDescriptorApiFp( - this.configuration - ) - .getnotificationHaloRunV1alpha1NotifierDescriptor( - requestParameters.name, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get notification.halo.run/v1alpha1/NotifierDescriptor + * @param {NotificationHaloRunV1alpha1NotifierDescriptorApiGetnotificationHaloRunV1alpha1NotifierDescriptorRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApi + */ + public getnotificationHaloRunV1alpha1NotifierDescriptor(requestParameters: NotificationHaloRunV1alpha1NotifierDescriptorApiGetnotificationHaloRunV1alpha1NotifierDescriptorRequest, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1NotifierDescriptorApiFp(this.configuration).getnotificationHaloRunV1alpha1NotifierDescriptor(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List notification.halo.run/v1alpha1/NotifierDescriptor - * @param {NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificationHaloRunV1alpha1NotifierDescriptorRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApi - */ - public listnotificationHaloRunV1alpha1NotifierDescriptor( - requestParameters: NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificationHaloRunV1alpha1NotifierDescriptorRequest = {}, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1NotifierDescriptorApiFp( - this.configuration - ) - .listnotificationHaloRunV1alpha1NotifierDescriptor( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List notification.halo.run/v1alpha1/NotifierDescriptor + * @param {NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificationHaloRunV1alpha1NotifierDescriptorRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApi + */ + public listnotificationHaloRunV1alpha1NotifierDescriptor(requestParameters: NotificationHaloRunV1alpha1NotifierDescriptorApiListnotificationHaloRunV1alpha1NotifierDescriptorRequest = {}, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1NotifierDescriptorApiFp(this.configuration).listnotificationHaloRunV1alpha1NotifierDescriptor(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update notification.halo.run/v1alpha1/NotifierDescriptor - * @param {NotificationHaloRunV1alpha1NotifierDescriptorApiUpdatenotificationHaloRunV1alpha1NotifierDescriptorRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApi - */ - public updatenotificationHaloRunV1alpha1NotifierDescriptor( - requestParameters: NotificationHaloRunV1alpha1NotifierDescriptorApiUpdatenotificationHaloRunV1alpha1NotifierDescriptorRequest, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1NotifierDescriptorApiFp( - this.configuration - ) - .updatenotificationHaloRunV1alpha1NotifierDescriptor( - requestParameters.name, - requestParameters.notifierDescriptor, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update notification.halo.run/v1alpha1/NotifierDescriptor + * @param {NotificationHaloRunV1alpha1NotifierDescriptorApiUpdatenotificationHaloRunV1alpha1NotifierDescriptorRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1NotifierDescriptorApi + */ + public updatenotificationHaloRunV1alpha1NotifierDescriptor(requestParameters: NotificationHaloRunV1alpha1NotifierDescriptorApiUpdatenotificationHaloRunV1alpha1NotifierDescriptorRequest, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1NotifierDescriptorApiFp(this.configuration).updatenotificationHaloRunV1alpha1NotifierDescriptor(requestParameters.name, requestParameters.notifierDescriptor, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-reason-api.ts b/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-reason-api.ts index 67bd4b202..848b7e148 100644 --- a/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-reason-api.ts +++ b/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-reason-api.ts @@ -5,610 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Reason } from "../models"; +import { Reason } from '../models'; // @ts-ignore -import { ReasonList } from "../models"; +import { ReasonList } from '../models'; /** * NotificationHaloRunV1alpha1ReasonApi - axios parameter creator * @export */ -export const NotificationHaloRunV1alpha1ReasonApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create notification.halo.run/v1alpha1/Reason - * @param {Reason} [reason] Fresh reason - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createnotificationHaloRunV1alpha1Reason: async ( - reason?: Reason, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/notification.halo.run/v1alpha1/reasons`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const NotificationHaloRunV1alpha1ReasonApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create notification.halo.run/v1alpha1/Reason + * @param {Reason} [reason] Fresh reason + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createnotificationHaloRunV1alpha1Reason: async (reason?: Reason, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/notification.halo.run/v1alpha1/reasons`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - reason, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete notification.halo.run/v1alpha1/Reason - * @param {string} name Name of reason - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletenotificationHaloRunV1alpha1Reason: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "deletenotificationHaloRunV1alpha1Reason", - "name", - name - ); - const localVarPath = - `/apis/notification.halo.run/v1alpha1/reasons/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(reason, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete notification.halo.run/v1alpha1/Reason + * @param {string} name Name of reason + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletenotificationHaloRunV1alpha1Reason: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletenotificationHaloRunV1alpha1Reason', 'name', name) + const localVarPath = `/apis/notification.halo.run/v1alpha1/reasons/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get notification.halo.run/v1alpha1/Reason - * @param {string} name Name of reason - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getnotificationHaloRunV1alpha1Reason: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getnotificationHaloRunV1alpha1Reason", "name", name); - const localVarPath = - `/apis/notification.halo.run/v1alpha1/reasons/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get notification.halo.run/v1alpha1/Reason + * @param {string} name Name of reason + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getnotificationHaloRunV1alpha1Reason: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getnotificationHaloRunV1alpha1Reason', 'name', name) + const localVarPath = `/apis/notification.halo.run/v1alpha1/reasons/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List notification.halo.run/v1alpha1/Reason - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listnotificationHaloRunV1alpha1Reason: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/notification.halo.run/v1alpha1/reasons`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List notification.halo.run/v1alpha1/Reason + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listnotificationHaloRunV1alpha1Reason: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/notification.halo.run/v1alpha1/reasons`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update notification.halo.run/v1alpha1/Reason - * @param {string} name Name of reason - * @param {Reason} [reason] Updated reason - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatenotificationHaloRunV1alpha1Reason: async ( - name: string, - reason?: Reason, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "updatenotificationHaloRunV1alpha1Reason", - "name", - name - ); - const localVarPath = - `/apis/notification.halo.run/v1alpha1/reasons/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update notification.halo.run/v1alpha1/Reason + * @param {string} name Name of reason + * @param {Reason} [reason] Updated reason + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatenotificationHaloRunV1alpha1Reason: async (name: string, reason?: Reason, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatenotificationHaloRunV1alpha1Reason', 'name', name) + const localVarPath = `/apis/notification.halo.run/v1alpha1/reasons/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - reason, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(reason, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * NotificationHaloRunV1alpha1ReasonApi - functional programming interface * @export */ -export const NotificationHaloRunV1alpha1ReasonApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - NotificationHaloRunV1alpha1ReasonApiAxiosParamCreator(configuration); - return { - /** - * Create notification.halo.run/v1alpha1/Reason - * @param {Reason} [reason] Fresh reason - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createnotificationHaloRunV1alpha1Reason( - reason?: Reason, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createnotificationHaloRunV1alpha1Reason( - reason, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete notification.halo.run/v1alpha1/Reason - * @param {string} name Name of reason - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletenotificationHaloRunV1alpha1Reason( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletenotificationHaloRunV1alpha1Reason( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get notification.halo.run/v1alpha1/Reason - * @param {string} name Name of reason - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getnotificationHaloRunV1alpha1Reason( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getnotificationHaloRunV1alpha1Reason( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List notification.halo.run/v1alpha1/Reason - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listnotificationHaloRunV1alpha1Reason( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listnotificationHaloRunV1alpha1Reason( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update notification.halo.run/v1alpha1/Reason - * @param {string} name Name of reason - * @param {Reason} [reason] Updated reason - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatenotificationHaloRunV1alpha1Reason( - name: string, - reason?: Reason, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatenotificationHaloRunV1alpha1Reason( - name, - reason, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const NotificationHaloRunV1alpha1ReasonApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = NotificationHaloRunV1alpha1ReasonApiAxiosParamCreator(configuration) + return { + /** + * Create notification.halo.run/v1alpha1/Reason + * @param {Reason} [reason] Fresh reason + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createnotificationHaloRunV1alpha1Reason(reason?: Reason, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createnotificationHaloRunV1alpha1Reason(reason, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1ReasonApi.createnotificationHaloRunV1alpha1Reason']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete notification.halo.run/v1alpha1/Reason + * @param {string} name Name of reason + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletenotificationHaloRunV1alpha1Reason(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletenotificationHaloRunV1alpha1Reason(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1ReasonApi.deletenotificationHaloRunV1alpha1Reason']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get notification.halo.run/v1alpha1/Reason + * @param {string} name Name of reason + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getnotificationHaloRunV1alpha1Reason(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getnotificationHaloRunV1alpha1Reason(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1ReasonApi.getnotificationHaloRunV1alpha1Reason']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List notification.halo.run/v1alpha1/Reason + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listnotificationHaloRunV1alpha1Reason(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listnotificationHaloRunV1alpha1Reason(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1ReasonApi.listnotificationHaloRunV1alpha1Reason']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update notification.halo.run/v1alpha1/Reason + * @param {string} name Name of reason + * @param {Reason} [reason] Updated reason + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatenotificationHaloRunV1alpha1Reason(name: string, reason?: Reason, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatenotificationHaloRunV1alpha1Reason(name, reason, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1ReasonApi.updatenotificationHaloRunV1alpha1Reason']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * NotificationHaloRunV1alpha1ReasonApi - factory interface * @export */ -export const NotificationHaloRunV1alpha1ReasonApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = NotificationHaloRunV1alpha1ReasonApiFp(configuration); - return { - /** - * Create notification.halo.run/v1alpha1/Reason - * @param {NotificationHaloRunV1alpha1ReasonApiCreatenotificationHaloRunV1alpha1ReasonRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createnotificationHaloRunV1alpha1Reason( - requestParameters: NotificationHaloRunV1alpha1ReasonApiCreatenotificationHaloRunV1alpha1ReasonRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createnotificationHaloRunV1alpha1Reason( - requestParameters.reason, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Delete notification.halo.run/v1alpha1/Reason - * @param {NotificationHaloRunV1alpha1ReasonApiDeletenotificationHaloRunV1alpha1ReasonRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletenotificationHaloRunV1alpha1Reason( - requestParameters: NotificationHaloRunV1alpha1ReasonApiDeletenotificationHaloRunV1alpha1ReasonRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletenotificationHaloRunV1alpha1Reason( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Get notification.halo.run/v1alpha1/Reason - * @param {NotificationHaloRunV1alpha1ReasonApiGetnotificationHaloRunV1alpha1ReasonRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getnotificationHaloRunV1alpha1Reason( - requestParameters: NotificationHaloRunV1alpha1ReasonApiGetnotificationHaloRunV1alpha1ReasonRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getnotificationHaloRunV1alpha1Reason(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List notification.halo.run/v1alpha1/Reason - * @param {NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1alpha1ReasonRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listnotificationHaloRunV1alpha1Reason( - requestParameters: NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1alpha1ReasonRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listnotificationHaloRunV1alpha1Reason( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update notification.halo.run/v1alpha1/Reason - * @param {NotificationHaloRunV1alpha1ReasonApiUpdatenotificationHaloRunV1alpha1ReasonRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatenotificationHaloRunV1alpha1Reason( - requestParameters: NotificationHaloRunV1alpha1ReasonApiUpdatenotificationHaloRunV1alpha1ReasonRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatenotificationHaloRunV1alpha1Reason( - requestParameters.name, - requestParameters.reason, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const NotificationHaloRunV1alpha1ReasonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = NotificationHaloRunV1alpha1ReasonApiFp(configuration) + return { + /** + * Create notification.halo.run/v1alpha1/Reason + * @param {NotificationHaloRunV1alpha1ReasonApiCreatenotificationHaloRunV1alpha1ReasonRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createnotificationHaloRunV1alpha1Reason(requestParameters: NotificationHaloRunV1alpha1ReasonApiCreatenotificationHaloRunV1alpha1ReasonRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createnotificationHaloRunV1alpha1Reason(requestParameters.reason, options).then((request) => request(axios, basePath)); + }, + /** + * Delete notification.halo.run/v1alpha1/Reason + * @param {NotificationHaloRunV1alpha1ReasonApiDeletenotificationHaloRunV1alpha1ReasonRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletenotificationHaloRunV1alpha1Reason(requestParameters: NotificationHaloRunV1alpha1ReasonApiDeletenotificationHaloRunV1alpha1ReasonRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletenotificationHaloRunV1alpha1Reason(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get notification.halo.run/v1alpha1/Reason + * @param {NotificationHaloRunV1alpha1ReasonApiGetnotificationHaloRunV1alpha1ReasonRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getnotificationHaloRunV1alpha1Reason(requestParameters: NotificationHaloRunV1alpha1ReasonApiGetnotificationHaloRunV1alpha1ReasonRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getnotificationHaloRunV1alpha1Reason(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List notification.halo.run/v1alpha1/Reason + * @param {NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1alpha1ReasonRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listnotificationHaloRunV1alpha1Reason(requestParameters: NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1alpha1ReasonRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listnotificationHaloRunV1alpha1Reason(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update notification.halo.run/v1alpha1/Reason + * @param {NotificationHaloRunV1alpha1ReasonApiUpdatenotificationHaloRunV1alpha1ReasonRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatenotificationHaloRunV1alpha1Reason(requestParameters: NotificationHaloRunV1alpha1ReasonApiUpdatenotificationHaloRunV1alpha1ReasonRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatenotificationHaloRunV1alpha1Reason(requestParameters.name, requestParameters.reason, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -617,12 +400,12 @@ export const NotificationHaloRunV1alpha1ReasonApiFactory = function ( * @interface NotificationHaloRunV1alpha1ReasonApiCreatenotificationHaloRunV1alpha1ReasonRequest */ export interface NotificationHaloRunV1alpha1ReasonApiCreatenotificationHaloRunV1alpha1ReasonRequest { - /** - * Fresh reason - * @type {Reason} - * @memberof NotificationHaloRunV1alpha1ReasonApiCreatenotificationHaloRunV1alpha1Reason - */ - readonly reason?: Reason; + /** + * Fresh reason + * @type {Reason} + * @memberof NotificationHaloRunV1alpha1ReasonApiCreatenotificationHaloRunV1alpha1Reason + */ + readonly reason?: Reason } /** @@ -631,12 +414,12 @@ export interface NotificationHaloRunV1alpha1ReasonApiCreatenotificationHaloRunV1 * @interface NotificationHaloRunV1alpha1ReasonApiDeletenotificationHaloRunV1alpha1ReasonRequest */ export interface NotificationHaloRunV1alpha1ReasonApiDeletenotificationHaloRunV1alpha1ReasonRequest { - /** - * Name of reason - * @type {string} - * @memberof NotificationHaloRunV1alpha1ReasonApiDeletenotificationHaloRunV1alpha1Reason - */ - readonly name: string; + /** + * Name of reason + * @type {string} + * @memberof NotificationHaloRunV1alpha1ReasonApiDeletenotificationHaloRunV1alpha1Reason + */ + readonly name: string } /** @@ -645,12 +428,12 @@ export interface NotificationHaloRunV1alpha1ReasonApiDeletenotificationHaloRunV1 * @interface NotificationHaloRunV1alpha1ReasonApiGetnotificationHaloRunV1alpha1ReasonRequest */ export interface NotificationHaloRunV1alpha1ReasonApiGetnotificationHaloRunV1alpha1ReasonRequest { - /** - * Name of reason - * @type {string} - * @memberof NotificationHaloRunV1alpha1ReasonApiGetnotificationHaloRunV1alpha1Reason - */ - readonly name: string; + /** + * Name of reason + * @type {string} + * @memberof NotificationHaloRunV1alpha1ReasonApiGetnotificationHaloRunV1alpha1Reason + */ + readonly name: string } /** @@ -659,40 +442,40 @@ export interface NotificationHaloRunV1alpha1ReasonApiGetnotificationHaloRunV1alp * @interface NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1alpha1ReasonRequest */ export interface NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1alpha1ReasonRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1alpha1Reason - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1alpha1Reason + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1alpha1Reason - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1alpha1Reason + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1alpha1Reason - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1alpha1Reason + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1alpha1Reason - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1alpha1Reason + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1alpha1Reason - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1alpha1Reason + */ + readonly sort?: Array } /** @@ -701,19 +484,19 @@ export interface NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1al * @interface NotificationHaloRunV1alpha1ReasonApiUpdatenotificationHaloRunV1alpha1ReasonRequest */ export interface NotificationHaloRunV1alpha1ReasonApiUpdatenotificationHaloRunV1alpha1ReasonRequest { - /** - * Name of reason - * @type {string} - * @memberof NotificationHaloRunV1alpha1ReasonApiUpdatenotificationHaloRunV1alpha1Reason - */ - readonly name: string; + /** + * Name of reason + * @type {string} + * @memberof NotificationHaloRunV1alpha1ReasonApiUpdatenotificationHaloRunV1alpha1Reason + */ + readonly name: string - /** - * Updated reason - * @type {Reason} - * @memberof NotificationHaloRunV1alpha1ReasonApiUpdatenotificationHaloRunV1alpha1Reason - */ - readonly reason?: Reason; + /** + * Updated reason + * @type {Reason} + * @memberof NotificationHaloRunV1alpha1ReasonApiUpdatenotificationHaloRunV1alpha1Reason + */ + readonly reason?: Reason } /** @@ -723,97 +506,59 @@ export interface NotificationHaloRunV1alpha1ReasonApiUpdatenotificationHaloRunV1 * @extends {BaseAPI} */ export class NotificationHaloRunV1alpha1ReasonApi extends BaseAPI { - /** - * Create notification.halo.run/v1alpha1/Reason - * @param {NotificationHaloRunV1alpha1ReasonApiCreatenotificationHaloRunV1alpha1ReasonRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1ReasonApi - */ - public createnotificationHaloRunV1alpha1Reason( - requestParameters: NotificationHaloRunV1alpha1ReasonApiCreatenotificationHaloRunV1alpha1ReasonRequest = {}, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1ReasonApiFp(this.configuration) - .createnotificationHaloRunV1alpha1Reason( - requestParameters.reason, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create notification.halo.run/v1alpha1/Reason + * @param {NotificationHaloRunV1alpha1ReasonApiCreatenotificationHaloRunV1alpha1ReasonRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1ReasonApi + */ + public createnotificationHaloRunV1alpha1Reason(requestParameters: NotificationHaloRunV1alpha1ReasonApiCreatenotificationHaloRunV1alpha1ReasonRequest = {}, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1ReasonApiFp(this.configuration).createnotificationHaloRunV1alpha1Reason(requestParameters.reason, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete notification.halo.run/v1alpha1/Reason - * @param {NotificationHaloRunV1alpha1ReasonApiDeletenotificationHaloRunV1alpha1ReasonRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1ReasonApi - */ - public deletenotificationHaloRunV1alpha1Reason( - requestParameters: NotificationHaloRunV1alpha1ReasonApiDeletenotificationHaloRunV1alpha1ReasonRequest, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1ReasonApiFp(this.configuration) - .deletenotificationHaloRunV1alpha1Reason(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete notification.halo.run/v1alpha1/Reason + * @param {NotificationHaloRunV1alpha1ReasonApiDeletenotificationHaloRunV1alpha1ReasonRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1ReasonApi + */ + public deletenotificationHaloRunV1alpha1Reason(requestParameters: NotificationHaloRunV1alpha1ReasonApiDeletenotificationHaloRunV1alpha1ReasonRequest, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1ReasonApiFp(this.configuration).deletenotificationHaloRunV1alpha1Reason(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get notification.halo.run/v1alpha1/Reason - * @param {NotificationHaloRunV1alpha1ReasonApiGetnotificationHaloRunV1alpha1ReasonRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1ReasonApi - */ - public getnotificationHaloRunV1alpha1Reason( - requestParameters: NotificationHaloRunV1alpha1ReasonApiGetnotificationHaloRunV1alpha1ReasonRequest, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1ReasonApiFp(this.configuration) - .getnotificationHaloRunV1alpha1Reason(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get notification.halo.run/v1alpha1/Reason + * @param {NotificationHaloRunV1alpha1ReasonApiGetnotificationHaloRunV1alpha1ReasonRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1ReasonApi + */ + public getnotificationHaloRunV1alpha1Reason(requestParameters: NotificationHaloRunV1alpha1ReasonApiGetnotificationHaloRunV1alpha1ReasonRequest, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1ReasonApiFp(this.configuration).getnotificationHaloRunV1alpha1Reason(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List notification.halo.run/v1alpha1/Reason - * @param {NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1alpha1ReasonRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1ReasonApi - */ - public listnotificationHaloRunV1alpha1Reason( - requestParameters: NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1alpha1ReasonRequest = {}, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1ReasonApiFp(this.configuration) - .listnotificationHaloRunV1alpha1Reason( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List notification.halo.run/v1alpha1/Reason + * @param {NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1alpha1ReasonRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1ReasonApi + */ + public listnotificationHaloRunV1alpha1Reason(requestParameters: NotificationHaloRunV1alpha1ReasonApiListnotificationHaloRunV1alpha1ReasonRequest = {}, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1ReasonApiFp(this.configuration).listnotificationHaloRunV1alpha1Reason(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update notification.halo.run/v1alpha1/Reason - * @param {NotificationHaloRunV1alpha1ReasonApiUpdatenotificationHaloRunV1alpha1ReasonRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1ReasonApi - */ - public updatenotificationHaloRunV1alpha1Reason( - requestParameters: NotificationHaloRunV1alpha1ReasonApiUpdatenotificationHaloRunV1alpha1ReasonRequest, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1ReasonApiFp(this.configuration) - .updatenotificationHaloRunV1alpha1Reason( - requestParameters.name, - requestParameters.reason, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update notification.halo.run/v1alpha1/Reason + * @param {NotificationHaloRunV1alpha1ReasonApiUpdatenotificationHaloRunV1alpha1ReasonRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1ReasonApi + */ + public updatenotificationHaloRunV1alpha1Reason(requestParameters: NotificationHaloRunV1alpha1ReasonApiUpdatenotificationHaloRunV1alpha1ReasonRequest, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1ReasonApiFp(this.configuration).updatenotificationHaloRunV1alpha1Reason(requestParameters.name, requestParameters.reason, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-reason-type-api.ts b/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-reason-type-api.ts index 395fcb8db..aa5446ece 100644 --- a/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-reason-type-api.ts +++ b/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-reason-type-api.ts @@ -5,616 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { ReasonType } from "../models"; +import { ReasonType } from '../models'; // @ts-ignore -import { ReasonTypeList } from "../models"; +import { ReasonTypeList } from '../models'; /** * NotificationHaloRunV1alpha1ReasonTypeApi - axios parameter creator * @export */ -export const NotificationHaloRunV1alpha1ReasonTypeApiAxiosParamCreator = - function (configuration?: Configuration) { +export const NotificationHaloRunV1alpha1ReasonTypeApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Create notification.halo.run/v1alpha1/ReasonType - * @param {ReasonType} [reasonType] Fresh reasontype - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createnotificationHaloRunV1alpha1ReasonType: async ( - reasonType?: ReasonType, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/notification.halo.run/v1alpha1/reasontypes`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * Create notification.halo.run/v1alpha1/ReasonType + * @param {ReasonType} [reasonType] Fresh reasontype + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createnotificationHaloRunV1alpha1ReasonType: async (reasonType?: ReasonType, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/notification.halo.run/v1alpha1/reasontypes`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - reasonType, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete notification.halo.run/v1alpha1/ReasonType - * @param {string} name Name of reasontype - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletenotificationHaloRunV1alpha1ReasonType: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "deletenotificationHaloRunV1alpha1ReasonType", - "name", - name - ); - const localVarPath = - `/apis/notification.halo.run/v1alpha1/reasontypes/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(reasonType, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete notification.halo.run/v1alpha1/ReasonType + * @param {string} name Name of reasontype + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletenotificationHaloRunV1alpha1ReasonType: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletenotificationHaloRunV1alpha1ReasonType', 'name', name) + const localVarPath = `/apis/notification.halo.run/v1alpha1/reasontypes/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get notification.halo.run/v1alpha1/ReasonType - * @param {string} name Name of reasontype - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getnotificationHaloRunV1alpha1ReasonType: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "getnotificationHaloRunV1alpha1ReasonType", - "name", - name - ); - const localVarPath = - `/apis/notification.halo.run/v1alpha1/reasontypes/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get notification.halo.run/v1alpha1/ReasonType + * @param {string} name Name of reasontype + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getnotificationHaloRunV1alpha1ReasonType: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getnotificationHaloRunV1alpha1ReasonType', 'name', name) + const localVarPath = `/apis/notification.halo.run/v1alpha1/reasontypes/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List notification.halo.run/v1alpha1/ReasonType - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listnotificationHaloRunV1alpha1ReasonType: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/notification.halo.run/v1alpha1/reasontypes`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List notification.halo.run/v1alpha1/ReasonType + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listnotificationHaloRunV1alpha1ReasonType: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/notification.halo.run/v1alpha1/reasontypes`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update notification.halo.run/v1alpha1/ReasonType - * @param {string} name Name of reasontype - * @param {ReasonType} [reasonType] Updated reasontype - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatenotificationHaloRunV1alpha1ReasonType: async ( - name: string, - reasonType?: ReasonType, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "updatenotificationHaloRunV1alpha1ReasonType", - "name", - name - ); - const localVarPath = - `/apis/notification.halo.run/v1alpha1/reasontypes/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update notification.halo.run/v1alpha1/ReasonType + * @param {string} name Name of reasontype + * @param {ReasonType} [reasonType] Updated reasontype + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatenotificationHaloRunV1alpha1ReasonType: async (name: string, reasonType?: ReasonType, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatenotificationHaloRunV1alpha1ReasonType', 'name', name) + const localVarPath = `/apis/notification.halo.run/v1alpha1/reasontypes/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - reasonType, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(reasonType, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * NotificationHaloRunV1alpha1ReasonTypeApi - functional programming interface * @export */ -export const NotificationHaloRunV1alpha1ReasonTypeApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - NotificationHaloRunV1alpha1ReasonTypeApiAxiosParamCreator(configuration); - return { - /** - * Create notification.halo.run/v1alpha1/ReasonType - * @param {ReasonType} [reasonType] Fresh reasontype - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createnotificationHaloRunV1alpha1ReasonType( - reasonType?: ReasonType, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createnotificationHaloRunV1alpha1ReasonType( - reasonType, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete notification.halo.run/v1alpha1/ReasonType - * @param {string} name Name of reasontype - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletenotificationHaloRunV1alpha1ReasonType( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletenotificationHaloRunV1alpha1ReasonType( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get notification.halo.run/v1alpha1/ReasonType - * @param {string} name Name of reasontype - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getnotificationHaloRunV1alpha1ReasonType( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getnotificationHaloRunV1alpha1ReasonType( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List notification.halo.run/v1alpha1/ReasonType - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listnotificationHaloRunV1alpha1ReasonType( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listnotificationHaloRunV1alpha1ReasonType( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update notification.halo.run/v1alpha1/ReasonType - * @param {string} name Name of reasontype - * @param {ReasonType} [reasonType] Updated reasontype - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatenotificationHaloRunV1alpha1ReasonType( - name: string, - reasonType?: ReasonType, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatenotificationHaloRunV1alpha1ReasonType( - name, - reasonType, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const NotificationHaloRunV1alpha1ReasonTypeApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = NotificationHaloRunV1alpha1ReasonTypeApiAxiosParamCreator(configuration) + return { + /** + * Create notification.halo.run/v1alpha1/ReasonType + * @param {ReasonType} [reasonType] Fresh reasontype + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createnotificationHaloRunV1alpha1ReasonType(reasonType?: ReasonType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createnotificationHaloRunV1alpha1ReasonType(reasonType, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1ReasonTypeApi.createnotificationHaloRunV1alpha1ReasonType']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete notification.halo.run/v1alpha1/ReasonType + * @param {string} name Name of reasontype + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletenotificationHaloRunV1alpha1ReasonType(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletenotificationHaloRunV1alpha1ReasonType(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1ReasonTypeApi.deletenotificationHaloRunV1alpha1ReasonType']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get notification.halo.run/v1alpha1/ReasonType + * @param {string} name Name of reasontype + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getnotificationHaloRunV1alpha1ReasonType(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getnotificationHaloRunV1alpha1ReasonType(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1ReasonTypeApi.getnotificationHaloRunV1alpha1ReasonType']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List notification.halo.run/v1alpha1/ReasonType + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listnotificationHaloRunV1alpha1ReasonType(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listnotificationHaloRunV1alpha1ReasonType(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1ReasonTypeApi.listnotificationHaloRunV1alpha1ReasonType']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update notification.halo.run/v1alpha1/ReasonType + * @param {string} name Name of reasontype + * @param {ReasonType} [reasonType] Updated reasontype + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatenotificationHaloRunV1alpha1ReasonType(name: string, reasonType?: ReasonType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatenotificationHaloRunV1alpha1ReasonType(name, reasonType, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1ReasonTypeApi.updatenotificationHaloRunV1alpha1ReasonType']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * NotificationHaloRunV1alpha1ReasonTypeApi - factory interface * @export */ -export const NotificationHaloRunV1alpha1ReasonTypeApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = NotificationHaloRunV1alpha1ReasonTypeApiFp(configuration); - return { - /** - * Create notification.halo.run/v1alpha1/ReasonType - * @param {NotificationHaloRunV1alpha1ReasonTypeApiCreatenotificationHaloRunV1alpha1ReasonTypeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createnotificationHaloRunV1alpha1ReasonType( - requestParameters: NotificationHaloRunV1alpha1ReasonTypeApiCreatenotificationHaloRunV1alpha1ReasonTypeRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createnotificationHaloRunV1alpha1ReasonType( - requestParameters.reasonType, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Delete notification.halo.run/v1alpha1/ReasonType - * @param {NotificationHaloRunV1alpha1ReasonTypeApiDeletenotificationHaloRunV1alpha1ReasonTypeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletenotificationHaloRunV1alpha1ReasonType( - requestParameters: NotificationHaloRunV1alpha1ReasonTypeApiDeletenotificationHaloRunV1alpha1ReasonTypeRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletenotificationHaloRunV1alpha1ReasonType( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Get notification.halo.run/v1alpha1/ReasonType - * @param {NotificationHaloRunV1alpha1ReasonTypeApiGetnotificationHaloRunV1alpha1ReasonTypeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getnotificationHaloRunV1alpha1ReasonType( - requestParameters: NotificationHaloRunV1alpha1ReasonTypeApiGetnotificationHaloRunV1alpha1ReasonTypeRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getnotificationHaloRunV1alpha1ReasonType( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * List notification.halo.run/v1alpha1/ReasonType - * @param {NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRunV1alpha1ReasonTypeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listnotificationHaloRunV1alpha1ReasonType( - requestParameters: NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRunV1alpha1ReasonTypeRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listnotificationHaloRunV1alpha1ReasonType( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update notification.halo.run/v1alpha1/ReasonType - * @param {NotificationHaloRunV1alpha1ReasonTypeApiUpdatenotificationHaloRunV1alpha1ReasonTypeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatenotificationHaloRunV1alpha1ReasonType( - requestParameters: NotificationHaloRunV1alpha1ReasonTypeApiUpdatenotificationHaloRunV1alpha1ReasonTypeRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatenotificationHaloRunV1alpha1ReasonType( - requestParameters.name, - requestParameters.reasonType, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const NotificationHaloRunV1alpha1ReasonTypeApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = NotificationHaloRunV1alpha1ReasonTypeApiFp(configuration) + return { + /** + * Create notification.halo.run/v1alpha1/ReasonType + * @param {NotificationHaloRunV1alpha1ReasonTypeApiCreatenotificationHaloRunV1alpha1ReasonTypeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createnotificationHaloRunV1alpha1ReasonType(requestParameters: NotificationHaloRunV1alpha1ReasonTypeApiCreatenotificationHaloRunV1alpha1ReasonTypeRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createnotificationHaloRunV1alpha1ReasonType(requestParameters.reasonType, options).then((request) => request(axios, basePath)); + }, + /** + * Delete notification.halo.run/v1alpha1/ReasonType + * @param {NotificationHaloRunV1alpha1ReasonTypeApiDeletenotificationHaloRunV1alpha1ReasonTypeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletenotificationHaloRunV1alpha1ReasonType(requestParameters: NotificationHaloRunV1alpha1ReasonTypeApiDeletenotificationHaloRunV1alpha1ReasonTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletenotificationHaloRunV1alpha1ReasonType(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get notification.halo.run/v1alpha1/ReasonType + * @param {NotificationHaloRunV1alpha1ReasonTypeApiGetnotificationHaloRunV1alpha1ReasonTypeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getnotificationHaloRunV1alpha1ReasonType(requestParameters: NotificationHaloRunV1alpha1ReasonTypeApiGetnotificationHaloRunV1alpha1ReasonTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getnotificationHaloRunV1alpha1ReasonType(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List notification.halo.run/v1alpha1/ReasonType + * @param {NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRunV1alpha1ReasonTypeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listnotificationHaloRunV1alpha1ReasonType(requestParameters: NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRunV1alpha1ReasonTypeRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listnotificationHaloRunV1alpha1ReasonType(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update notification.halo.run/v1alpha1/ReasonType + * @param {NotificationHaloRunV1alpha1ReasonTypeApiUpdatenotificationHaloRunV1alpha1ReasonTypeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatenotificationHaloRunV1alpha1ReasonType(requestParameters: NotificationHaloRunV1alpha1ReasonTypeApiUpdatenotificationHaloRunV1alpha1ReasonTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatenotificationHaloRunV1alpha1ReasonType(requestParameters.name, requestParameters.reasonType, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -623,12 +400,12 @@ export const NotificationHaloRunV1alpha1ReasonTypeApiFactory = function ( * @interface NotificationHaloRunV1alpha1ReasonTypeApiCreatenotificationHaloRunV1alpha1ReasonTypeRequest */ export interface NotificationHaloRunV1alpha1ReasonTypeApiCreatenotificationHaloRunV1alpha1ReasonTypeRequest { - /** - * Fresh reasontype - * @type {ReasonType} - * @memberof NotificationHaloRunV1alpha1ReasonTypeApiCreatenotificationHaloRunV1alpha1ReasonType - */ - readonly reasonType?: ReasonType; + /** + * Fresh reasontype + * @type {ReasonType} + * @memberof NotificationHaloRunV1alpha1ReasonTypeApiCreatenotificationHaloRunV1alpha1ReasonType + */ + readonly reasonType?: ReasonType } /** @@ -637,12 +414,12 @@ export interface NotificationHaloRunV1alpha1ReasonTypeApiCreatenotificationHaloR * @interface NotificationHaloRunV1alpha1ReasonTypeApiDeletenotificationHaloRunV1alpha1ReasonTypeRequest */ export interface NotificationHaloRunV1alpha1ReasonTypeApiDeletenotificationHaloRunV1alpha1ReasonTypeRequest { - /** - * Name of reasontype - * @type {string} - * @memberof NotificationHaloRunV1alpha1ReasonTypeApiDeletenotificationHaloRunV1alpha1ReasonType - */ - readonly name: string; + /** + * Name of reasontype + * @type {string} + * @memberof NotificationHaloRunV1alpha1ReasonTypeApiDeletenotificationHaloRunV1alpha1ReasonType + */ + readonly name: string } /** @@ -651,12 +428,12 @@ export interface NotificationHaloRunV1alpha1ReasonTypeApiDeletenotificationHaloR * @interface NotificationHaloRunV1alpha1ReasonTypeApiGetnotificationHaloRunV1alpha1ReasonTypeRequest */ export interface NotificationHaloRunV1alpha1ReasonTypeApiGetnotificationHaloRunV1alpha1ReasonTypeRequest { - /** - * Name of reasontype - * @type {string} - * @memberof NotificationHaloRunV1alpha1ReasonTypeApiGetnotificationHaloRunV1alpha1ReasonType - */ - readonly name: string; + /** + * Name of reasontype + * @type {string} + * @memberof NotificationHaloRunV1alpha1ReasonTypeApiGetnotificationHaloRunV1alpha1ReasonType + */ + readonly name: string } /** @@ -665,40 +442,40 @@ export interface NotificationHaloRunV1alpha1ReasonTypeApiGetnotificationHaloRunV * @interface NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRunV1alpha1ReasonTypeRequest */ export interface NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRunV1alpha1ReasonTypeRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRunV1alpha1ReasonType - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRunV1alpha1ReasonType + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRunV1alpha1ReasonType - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRunV1alpha1ReasonType + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRunV1alpha1ReasonType - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRunV1alpha1ReasonType + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRunV1alpha1ReasonType - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRunV1alpha1ReasonType + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRunV1alpha1ReasonType - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRunV1alpha1ReasonType + */ + readonly sort?: Array } /** @@ -707,19 +484,19 @@ export interface NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRun * @interface NotificationHaloRunV1alpha1ReasonTypeApiUpdatenotificationHaloRunV1alpha1ReasonTypeRequest */ export interface NotificationHaloRunV1alpha1ReasonTypeApiUpdatenotificationHaloRunV1alpha1ReasonTypeRequest { - /** - * Name of reasontype - * @type {string} - * @memberof NotificationHaloRunV1alpha1ReasonTypeApiUpdatenotificationHaloRunV1alpha1ReasonType - */ - readonly name: string; + /** + * Name of reasontype + * @type {string} + * @memberof NotificationHaloRunV1alpha1ReasonTypeApiUpdatenotificationHaloRunV1alpha1ReasonType + */ + readonly name: string - /** - * Updated reasontype - * @type {ReasonType} - * @memberof NotificationHaloRunV1alpha1ReasonTypeApiUpdatenotificationHaloRunV1alpha1ReasonType - */ - readonly reasonType?: ReasonType; + /** + * Updated reasontype + * @type {ReasonType} + * @memberof NotificationHaloRunV1alpha1ReasonTypeApiUpdatenotificationHaloRunV1alpha1ReasonType + */ + readonly reasonType?: ReasonType } /** @@ -729,100 +506,59 @@ export interface NotificationHaloRunV1alpha1ReasonTypeApiUpdatenotificationHaloR * @extends {BaseAPI} */ export class NotificationHaloRunV1alpha1ReasonTypeApi extends BaseAPI { - /** - * Create notification.halo.run/v1alpha1/ReasonType - * @param {NotificationHaloRunV1alpha1ReasonTypeApiCreatenotificationHaloRunV1alpha1ReasonTypeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1ReasonTypeApi - */ - public createnotificationHaloRunV1alpha1ReasonType( - requestParameters: NotificationHaloRunV1alpha1ReasonTypeApiCreatenotificationHaloRunV1alpha1ReasonTypeRequest = {}, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1ReasonTypeApiFp(this.configuration) - .createnotificationHaloRunV1alpha1ReasonType( - requestParameters.reasonType, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create notification.halo.run/v1alpha1/ReasonType + * @param {NotificationHaloRunV1alpha1ReasonTypeApiCreatenotificationHaloRunV1alpha1ReasonTypeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1ReasonTypeApi + */ + public createnotificationHaloRunV1alpha1ReasonType(requestParameters: NotificationHaloRunV1alpha1ReasonTypeApiCreatenotificationHaloRunV1alpha1ReasonTypeRequest = {}, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1ReasonTypeApiFp(this.configuration).createnotificationHaloRunV1alpha1ReasonType(requestParameters.reasonType, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete notification.halo.run/v1alpha1/ReasonType - * @param {NotificationHaloRunV1alpha1ReasonTypeApiDeletenotificationHaloRunV1alpha1ReasonTypeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1ReasonTypeApi - */ - public deletenotificationHaloRunV1alpha1ReasonType( - requestParameters: NotificationHaloRunV1alpha1ReasonTypeApiDeletenotificationHaloRunV1alpha1ReasonTypeRequest, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1ReasonTypeApiFp(this.configuration) - .deletenotificationHaloRunV1alpha1ReasonType( - requestParameters.name, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete notification.halo.run/v1alpha1/ReasonType + * @param {NotificationHaloRunV1alpha1ReasonTypeApiDeletenotificationHaloRunV1alpha1ReasonTypeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1ReasonTypeApi + */ + public deletenotificationHaloRunV1alpha1ReasonType(requestParameters: NotificationHaloRunV1alpha1ReasonTypeApiDeletenotificationHaloRunV1alpha1ReasonTypeRequest, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1ReasonTypeApiFp(this.configuration).deletenotificationHaloRunV1alpha1ReasonType(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get notification.halo.run/v1alpha1/ReasonType - * @param {NotificationHaloRunV1alpha1ReasonTypeApiGetnotificationHaloRunV1alpha1ReasonTypeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1ReasonTypeApi - */ - public getnotificationHaloRunV1alpha1ReasonType( - requestParameters: NotificationHaloRunV1alpha1ReasonTypeApiGetnotificationHaloRunV1alpha1ReasonTypeRequest, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1ReasonTypeApiFp(this.configuration) - .getnotificationHaloRunV1alpha1ReasonType(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get notification.halo.run/v1alpha1/ReasonType + * @param {NotificationHaloRunV1alpha1ReasonTypeApiGetnotificationHaloRunV1alpha1ReasonTypeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1ReasonTypeApi + */ + public getnotificationHaloRunV1alpha1ReasonType(requestParameters: NotificationHaloRunV1alpha1ReasonTypeApiGetnotificationHaloRunV1alpha1ReasonTypeRequest, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1ReasonTypeApiFp(this.configuration).getnotificationHaloRunV1alpha1ReasonType(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List notification.halo.run/v1alpha1/ReasonType - * @param {NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRunV1alpha1ReasonTypeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1ReasonTypeApi - */ - public listnotificationHaloRunV1alpha1ReasonType( - requestParameters: NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRunV1alpha1ReasonTypeRequest = {}, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1ReasonTypeApiFp(this.configuration) - .listnotificationHaloRunV1alpha1ReasonType( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List notification.halo.run/v1alpha1/ReasonType + * @param {NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRunV1alpha1ReasonTypeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1ReasonTypeApi + */ + public listnotificationHaloRunV1alpha1ReasonType(requestParameters: NotificationHaloRunV1alpha1ReasonTypeApiListnotificationHaloRunV1alpha1ReasonTypeRequest = {}, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1ReasonTypeApiFp(this.configuration).listnotificationHaloRunV1alpha1ReasonType(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update notification.halo.run/v1alpha1/ReasonType - * @param {NotificationHaloRunV1alpha1ReasonTypeApiUpdatenotificationHaloRunV1alpha1ReasonTypeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1ReasonTypeApi - */ - public updatenotificationHaloRunV1alpha1ReasonType( - requestParameters: NotificationHaloRunV1alpha1ReasonTypeApiUpdatenotificationHaloRunV1alpha1ReasonTypeRequest, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1ReasonTypeApiFp(this.configuration) - .updatenotificationHaloRunV1alpha1ReasonType( - requestParameters.name, - requestParameters.reasonType, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update notification.halo.run/v1alpha1/ReasonType + * @param {NotificationHaloRunV1alpha1ReasonTypeApiUpdatenotificationHaloRunV1alpha1ReasonTypeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1ReasonTypeApi + */ + public updatenotificationHaloRunV1alpha1ReasonType(requestParameters: NotificationHaloRunV1alpha1ReasonTypeApiUpdatenotificationHaloRunV1alpha1ReasonTypeRequest, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1ReasonTypeApiFp(this.configuration).updatenotificationHaloRunV1alpha1ReasonType(requestParameters.name, requestParameters.reasonType, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-subscription-api.ts b/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-subscription-api.ts index 35a082988..b538005a4 100644 --- a/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-subscription-api.ts +++ b/ui/packages/api-client/src/api/notification-halo-run-v1alpha1-subscription-api.ts @@ -5,620 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Subscription } from "../models"; +import { Subscription } from '../models'; // @ts-ignore -import { SubscriptionList } from "../models"; +import { SubscriptionList } from '../models'; /** * NotificationHaloRunV1alpha1SubscriptionApi - axios parameter creator * @export */ -export const NotificationHaloRunV1alpha1SubscriptionApiAxiosParamCreator = - function (configuration?: Configuration) { +export const NotificationHaloRunV1alpha1SubscriptionApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Create notification.halo.run/v1alpha1/Subscription - * @param {Subscription} [subscription] Fresh subscription - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createnotificationHaloRunV1alpha1Subscription: async ( - subscription?: Subscription, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/notification.halo.run/v1alpha1/subscriptions`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * Create notification.halo.run/v1alpha1/Subscription + * @param {Subscription} [subscription] Fresh subscription + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createnotificationHaloRunV1alpha1Subscription: async (subscription?: Subscription, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/notification.halo.run/v1alpha1/subscriptions`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - subscription, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete notification.halo.run/v1alpha1/Subscription - * @param {string} name Name of subscription - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletenotificationHaloRunV1alpha1Subscription: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "deletenotificationHaloRunV1alpha1Subscription", - "name", - name - ); - const localVarPath = - `/apis/notification.halo.run/v1alpha1/subscriptions/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(subscription, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete notification.halo.run/v1alpha1/Subscription + * @param {string} name Name of subscription + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletenotificationHaloRunV1alpha1Subscription: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletenotificationHaloRunV1alpha1Subscription', 'name', name) + const localVarPath = `/apis/notification.halo.run/v1alpha1/subscriptions/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get notification.halo.run/v1alpha1/Subscription - * @param {string} name Name of subscription - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getnotificationHaloRunV1alpha1Subscription: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "getnotificationHaloRunV1alpha1Subscription", - "name", - name - ); - const localVarPath = - `/apis/notification.halo.run/v1alpha1/subscriptions/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get notification.halo.run/v1alpha1/Subscription + * @param {string} name Name of subscription + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getnotificationHaloRunV1alpha1Subscription: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getnotificationHaloRunV1alpha1Subscription', 'name', name) + const localVarPath = `/apis/notification.halo.run/v1alpha1/subscriptions/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List notification.halo.run/v1alpha1/Subscription - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listnotificationHaloRunV1alpha1Subscription: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/notification.halo.run/v1alpha1/subscriptions`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List notification.halo.run/v1alpha1/Subscription + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listnotificationHaloRunV1alpha1Subscription: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/notification.halo.run/v1alpha1/subscriptions`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update notification.halo.run/v1alpha1/Subscription - * @param {string} name Name of subscription - * @param {Subscription} [subscription] Updated subscription - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatenotificationHaloRunV1alpha1Subscription: async ( - name: string, - subscription?: Subscription, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "updatenotificationHaloRunV1alpha1Subscription", - "name", - name - ); - const localVarPath = - `/apis/notification.halo.run/v1alpha1/subscriptions/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update notification.halo.run/v1alpha1/Subscription + * @param {string} name Name of subscription + * @param {Subscription} [subscription] Updated subscription + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatenotificationHaloRunV1alpha1Subscription: async (name: string, subscription?: Subscription, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatenotificationHaloRunV1alpha1Subscription', 'name', name) + const localVarPath = `/apis/notification.halo.run/v1alpha1/subscriptions/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - subscription, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(subscription, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * NotificationHaloRunV1alpha1SubscriptionApi - functional programming interface * @export */ -export const NotificationHaloRunV1alpha1SubscriptionApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - NotificationHaloRunV1alpha1SubscriptionApiAxiosParamCreator(configuration); - return { - /** - * Create notification.halo.run/v1alpha1/Subscription - * @param {Subscription} [subscription] Fresh subscription - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createnotificationHaloRunV1alpha1Subscription( - subscription?: Subscription, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createnotificationHaloRunV1alpha1Subscription( - subscription, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete notification.halo.run/v1alpha1/Subscription - * @param {string} name Name of subscription - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletenotificationHaloRunV1alpha1Subscription( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletenotificationHaloRunV1alpha1Subscription( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get notification.halo.run/v1alpha1/Subscription - * @param {string} name Name of subscription - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getnotificationHaloRunV1alpha1Subscription( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getnotificationHaloRunV1alpha1Subscription( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List notification.halo.run/v1alpha1/Subscription - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listnotificationHaloRunV1alpha1Subscription( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listnotificationHaloRunV1alpha1Subscription( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update notification.halo.run/v1alpha1/Subscription - * @param {string} name Name of subscription - * @param {Subscription} [subscription] Updated subscription - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatenotificationHaloRunV1alpha1Subscription( - name: string, - subscription?: Subscription, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatenotificationHaloRunV1alpha1Subscription( - name, - subscription, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const NotificationHaloRunV1alpha1SubscriptionApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = NotificationHaloRunV1alpha1SubscriptionApiAxiosParamCreator(configuration) + return { + /** + * Create notification.halo.run/v1alpha1/Subscription + * @param {Subscription} [subscription] Fresh subscription + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createnotificationHaloRunV1alpha1Subscription(subscription?: Subscription, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createnotificationHaloRunV1alpha1Subscription(subscription, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1SubscriptionApi.createnotificationHaloRunV1alpha1Subscription']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete notification.halo.run/v1alpha1/Subscription + * @param {string} name Name of subscription + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletenotificationHaloRunV1alpha1Subscription(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletenotificationHaloRunV1alpha1Subscription(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1SubscriptionApi.deletenotificationHaloRunV1alpha1Subscription']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get notification.halo.run/v1alpha1/Subscription + * @param {string} name Name of subscription + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getnotificationHaloRunV1alpha1Subscription(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getnotificationHaloRunV1alpha1Subscription(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1SubscriptionApi.getnotificationHaloRunV1alpha1Subscription']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List notification.halo.run/v1alpha1/Subscription + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listnotificationHaloRunV1alpha1Subscription(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listnotificationHaloRunV1alpha1Subscription(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1SubscriptionApi.listnotificationHaloRunV1alpha1Subscription']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update notification.halo.run/v1alpha1/Subscription + * @param {string} name Name of subscription + * @param {Subscription} [subscription] Updated subscription + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatenotificationHaloRunV1alpha1Subscription(name: string, subscription?: Subscription, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatenotificationHaloRunV1alpha1Subscription(name, subscription, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['NotificationHaloRunV1alpha1SubscriptionApi.updatenotificationHaloRunV1alpha1Subscription']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * NotificationHaloRunV1alpha1SubscriptionApi - factory interface * @export */ -export const NotificationHaloRunV1alpha1SubscriptionApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = - NotificationHaloRunV1alpha1SubscriptionApiFp(configuration); - return { - /** - * Create notification.halo.run/v1alpha1/Subscription - * @param {NotificationHaloRunV1alpha1SubscriptionApiCreatenotificationHaloRunV1alpha1SubscriptionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createnotificationHaloRunV1alpha1Subscription( - requestParameters: NotificationHaloRunV1alpha1SubscriptionApiCreatenotificationHaloRunV1alpha1SubscriptionRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createnotificationHaloRunV1alpha1Subscription( - requestParameters.subscription, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Delete notification.halo.run/v1alpha1/Subscription - * @param {NotificationHaloRunV1alpha1SubscriptionApiDeletenotificationHaloRunV1alpha1SubscriptionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletenotificationHaloRunV1alpha1Subscription( - requestParameters: NotificationHaloRunV1alpha1SubscriptionApiDeletenotificationHaloRunV1alpha1SubscriptionRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletenotificationHaloRunV1alpha1Subscription( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Get notification.halo.run/v1alpha1/Subscription - * @param {NotificationHaloRunV1alpha1SubscriptionApiGetnotificationHaloRunV1alpha1SubscriptionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getnotificationHaloRunV1alpha1Subscription( - requestParameters: NotificationHaloRunV1alpha1SubscriptionApiGetnotificationHaloRunV1alpha1SubscriptionRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getnotificationHaloRunV1alpha1Subscription( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * List notification.halo.run/v1alpha1/Subscription - * @param {NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloRunV1alpha1SubscriptionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listnotificationHaloRunV1alpha1Subscription( - requestParameters: NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloRunV1alpha1SubscriptionRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listnotificationHaloRunV1alpha1Subscription( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update notification.halo.run/v1alpha1/Subscription - * @param {NotificationHaloRunV1alpha1SubscriptionApiUpdatenotificationHaloRunV1alpha1SubscriptionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatenotificationHaloRunV1alpha1Subscription( - requestParameters: NotificationHaloRunV1alpha1SubscriptionApiUpdatenotificationHaloRunV1alpha1SubscriptionRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatenotificationHaloRunV1alpha1Subscription( - requestParameters.name, - requestParameters.subscription, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const NotificationHaloRunV1alpha1SubscriptionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = NotificationHaloRunV1alpha1SubscriptionApiFp(configuration) + return { + /** + * Create notification.halo.run/v1alpha1/Subscription + * @param {NotificationHaloRunV1alpha1SubscriptionApiCreatenotificationHaloRunV1alpha1SubscriptionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createnotificationHaloRunV1alpha1Subscription(requestParameters: NotificationHaloRunV1alpha1SubscriptionApiCreatenotificationHaloRunV1alpha1SubscriptionRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createnotificationHaloRunV1alpha1Subscription(requestParameters.subscription, options).then((request) => request(axios, basePath)); + }, + /** + * Delete notification.halo.run/v1alpha1/Subscription + * @param {NotificationHaloRunV1alpha1SubscriptionApiDeletenotificationHaloRunV1alpha1SubscriptionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletenotificationHaloRunV1alpha1Subscription(requestParameters: NotificationHaloRunV1alpha1SubscriptionApiDeletenotificationHaloRunV1alpha1SubscriptionRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletenotificationHaloRunV1alpha1Subscription(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get notification.halo.run/v1alpha1/Subscription + * @param {NotificationHaloRunV1alpha1SubscriptionApiGetnotificationHaloRunV1alpha1SubscriptionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getnotificationHaloRunV1alpha1Subscription(requestParameters: NotificationHaloRunV1alpha1SubscriptionApiGetnotificationHaloRunV1alpha1SubscriptionRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getnotificationHaloRunV1alpha1Subscription(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List notification.halo.run/v1alpha1/Subscription + * @param {NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloRunV1alpha1SubscriptionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listnotificationHaloRunV1alpha1Subscription(requestParameters: NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloRunV1alpha1SubscriptionRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listnotificationHaloRunV1alpha1Subscription(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update notification.halo.run/v1alpha1/Subscription + * @param {NotificationHaloRunV1alpha1SubscriptionApiUpdatenotificationHaloRunV1alpha1SubscriptionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatenotificationHaloRunV1alpha1Subscription(requestParameters: NotificationHaloRunV1alpha1SubscriptionApiUpdatenotificationHaloRunV1alpha1SubscriptionRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatenotificationHaloRunV1alpha1Subscription(requestParameters.name, requestParameters.subscription, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -627,12 +400,12 @@ export const NotificationHaloRunV1alpha1SubscriptionApiFactory = function ( * @interface NotificationHaloRunV1alpha1SubscriptionApiCreatenotificationHaloRunV1alpha1SubscriptionRequest */ export interface NotificationHaloRunV1alpha1SubscriptionApiCreatenotificationHaloRunV1alpha1SubscriptionRequest { - /** - * Fresh subscription - * @type {Subscription} - * @memberof NotificationHaloRunV1alpha1SubscriptionApiCreatenotificationHaloRunV1alpha1Subscription - */ - readonly subscription?: Subscription; + /** + * Fresh subscription + * @type {Subscription} + * @memberof NotificationHaloRunV1alpha1SubscriptionApiCreatenotificationHaloRunV1alpha1Subscription + */ + readonly subscription?: Subscription } /** @@ -641,12 +414,12 @@ export interface NotificationHaloRunV1alpha1SubscriptionApiCreatenotificationHal * @interface NotificationHaloRunV1alpha1SubscriptionApiDeletenotificationHaloRunV1alpha1SubscriptionRequest */ export interface NotificationHaloRunV1alpha1SubscriptionApiDeletenotificationHaloRunV1alpha1SubscriptionRequest { - /** - * Name of subscription - * @type {string} - * @memberof NotificationHaloRunV1alpha1SubscriptionApiDeletenotificationHaloRunV1alpha1Subscription - */ - readonly name: string; + /** + * Name of subscription + * @type {string} + * @memberof NotificationHaloRunV1alpha1SubscriptionApiDeletenotificationHaloRunV1alpha1Subscription + */ + readonly name: string } /** @@ -655,12 +428,12 @@ export interface NotificationHaloRunV1alpha1SubscriptionApiDeletenotificationHal * @interface NotificationHaloRunV1alpha1SubscriptionApiGetnotificationHaloRunV1alpha1SubscriptionRequest */ export interface NotificationHaloRunV1alpha1SubscriptionApiGetnotificationHaloRunV1alpha1SubscriptionRequest { - /** - * Name of subscription - * @type {string} - * @memberof NotificationHaloRunV1alpha1SubscriptionApiGetnotificationHaloRunV1alpha1Subscription - */ - readonly name: string; + /** + * Name of subscription + * @type {string} + * @memberof NotificationHaloRunV1alpha1SubscriptionApiGetnotificationHaloRunV1alpha1Subscription + */ + readonly name: string } /** @@ -669,40 +442,40 @@ export interface NotificationHaloRunV1alpha1SubscriptionApiGetnotificationHaloRu * @interface NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloRunV1alpha1SubscriptionRequest */ export interface NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloRunV1alpha1SubscriptionRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloRunV1alpha1Subscription - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloRunV1alpha1Subscription + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloRunV1alpha1Subscription - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloRunV1alpha1Subscription + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloRunV1alpha1Subscription - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloRunV1alpha1Subscription + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloRunV1alpha1Subscription - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloRunV1alpha1Subscription + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloRunV1alpha1Subscription - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloRunV1alpha1Subscription + */ + readonly sort?: Array } /** @@ -711,19 +484,19 @@ export interface NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloR * @interface NotificationHaloRunV1alpha1SubscriptionApiUpdatenotificationHaloRunV1alpha1SubscriptionRequest */ export interface NotificationHaloRunV1alpha1SubscriptionApiUpdatenotificationHaloRunV1alpha1SubscriptionRequest { - /** - * Name of subscription - * @type {string} - * @memberof NotificationHaloRunV1alpha1SubscriptionApiUpdatenotificationHaloRunV1alpha1Subscription - */ - readonly name: string; + /** + * Name of subscription + * @type {string} + * @memberof NotificationHaloRunV1alpha1SubscriptionApiUpdatenotificationHaloRunV1alpha1Subscription + */ + readonly name: string - /** - * Updated subscription - * @type {Subscription} - * @memberof NotificationHaloRunV1alpha1SubscriptionApiUpdatenotificationHaloRunV1alpha1Subscription - */ - readonly subscription?: Subscription; + /** + * Updated subscription + * @type {Subscription} + * @memberof NotificationHaloRunV1alpha1SubscriptionApiUpdatenotificationHaloRunV1alpha1Subscription + */ + readonly subscription?: Subscription } /** @@ -733,103 +506,59 @@ export interface NotificationHaloRunV1alpha1SubscriptionApiUpdatenotificationHal * @extends {BaseAPI} */ export class NotificationHaloRunV1alpha1SubscriptionApi extends BaseAPI { - /** - * Create notification.halo.run/v1alpha1/Subscription - * @param {NotificationHaloRunV1alpha1SubscriptionApiCreatenotificationHaloRunV1alpha1SubscriptionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1SubscriptionApi - */ - public createnotificationHaloRunV1alpha1Subscription( - requestParameters: NotificationHaloRunV1alpha1SubscriptionApiCreatenotificationHaloRunV1alpha1SubscriptionRequest = {}, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1SubscriptionApiFp(this.configuration) - .createnotificationHaloRunV1alpha1Subscription( - requestParameters.subscription, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create notification.halo.run/v1alpha1/Subscription + * @param {NotificationHaloRunV1alpha1SubscriptionApiCreatenotificationHaloRunV1alpha1SubscriptionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1SubscriptionApi + */ + public createnotificationHaloRunV1alpha1Subscription(requestParameters: NotificationHaloRunV1alpha1SubscriptionApiCreatenotificationHaloRunV1alpha1SubscriptionRequest = {}, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1SubscriptionApiFp(this.configuration).createnotificationHaloRunV1alpha1Subscription(requestParameters.subscription, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete notification.halo.run/v1alpha1/Subscription - * @param {NotificationHaloRunV1alpha1SubscriptionApiDeletenotificationHaloRunV1alpha1SubscriptionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1SubscriptionApi - */ - public deletenotificationHaloRunV1alpha1Subscription( - requestParameters: NotificationHaloRunV1alpha1SubscriptionApiDeletenotificationHaloRunV1alpha1SubscriptionRequest, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1SubscriptionApiFp(this.configuration) - .deletenotificationHaloRunV1alpha1Subscription( - requestParameters.name, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete notification.halo.run/v1alpha1/Subscription + * @param {NotificationHaloRunV1alpha1SubscriptionApiDeletenotificationHaloRunV1alpha1SubscriptionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1SubscriptionApi + */ + public deletenotificationHaloRunV1alpha1Subscription(requestParameters: NotificationHaloRunV1alpha1SubscriptionApiDeletenotificationHaloRunV1alpha1SubscriptionRequest, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1SubscriptionApiFp(this.configuration).deletenotificationHaloRunV1alpha1Subscription(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get notification.halo.run/v1alpha1/Subscription - * @param {NotificationHaloRunV1alpha1SubscriptionApiGetnotificationHaloRunV1alpha1SubscriptionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1SubscriptionApi - */ - public getnotificationHaloRunV1alpha1Subscription( - requestParameters: NotificationHaloRunV1alpha1SubscriptionApiGetnotificationHaloRunV1alpha1SubscriptionRequest, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1SubscriptionApiFp(this.configuration) - .getnotificationHaloRunV1alpha1Subscription( - requestParameters.name, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get notification.halo.run/v1alpha1/Subscription + * @param {NotificationHaloRunV1alpha1SubscriptionApiGetnotificationHaloRunV1alpha1SubscriptionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1SubscriptionApi + */ + public getnotificationHaloRunV1alpha1Subscription(requestParameters: NotificationHaloRunV1alpha1SubscriptionApiGetnotificationHaloRunV1alpha1SubscriptionRequest, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1SubscriptionApiFp(this.configuration).getnotificationHaloRunV1alpha1Subscription(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List notification.halo.run/v1alpha1/Subscription - * @param {NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloRunV1alpha1SubscriptionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1SubscriptionApi - */ - public listnotificationHaloRunV1alpha1Subscription( - requestParameters: NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloRunV1alpha1SubscriptionRequest = {}, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1SubscriptionApiFp(this.configuration) - .listnotificationHaloRunV1alpha1Subscription( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List notification.halo.run/v1alpha1/Subscription + * @param {NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloRunV1alpha1SubscriptionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1SubscriptionApi + */ + public listnotificationHaloRunV1alpha1Subscription(requestParameters: NotificationHaloRunV1alpha1SubscriptionApiListnotificationHaloRunV1alpha1SubscriptionRequest = {}, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1SubscriptionApiFp(this.configuration).listnotificationHaloRunV1alpha1Subscription(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update notification.halo.run/v1alpha1/Subscription - * @param {NotificationHaloRunV1alpha1SubscriptionApiUpdatenotificationHaloRunV1alpha1SubscriptionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof NotificationHaloRunV1alpha1SubscriptionApi - */ - public updatenotificationHaloRunV1alpha1Subscription( - requestParameters: NotificationHaloRunV1alpha1SubscriptionApiUpdatenotificationHaloRunV1alpha1SubscriptionRequest, - options?: AxiosRequestConfig - ) { - return NotificationHaloRunV1alpha1SubscriptionApiFp(this.configuration) - .updatenotificationHaloRunV1alpha1Subscription( - requestParameters.name, - requestParameters.subscription, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update notification.halo.run/v1alpha1/Subscription + * @param {NotificationHaloRunV1alpha1SubscriptionApiUpdatenotificationHaloRunV1alpha1SubscriptionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NotificationHaloRunV1alpha1SubscriptionApi + */ + public updatenotificationHaloRunV1alpha1Subscription(requestParameters: NotificationHaloRunV1alpha1SubscriptionApiUpdatenotificationHaloRunV1alpha1SubscriptionRequest, options?: RawAxiosRequestConfig) { + return NotificationHaloRunV1alpha1SubscriptionApiFp(this.configuration).updatenotificationHaloRunV1alpha1Subscription(requestParameters.name, requestParameters.subscription, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/plugin-halo-run-v1alpha1-extension-definition-api.ts b/ui/packages/api-client/src/api/plugin-halo-run-v1alpha1-extension-definition-api.ts index afe9e9ef0..cd0822ea4 100644 --- a/ui/packages/api-client/src/api/plugin-halo-run-v1alpha1-extension-definition-api.ts +++ b/ui/packages/api-client/src/api/plugin-halo-run-v1alpha1-extension-definition-api.ts @@ -5,629 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { ExtensionDefinition } from "../models"; +import { ExtensionDefinition } from '../models'; // @ts-ignore -import { ExtensionDefinitionList } from "../models"; +import { ExtensionDefinitionList } from '../models'; /** * PluginHaloRunV1alpha1ExtensionDefinitionApi - axios parameter creator * @export */ -export const PluginHaloRunV1alpha1ExtensionDefinitionApiAxiosParamCreator = - function (configuration?: Configuration) { +export const PluginHaloRunV1alpha1ExtensionDefinitionApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Create plugin.halo.run/v1alpha1/ExtensionDefinition - * @param {ExtensionDefinition} [extensionDefinition] Fresh extensiondefinition - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createpluginHaloRunV1alpha1ExtensionDefinition: async ( - extensionDefinition?: ExtensionDefinition, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensiondefinitions`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * Create plugin.halo.run/v1alpha1/ExtensionDefinition + * @param {ExtensionDefinition} [extensionDefinition] Fresh extensiondefinition + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createpluginHaloRunV1alpha1ExtensionDefinition: async (extensionDefinition?: ExtensionDefinition, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensiondefinitions`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - extensionDefinition, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete plugin.halo.run/v1alpha1/ExtensionDefinition - * @param {string} name Name of extensiondefinition - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletepluginHaloRunV1alpha1ExtensionDefinition: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "deletepluginHaloRunV1alpha1ExtensionDefinition", - "name", - name - ); - const localVarPath = - `/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(extensionDefinition, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete plugin.halo.run/v1alpha1/ExtensionDefinition + * @param {string} name Name of extensiondefinition + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletepluginHaloRunV1alpha1ExtensionDefinition: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletepluginHaloRunV1alpha1ExtensionDefinition', 'name', name) + const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get plugin.halo.run/v1alpha1/ExtensionDefinition - * @param {string} name Name of extensiondefinition - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getpluginHaloRunV1alpha1ExtensionDefinition: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "getpluginHaloRunV1alpha1ExtensionDefinition", - "name", - name - ); - const localVarPath = - `/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get plugin.halo.run/v1alpha1/ExtensionDefinition + * @param {string} name Name of extensiondefinition + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getpluginHaloRunV1alpha1ExtensionDefinition: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getpluginHaloRunV1alpha1ExtensionDefinition', 'name', name) + const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List plugin.halo.run/v1alpha1/ExtensionDefinition - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listpluginHaloRunV1alpha1ExtensionDefinition: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensiondefinitions`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List plugin.halo.run/v1alpha1/ExtensionDefinition + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listpluginHaloRunV1alpha1ExtensionDefinition: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensiondefinitions`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update plugin.halo.run/v1alpha1/ExtensionDefinition - * @param {string} name Name of extensiondefinition - * @param {ExtensionDefinition} [extensionDefinition] Updated extensiondefinition - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatepluginHaloRunV1alpha1ExtensionDefinition: async ( - name: string, - extensionDefinition?: ExtensionDefinition, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "updatepluginHaloRunV1alpha1ExtensionDefinition", - "name", - name - ); - const localVarPath = - `/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update plugin.halo.run/v1alpha1/ExtensionDefinition + * @param {string} name Name of extensiondefinition + * @param {ExtensionDefinition} [extensionDefinition] Updated extensiondefinition + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatepluginHaloRunV1alpha1ExtensionDefinition: async (name: string, extensionDefinition?: ExtensionDefinition, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatepluginHaloRunV1alpha1ExtensionDefinition', 'name', name) + const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - extensionDefinition, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(extensionDefinition, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * PluginHaloRunV1alpha1ExtensionDefinitionApi - functional programming interface * @export */ -export const PluginHaloRunV1alpha1ExtensionDefinitionApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - PluginHaloRunV1alpha1ExtensionDefinitionApiAxiosParamCreator(configuration); - return { - /** - * Create plugin.halo.run/v1alpha1/ExtensionDefinition - * @param {ExtensionDefinition} [extensionDefinition] Fresh extensiondefinition - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createpluginHaloRunV1alpha1ExtensionDefinition( - extensionDefinition?: ExtensionDefinition, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createpluginHaloRunV1alpha1ExtensionDefinition( - extensionDefinition, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete plugin.halo.run/v1alpha1/ExtensionDefinition - * @param {string} name Name of extensiondefinition - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletepluginHaloRunV1alpha1ExtensionDefinition( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletepluginHaloRunV1alpha1ExtensionDefinition( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get plugin.halo.run/v1alpha1/ExtensionDefinition - * @param {string} name Name of extensiondefinition - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getpluginHaloRunV1alpha1ExtensionDefinition( - name: string, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getpluginHaloRunV1alpha1ExtensionDefinition( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List plugin.halo.run/v1alpha1/ExtensionDefinition - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listpluginHaloRunV1alpha1ExtensionDefinition( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listpluginHaloRunV1alpha1ExtensionDefinition( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update plugin.halo.run/v1alpha1/ExtensionDefinition - * @param {string} name Name of extensiondefinition - * @param {ExtensionDefinition} [extensionDefinition] Updated extensiondefinition - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatepluginHaloRunV1alpha1ExtensionDefinition( - name: string, - extensionDefinition?: ExtensionDefinition, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatepluginHaloRunV1alpha1ExtensionDefinition( - name, - extensionDefinition, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const PluginHaloRunV1alpha1ExtensionDefinitionApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = PluginHaloRunV1alpha1ExtensionDefinitionApiAxiosParamCreator(configuration) + return { + /** + * Create plugin.halo.run/v1alpha1/ExtensionDefinition + * @param {ExtensionDefinition} [extensionDefinition] Fresh extensiondefinition + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createpluginHaloRunV1alpha1ExtensionDefinition(extensionDefinition?: ExtensionDefinition, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createpluginHaloRunV1alpha1ExtensionDefinition(extensionDefinition, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1ExtensionDefinitionApi.createpluginHaloRunV1alpha1ExtensionDefinition']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete plugin.halo.run/v1alpha1/ExtensionDefinition + * @param {string} name Name of extensiondefinition + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletepluginHaloRunV1alpha1ExtensionDefinition(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletepluginHaloRunV1alpha1ExtensionDefinition(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1ExtensionDefinitionApi.deletepluginHaloRunV1alpha1ExtensionDefinition']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get plugin.halo.run/v1alpha1/ExtensionDefinition + * @param {string} name Name of extensiondefinition + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getpluginHaloRunV1alpha1ExtensionDefinition(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getpluginHaloRunV1alpha1ExtensionDefinition(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1ExtensionDefinitionApi.getpluginHaloRunV1alpha1ExtensionDefinition']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List plugin.halo.run/v1alpha1/ExtensionDefinition + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listpluginHaloRunV1alpha1ExtensionDefinition(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listpluginHaloRunV1alpha1ExtensionDefinition(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1ExtensionDefinitionApi.listpluginHaloRunV1alpha1ExtensionDefinition']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update plugin.halo.run/v1alpha1/ExtensionDefinition + * @param {string} name Name of extensiondefinition + * @param {ExtensionDefinition} [extensionDefinition] Updated extensiondefinition + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatepluginHaloRunV1alpha1ExtensionDefinition(name: string, extensionDefinition?: ExtensionDefinition, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatepluginHaloRunV1alpha1ExtensionDefinition(name, extensionDefinition, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1ExtensionDefinitionApi.updatepluginHaloRunV1alpha1ExtensionDefinition']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * PluginHaloRunV1alpha1ExtensionDefinitionApi - factory interface * @export */ -export const PluginHaloRunV1alpha1ExtensionDefinitionApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = - PluginHaloRunV1alpha1ExtensionDefinitionApiFp(configuration); - return { - /** - * Create plugin.halo.run/v1alpha1/ExtensionDefinition - * @param {PluginHaloRunV1alpha1ExtensionDefinitionApiCreatepluginHaloRunV1alpha1ExtensionDefinitionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createpluginHaloRunV1alpha1ExtensionDefinition( - requestParameters: PluginHaloRunV1alpha1ExtensionDefinitionApiCreatepluginHaloRunV1alpha1ExtensionDefinitionRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createpluginHaloRunV1alpha1ExtensionDefinition( - requestParameters.extensionDefinition, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Delete plugin.halo.run/v1alpha1/ExtensionDefinition - * @param {PluginHaloRunV1alpha1ExtensionDefinitionApiDeletepluginHaloRunV1alpha1ExtensionDefinitionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletepluginHaloRunV1alpha1ExtensionDefinition( - requestParameters: PluginHaloRunV1alpha1ExtensionDefinitionApiDeletepluginHaloRunV1alpha1ExtensionDefinitionRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletepluginHaloRunV1alpha1ExtensionDefinition( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Get plugin.halo.run/v1alpha1/ExtensionDefinition - * @param {PluginHaloRunV1alpha1ExtensionDefinitionApiGetpluginHaloRunV1alpha1ExtensionDefinitionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getpluginHaloRunV1alpha1ExtensionDefinition( - requestParameters: PluginHaloRunV1alpha1ExtensionDefinitionApiGetpluginHaloRunV1alpha1ExtensionDefinitionRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getpluginHaloRunV1alpha1ExtensionDefinition( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * List plugin.halo.run/v1alpha1/ExtensionDefinition - * @param {PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinitionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listpluginHaloRunV1alpha1ExtensionDefinition( - requestParameters: PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinitionRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listpluginHaloRunV1alpha1ExtensionDefinition( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update plugin.halo.run/v1alpha1/ExtensionDefinition - * @param {PluginHaloRunV1alpha1ExtensionDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionDefinitionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatepluginHaloRunV1alpha1ExtensionDefinition( - requestParameters: PluginHaloRunV1alpha1ExtensionDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionDefinitionRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatepluginHaloRunV1alpha1ExtensionDefinition( - requestParameters.name, - requestParameters.extensionDefinition, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const PluginHaloRunV1alpha1ExtensionDefinitionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = PluginHaloRunV1alpha1ExtensionDefinitionApiFp(configuration) + return { + /** + * Create plugin.halo.run/v1alpha1/ExtensionDefinition + * @param {PluginHaloRunV1alpha1ExtensionDefinitionApiCreatepluginHaloRunV1alpha1ExtensionDefinitionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createpluginHaloRunV1alpha1ExtensionDefinition(requestParameters: PluginHaloRunV1alpha1ExtensionDefinitionApiCreatepluginHaloRunV1alpha1ExtensionDefinitionRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createpluginHaloRunV1alpha1ExtensionDefinition(requestParameters.extensionDefinition, options).then((request) => request(axios, basePath)); + }, + /** + * Delete plugin.halo.run/v1alpha1/ExtensionDefinition + * @param {PluginHaloRunV1alpha1ExtensionDefinitionApiDeletepluginHaloRunV1alpha1ExtensionDefinitionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletepluginHaloRunV1alpha1ExtensionDefinition(requestParameters: PluginHaloRunV1alpha1ExtensionDefinitionApiDeletepluginHaloRunV1alpha1ExtensionDefinitionRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletepluginHaloRunV1alpha1ExtensionDefinition(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get plugin.halo.run/v1alpha1/ExtensionDefinition + * @param {PluginHaloRunV1alpha1ExtensionDefinitionApiGetpluginHaloRunV1alpha1ExtensionDefinitionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getpluginHaloRunV1alpha1ExtensionDefinition(requestParameters: PluginHaloRunV1alpha1ExtensionDefinitionApiGetpluginHaloRunV1alpha1ExtensionDefinitionRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getpluginHaloRunV1alpha1ExtensionDefinition(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List plugin.halo.run/v1alpha1/ExtensionDefinition + * @param {PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinitionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listpluginHaloRunV1alpha1ExtensionDefinition(requestParameters: PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinitionRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listpluginHaloRunV1alpha1ExtensionDefinition(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update plugin.halo.run/v1alpha1/ExtensionDefinition + * @param {PluginHaloRunV1alpha1ExtensionDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionDefinitionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatepluginHaloRunV1alpha1ExtensionDefinition(requestParameters: PluginHaloRunV1alpha1ExtensionDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionDefinitionRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatepluginHaloRunV1alpha1ExtensionDefinition(requestParameters.name, requestParameters.extensionDefinition, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -636,12 +400,12 @@ export const PluginHaloRunV1alpha1ExtensionDefinitionApiFactory = function ( * @interface PluginHaloRunV1alpha1ExtensionDefinitionApiCreatepluginHaloRunV1alpha1ExtensionDefinitionRequest */ export interface PluginHaloRunV1alpha1ExtensionDefinitionApiCreatepluginHaloRunV1alpha1ExtensionDefinitionRequest { - /** - * Fresh extensiondefinition - * @type {ExtensionDefinition} - * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiCreatepluginHaloRunV1alpha1ExtensionDefinition - */ - readonly extensionDefinition?: ExtensionDefinition; + /** + * Fresh extensiondefinition + * @type {ExtensionDefinition} + * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiCreatepluginHaloRunV1alpha1ExtensionDefinition + */ + readonly extensionDefinition?: ExtensionDefinition } /** @@ -650,12 +414,12 @@ export interface PluginHaloRunV1alpha1ExtensionDefinitionApiCreatepluginHaloRunV * @interface PluginHaloRunV1alpha1ExtensionDefinitionApiDeletepluginHaloRunV1alpha1ExtensionDefinitionRequest */ export interface PluginHaloRunV1alpha1ExtensionDefinitionApiDeletepluginHaloRunV1alpha1ExtensionDefinitionRequest { - /** - * Name of extensiondefinition - * @type {string} - * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiDeletepluginHaloRunV1alpha1ExtensionDefinition - */ - readonly name: string; + /** + * Name of extensiondefinition + * @type {string} + * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiDeletepluginHaloRunV1alpha1ExtensionDefinition + */ + readonly name: string } /** @@ -664,12 +428,12 @@ export interface PluginHaloRunV1alpha1ExtensionDefinitionApiDeletepluginHaloRunV * @interface PluginHaloRunV1alpha1ExtensionDefinitionApiGetpluginHaloRunV1alpha1ExtensionDefinitionRequest */ export interface PluginHaloRunV1alpha1ExtensionDefinitionApiGetpluginHaloRunV1alpha1ExtensionDefinitionRequest { - /** - * Name of extensiondefinition - * @type {string} - * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiGetpluginHaloRunV1alpha1ExtensionDefinition - */ - readonly name: string; + /** + * Name of extensiondefinition + * @type {string} + * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiGetpluginHaloRunV1alpha1ExtensionDefinition + */ + readonly name: string } /** @@ -678,40 +442,40 @@ export interface PluginHaloRunV1alpha1ExtensionDefinitionApiGetpluginHaloRunV1al * @interface PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinitionRequest */ export interface PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinitionRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinition - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinition + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinition - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinition + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinition - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinition + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinition - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinition + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinition - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinition + */ + readonly sort?: Array } /** @@ -720,19 +484,19 @@ export interface PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1a * @interface PluginHaloRunV1alpha1ExtensionDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionDefinitionRequest */ export interface PluginHaloRunV1alpha1ExtensionDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionDefinitionRequest { - /** - * Name of extensiondefinition - * @type {string} - * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionDefinition - */ - readonly name: string; + /** + * Name of extensiondefinition + * @type {string} + * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionDefinition + */ + readonly name: string - /** - * Updated extensiondefinition - * @type {ExtensionDefinition} - * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionDefinition - */ - readonly extensionDefinition?: ExtensionDefinition; + /** + * Updated extensiondefinition + * @type {ExtensionDefinition} + * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionDefinition + */ + readonly extensionDefinition?: ExtensionDefinition } /** @@ -742,103 +506,59 @@ export interface PluginHaloRunV1alpha1ExtensionDefinitionApiUpdatepluginHaloRunV * @extends {BaseAPI} */ export class PluginHaloRunV1alpha1ExtensionDefinitionApi extends BaseAPI { - /** - * Create plugin.halo.run/v1alpha1/ExtensionDefinition - * @param {PluginHaloRunV1alpha1ExtensionDefinitionApiCreatepluginHaloRunV1alpha1ExtensionDefinitionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApi - */ - public createpluginHaloRunV1alpha1ExtensionDefinition( - requestParameters: PluginHaloRunV1alpha1ExtensionDefinitionApiCreatepluginHaloRunV1alpha1ExtensionDefinitionRequest = {}, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1ExtensionDefinitionApiFp(this.configuration) - .createpluginHaloRunV1alpha1ExtensionDefinition( - requestParameters.extensionDefinition, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create plugin.halo.run/v1alpha1/ExtensionDefinition + * @param {PluginHaloRunV1alpha1ExtensionDefinitionApiCreatepluginHaloRunV1alpha1ExtensionDefinitionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApi + */ + public createpluginHaloRunV1alpha1ExtensionDefinition(requestParameters: PluginHaloRunV1alpha1ExtensionDefinitionApiCreatepluginHaloRunV1alpha1ExtensionDefinitionRequest = {}, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1ExtensionDefinitionApiFp(this.configuration).createpluginHaloRunV1alpha1ExtensionDefinition(requestParameters.extensionDefinition, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete plugin.halo.run/v1alpha1/ExtensionDefinition - * @param {PluginHaloRunV1alpha1ExtensionDefinitionApiDeletepluginHaloRunV1alpha1ExtensionDefinitionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApi - */ - public deletepluginHaloRunV1alpha1ExtensionDefinition( - requestParameters: PluginHaloRunV1alpha1ExtensionDefinitionApiDeletepluginHaloRunV1alpha1ExtensionDefinitionRequest, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1ExtensionDefinitionApiFp(this.configuration) - .deletepluginHaloRunV1alpha1ExtensionDefinition( - requestParameters.name, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete plugin.halo.run/v1alpha1/ExtensionDefinition + * @param {PluginHaloRunV1alpha1ExtensionDefinitionApiDeletepluginHaloRunV1alpha1ExtensionDefinitionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApi + */ + public deletepluginHaloRunV1alpha1ExtensionDefinition(requestParameters: PluginHaloRunV1alpha1ExtensionDefinitionApiDeletepluginHaloRunV1alpha1ExtensionDefinitionRequest, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1ExtensionDefinitionApiFp(this.configuration).deletepluginHaloRunV1alpha1ExtensionDefinition(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get plugin.halo.run/v1alpha1/ExtensionDefinition - * @param {PluginHaloRunV1alpha1ExtensionDefinitionApiGetpluginHaloRunV1alpha1ExtensionDefinitionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApi - */ - public getpluginHaloRunV1alpha1ExtensionDefinition( - requestParameters: PluginHaloRunV1alpha1ExtensionDefinitionApiGetpluginHaloRunV1alpha1ExtensionDefinitionRequest, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1ExtensionDefinitionApiFp(this.configuration) - .getpluginHaloRunV1alpha1ExtensionDefinition( - requestParameters.name, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get plugin.halo.run/v1alpha1/ExtensionDefinition + * @param {PluginHaloRunV1alpha1ExtensionDefinitionApiGetpluginHaloRunV1alpha1ExtensionDefinitionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApi + */ + public getpluginHaloRunV1alpha1ExtensionDefinition(requestParameters: PluginHaloRunV1alpha1ExtensionDefinitionApiGetpluginHaloRunV1alpha1ExtensionDefinitionRequest, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1ExtensionDefinitionApiFp(this.configuration).getpluginHaloRunV1alpha1ExtensionDefinition(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List plugin.halo.run/v1alpha1/ExtensionDefinition - * @param {PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinitionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApi - */ - public listpluginHaloRunV1alpha1ExtensionDefinition( - requestParameters: PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinitionRequest = {}, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1ExtensionDefinitionApiFp(this.configuration) - .listpluginHaloRunV1alpha1ExtensionDefinition( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List plugin.halo.run/v1alpha1/ExtensionDefinition + * @param {PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinitionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApi + */ + public listpluginHaloRunV1alpha1ExtensionDefinition(requestParameters: PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinitionRequest = {}, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1ExtensionDefinitionApiFp(this.configuration).listpluginHaloRunV1alpha1ExtensionDefinition(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update plugin.halo.run/v1alpha1/ExtensionDefinition - * @param {PluginHaloRunV1alpha1ExtensionDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionDefinitionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApi - */ - public updatepluginHaloRunV1alpha1ExtensionDefinition( - requestParameters: PluginHaloRunV1alpha1ExtensionDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionDefinitionRequest, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1ExtensionDefinitionApiFp(this.configuration) - .updatepluginHaloRunV1alpha1ExtensionDefinition( - requestParameters.name, - requestParameters.extensionDefinition, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update plugin.halo.run/v1alpha1/ExtensionDefinition + * @param {PluginHaloRunV1alpha1ExtensionDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionDefinitionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApi + */ + public updatepluginHaloRunV1alpha1ExtensionDefinition(requestParameters: PluginHaloRunV1alpha1ExtensionDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionDefinitionRequest, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1ExtensionDefinitionApiFp(this.configuration).updatepluginHaloRunV1alpha1ExtensionDefinition(requestParameters.name, requestParameters.extensionDefinition, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/plugin-halo-run-v1alpha1-extension-point-definition-api.ts b/ui/packages/api-client/src/api/plugin-halo-run-v1alpha1-extension-point-definition-api.ts index fb9cd5aaf..bf807355b 100644 --- a/ui/packages/api-client/src/api/plugin-halo-run-v1alpha1-extension-point-definition-api.ts +++ b/ui/packages/api-client/src/api/plugin-halo-run-v1alpha1-extension-point-definition-api.ts @@ -5,633 +5,394 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { ExtensionPointDefinition } from "../models"; +import { ExtensionPointDefinition } from '../models'; // @ts-ignore -import { ExtensionPointDefinitionList } from "../models"; +import { ExtensionPointDefinitionList } from '../models'; /** * PluginHaloRunV1alpha1ExtensionPointDefinitionApi - axios parameter creator * @export */ -export const PluginHaloRunV1alpha1ExtensionPointDefinitionApiAxiosParamCreator = - function (configuration?: Configuration) { +export const PluginHaloRunV1alpha1ExtensionPointDefinitionApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Create plugin.halo.run/v1alpha1/ExtensionPointDefinition - * @param {ExtensionPointDefinition} [extensionPointDefinition] Fresh extensionpointdefinition - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createpluginHaloRunV1alpha1ExtensionPointDefinition: async ( - extensionPointDefinition?: ExtensionPointDefinition, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * Create plugin.halo.run/v1alpha1/ExtensionPointDefinition + * @param {ExtensionPointDefinition} [extensionPointDefinition] Fresh extensionpointdefinition + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createpluginHaloRunV1alpha1ExtensionPointDefinition: async (extensionPointDefinition?: ExtensionPointDefinition, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - extensionPointDefinition, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete plugin.halo.run/v1alpha1/ExtensionPointDefinition - * @param {string} name Name of extensionpointdefinition - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletepluginHaloRunV1alpha1ExtensionPointDefinition: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "deletepluginHaloRunV1alpha1ExtensionPointDefinition", - "name", - name - ); - const localVarPath = - `/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(extensionPointDefinition, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete plugin.halo.run/v1alpha1/ExtensionPointDefinition + * @param {string} name Name of extensionpointdefinition + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletepluginHaloRunV1alpha1ExtensionPointDefinition: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletepluginHaloRunV1alpha1ExtensionPointDefinition', 'name', name) + const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get plugin.halo.run/v1alpha1/ExtensionPointDefinition - * @param {string} name Name of extensionpointdefinition - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getpluginHaloRunV1alpha1ExtensionPointDefinition: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "getpluginHaloRunV1alpha1ExtensionPointDefinition", - "name", - name - ); - const localVarPath = - `/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get plugin.halo.run/v1alpha1/ExtensionPointDefinition + * @param {string} name Name of extensionpointdefinition + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getpluginHaloRunV1alpha1ExtensionPointDefinition: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getpluginHaloRunV1alpha1ExtensionPointDefinition', 'name', name) + const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List plugin.halo.run/v1alpha1/ExtensionPointDefinition - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listpluginHaloRunV1alpha1ExtensionPointDefinition: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List plugin.halo.run/v1alpha1/ExtensionPointDefinition + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listpluginHaloRunV1alpha1ExtensionPointDefinition: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update plugin.halo.run/v1alpha1/ExtensionPointDefinition - * @param {string} name Name of extensionpointdefinition - * @param {ExtensionPointDefinition} [extensionPointDefinition] Updated extensionpointdefinition - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatepluginHaloRunV1alpha1ExtensionPointDefinition: async ( - name: string, - extensionPointDefinition?: ExtensionPointDefinition, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "updatepluginHaloRunV1alpha1ExtensionPointDefinition", - "name", - name - ); - const localVarPath = - `/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update plugin.halo.run/v1alpha1/ExtensionPointDefinition + * @param {string} name Name of extensionpointdefinition + * @param {ExtensionPointDefinition} [extensionPointDefinition] Updated extensionpointdefinition + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatepluginHaloRunV1alpha1ExtensionPointDefinition: async (name: string, extensionPointDefinition?: ExtensionPointDefinition, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatepluginHaloRunV1alpha1ExtensionPointDefinition', 'name', name) + const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - extensionPointDefinition, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(extensionPointDefinition, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * PluginHaloRunV1alpha1ExtensionPointDefinitionApi - functional programming interface * @export */ -export const PluginHaloRunV1alpha1ExtensionPointDefinitionApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - PluginHaloRunV1alpha1ExtensionPointDefinitionApiAxiosParamCreator( - configuration - ); - return { - /** - * Create plugin.halo.run/v1alpha1/ExtensionPointDefinition - * @param {ExtensionPointDefinition} [extensionPointDefinition] Fresh extensionpointdefinition - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createpluginHaloRunV1alpha1ExtensionPointDefinition( - extensionPointDefinition?: ExtensionPointDefinition, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createpluginHaloRunV1alpha1ExtensionPointDefinition( - extensionPointDefinition, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete plugin.halo.run/v1alpha1/ExtensionPointDefinition - * @param {string} name Name of extensionpointdefinition - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletepluginHaloRunV1alpha1ExtensionPointDefinition( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletepluginHaloRunV1alpha1ExtensionPointDefinition( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get plugin.halo.run/v1alpha1/ExtensionPointDefinition - * @param {string} name Name of extensionpointdefinition - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getpluginHaloRunV1alpha1ExtensionPointDefinition( - name: string, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getpluginHaloRunV1alpha1ExtensionPointDefinition( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List plugin.halo.run/v1alpha1/ExtensionPointDefinition - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listpluginHaloRunV1alpha1ExtensionPointDefinition( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listpluginHaloRunV1alpha1ExtensionPointDefinition( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update plugin.halo.run/v1alpha1/ExtensionPointDefinition - * @param {string} name Name of extensionpointdefinition - * @param {ExtensionPointDefinition} [extensionPointDefinition] Updated extensionpointdefinition - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatepluginHaloRunV1alpha1ExtensionPointDefinition( - name: string, - extensionPointDefinition?: ExtensionPointDefinition, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatepluginHaloRunV1alpha1ExtensionPointDefinition( - name, - extensionPointDefinition, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const PluginHaloRunV1alpha1ExtensionPointDefinitionApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = PluginHaloRunV1alpha1ExtensionPointDefinitionApiAxiosParamCreator(configuration) + return { + /** + * Create plugin.halo.run/v1alpha1/ExtensionPointDefinition + * @param {ExtensionPointDefinition} [extensionPointDefinition] Fresh extensionpointdefinition + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createpluginHaloRunV1alpha1ExtensionPointDefinition(extensionPointDefinition?: ExtensionPointDefinition, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createpluginHaloRunV1alpha1ExtensionPointDefinition(extensionPointDefinition, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1ExtensionPointDefinitionApi.createpluginHaloRunV1alpha1ExtensionPointDefinition']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete plugin.halo.run/v1alpha1/ExtensionPointDefinition + * @param {string} name Name of extensionpointdefinition + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletepluginHaloRunV1alpha1ExtensionPointDefinition(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletepluginHaloRunV1alpha1ExtensionPointDefinition(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1ExtensionPointDefinitionApi.deletepluginHaloRunV1alpha1ExtensionPointDefinition']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get plugin.halo.run/v1alpha1/ExtensionPointDefinition + * @param {string} name Name of extensionpointdefinition + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getpluginHaloRunV1alpha1ExtensionPointDefinition(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getpluginHaloRunV1alpha1ExtensionPointDefinition(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1ExtensionPointDefinitionApi.getpluginHaloRunV1alpha1ExtensionPointDefinition']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List plugin.halo.run/v1alpha1/ExtensionPointDefinition + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listpluginHaloRunV1alpha1ExtensionPointDefinition(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listpluginHaloRunV1alpha1ExtensionPointDefinition(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1ExtensionPointDefinitionApi.listpluginHaloRunV1alpha1ExtensionPointDefinition']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update plugin.halo.run/v1alpha1/ExtensionPointDefinition + * @param {string} name Name of extensionpointdefinition + * @param {ExtensionPointDefinition} [extensionPointDefinition] Updated extensionpointdefinition + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatepluginHaloRunV1alpha1ExtensionPointDefinition(name: string, extensionPointDefinition?: ExtensionPointDefinition, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatepluginHaloRunV1alpha1ExtensionPointDefinition(name, extensionPointDefinition, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1ExtensionPointDefinitionApi.updatepluginHaloRunV1alpha1ExtensionPointDefinition']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * PluginHaloRunV1alpha1ExtensionPointDefinitionApi - factory interface * @export */ -export const PluginHaloRunV1alpha1ExtensionPointDefinitionApiFactory = - function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance - ) { - const localVarFp = - PluginHaloRunV1alpha1ExtensionPointDefinitionApiFp(configuration); +export const PluginHaloRunV1alpha1ExtensionPointDefinitionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = PluginHaloRunV1alpha1ExtensionPointDefinitionApiFp(configuration) return { - /** - * Create plugin.halo.run/v1alpha1/ExtensionPointDefinition - * @param {PluginHaloRunV1alpha1ExtensionPointDefinitionApiCreatepluginHaloRunV1alpha1ExtensionPointDefinitionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createpluginHaloRunV1alpha1ExtensionPointDefinition( - requestParameters: PluginHaloRunV1alpha1ExtensionPointDefinitionApiCreatepluginHaloRunV1alpha1ExtensionPointDefinitionRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createpluginHaloRunV1alpha1ExtensionPointDefinition( - requestParameters.extensionPointDefinition, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Delete plugin.halo.run/v1alpha1/ExtensionPointDefinition - * @param {PluginHaloRunV1alpha1ExtensionPointDefinitionApiDeletepluginHaloRunV1alpha1ExtensionPointDefinitionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletepluginHaloRunV1alpha1ExtensionPointDefinition( - requestParameters: PluginHaloRunV1alpha1ExtensionPointDefinitionApiDeletepluginHaloRunV1alpha1ExtensionPointDefinitionRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletepluginHaloRunV1alpha1ExtensionPointDefinition( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Get plugin.halo.run/v1alpha1/ExtensionPointDefinition - * @param {PluginHaloRunV1alpha1ExtensionPointDefinitionApiGetpluginHaloRunV1alpha1ExtensionPointDefinitionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getpluginHaloRunV1alpha1ExtensionPointDefinition( - requestParameters: PluginHaloRunV1alpha1ExtensionPointDefinitionApiGetpluginHaloRunV1alpha1ExtensionPointDefinitionRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getpluginHaloRunV1alpha1ExtensionPointDefinition( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * List plugin.halo.run/v1alpha1/ExtensionPointDefinition - * @param {PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinitionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listpluginHaloRunV1alpha1ExtensionPointDefinition( - requestParameters: PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinitionRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listpluginHaloRunV1alpha1ExtensionPointDefinition( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update plugin.halo.run/v1alpha1/ExtensionPointDefinition - * @param {PluginHaloRunV1alpha1ExtensionPointDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionPointDefinitionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatepluginHaloRunV1alpha1ExtensionPointDefinition( - requestParameters: PluginHaloRunV1alpha1ExtensionPointDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionPointDefinitionRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatepluginHaloRunV1alpha1ExtensionPointDefinition( - requestParameters.name, - requestParameters.extensionPointDefinition, - options - ) - .then((request) => request(axios, basePath)); - }, + /** + * Create plugin.halo.run/v1alpha1/ExtensionPointDefinition + * @param {PluginHaloRunV1alpha1ExtensionPointDefinitionApiCreatepluginHaloRunV1alpha1ExtensionPointDefinitionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createpluginHaloRunV1alpha1ExtensionPointDefinition(requestParameters: PluginHaloRunV1alpha1ExtensionPointDefinitionApiCreatepluginHaloRunV1alpha1ExtensionPointDefinitionRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createpluginHaloRunV1alpha1ExtensionPointDefinition(requestParameters.extensionPointDefinition, options).then((request) => request(axios, basePath)); + }, + /** + * Delete plugin.halo.run/v1alpha1/ExtensionPointDefinition + * @param {PluginHaloRunV1alpha1ExtensionPointDefinitionApiDeletepluginHaloRunV1alpha1ExtensionPointDefinitionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletepluginHaloRunV1alpha1ExtensionPointDefinition(requestParameters: PluginHaloRunV1alpha1ExtensionPointDefinitionApiDeletepluginHaloRunV1alpha1ExtensionPointDefinitionRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletepluginHaloRunV1alpha1ExtensionPointDefinition(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get plugin.halo.run/v1alpha1/ExtensionPointDefinition + * @param {PluginHaloRunV1alpha1ExtensionPointDefinitionApiGetpluginHaloRunV1alpha1ExtensionPointDefinitionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getpluginHaloRunV1alpha1ExtensionPointDefinition(requestParameters: PluginHaloRunV1alpha1ExtensionPointDefinitionApiGetpluginHaloRunV1alpha1ExtensionPointDefinitionRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getpluginHaloRunV1alpha1ExtensionPointDefinition(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List plugin.halo.run/v1alpha1/ExtensionPointDefinition + * @param {PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinitionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listpluginHaloRunV1alpha1ExtensionPointDefinition(requestParameters: PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinitionRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listpluginHaloRunV1alpha1ExtensionPointDefinition(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update plugin.halo.run/v1alpha1/ExtensionPointDefinition + * @param {PluginHaloRunV1alpha1ExtensionPointDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionPointDefinitionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatepluginHaloRunV1alpha1ExtensionPointDefinition(requestParameters: PluginHaloRunV1alpha1ExtensionPointDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionPointDefinitionRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatepluginHaloRunV1alpha1ExtensionPointDefinition(requestParameters.name, requestParameters.extensionPointDefinition, options).then((request) => request(axios, basePath)); + }, }; - }; +}; /** * Request parameters for createpluginHaloRunV1alpha1ExtensionPointDefinition operation in PluginHaloRunV1alpha1ExtensionPointDefinitionApi. @@ -639,12 +400,12 @@ export const PluginHaloRunV1alpha1ExtensionPointDefinitionApiFactory = * @interface PluginHaloRunV1alpha1ExtensionPointDefinitionApiCreatepluginHaloRunV1alpha1ExtensionPointDefinitionRequest */ export interface PluginHaloRunV1alpha1ExtensionPointDefinitionApiCreatepluginHaloRunV1alpha1ExtensionPointDefinitionRequest { - /** - * Fresh extensionpointdefinition - * @type {ExtensionPointDefinition} - * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiCreatepluginHaloRunV1alpha1ExtensionPointDefinition - */ - readonly extensionPointDefinition?: ExtensionPointDefinition; + /** + * Fresh extensionpointdefinition + * @type {ExtensionPointDefinition} + * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiCreatepluginHaloRunV1alpha1ExtensionPointDefinition + */ + readonly extensionPointDefinition?: ExtensionPointDefinition } /** @@ -653,12 +414,12 @@ export interface PluginHaloRunV1alpha1ExtensionPointDefinitionApiCreatepluginHal * @interface PluginHaloRunV1alpha1ExtensionPointDefinitionApiDeletepluginHaloRunV1alpha1ExtensionPointDefinitionRequest */ export interface PluginHaloRunV1alpha1ExtensionPointDefinitionApiDeletepluginHaloRunV1alpha1ExtensionPointDefinitionRequest { - /** - * Name of extensionpointdefinition - * @type {string} - * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiDeletepluginHaloRunV1alpha1ExtensionPointDefinition - */ - readonly name: string; + /** + * Name of extensionpointdefinition + * @type {string} + * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiDeletepluginHaloRunV1alpha1ExtensionPointDefinition + */ + readonly name: string } /** @@ -667,12 +428,12 @@ export interface PluginHaloRunV1alpha1ExtensionPointDefinitionApiDeletepluginHal * @interface PluginHaloRunV1alpha1ExtensionPointDefinitionApiGetpluginHaloRunV1alpha1ExtensionPointDefinitionRequest */ export interface PluginHaloRunV1alpha1ExtensionPointDefinitionApiGetpluginHaloRunV1alpha1ExtensionPointDefinitionRequest { - /** - * Name of extensionpointdefinition - * @type {string} - * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiGetpluginHaloRunV1alpha1ExtensionPointDefinition - */ - readonly name: string; + /** + * Name of extensionpointdefinition + * @type {string} + * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiGetpluginHaloRunV1alpha1ExtensionPointDefinition + */ + readonly name: string } /** @@ -681,40 +442,40 @@ export interface PluginHaloRunV1alpha1ExtensionPointDefinitionApiGetpluginHaloRu * @interface PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinitionRequest */ export interface PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinitionRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinition - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinition + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinition - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinition + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinition - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinition + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinition - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinition + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinition - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinition + */ + readonly sort?: Array } /** @@ -723,19 +484,19 @@ export interface PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloR * @interface PluginHaloRunV1alpha1ExtensionPointDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionPointDefinitionRequest */ export interface PluginHaloRunV1alpha1ExtensionPointDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionPointDefinitionRequest { - /** - * Name of extensionpointdefinition - * @type {string} - * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionPointDefinition - */ - readonly name: string; + /** + * Name of extensionpointdefinition + * @type {string} + * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionPointDefinition + */ + readonly name: string - /** - * Updated extensionpointdefinition - * @type {ExtensionPointDefinition} - * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionPointDefinition - */ - readonly extensionPointDefinition?: ExtensionPointDefinition; + /** + * Updated extensionpointdefinition + * @type {ExtensionPointDefinition} + * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionPointDefinition + */ + readonly extensionPointDefinition?: ExtensionPointDefinition } /** @@ -745,113 +506,59 @@ export interface PluginHaloRunV1alpha1ExtensionPointDefinitionApiUpdatepluginHal * @extends {BaseAPI} */ export class PluginHaloRunV1alpha1ExtensionPointDefinitionApi extends BaseAPI { - /** - * Create plugin.halo.run/v1alpha1/ExtensionPointDefinition - * @param {PluginHaloRunV1alpha1ExtensionPointDefinitionApiCreatepluginHaloRunV1alpha1ExtensionPointDefinitionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApi - */ - public createpluginHaloRunV1alpha1ExtensionPointDefinition( - requestParameters: PluginHaloRunV1alpha1ExtensionPointDefinitionApiCreatepluginHaloRunV1alpha1ExtensionPointDefinitionRequest = {}, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1ExtensionPointDefinitionApiFp( - this.configuration - ) - .createpluginHaloRunV1alpha1ExtensionPointDefinition( - requestParameters.extensionPointDefinition, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create plugin.halo.run/v1alpha1/ExtensionPointDefinition + * @param {PluginHaloRunV1alpha1ExtensionPointDefinitionApiCreatepluginHaloRunV1alpha1ExtensionPointDefinitionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApi + */ + public createpluginHaloRunV1alpha1ExtensionPointDefinition(requestParameters: PluginHaloRunV1alpha1ExtensionPointDefinitionApiCreatepluginHaloRunV1alpha1ExtensionPointDefinitionRequest = {}, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1ExtensionPointDefinitionApiFp(this.configuration).createpluginHaloRunV1alpha1ExtensionPointDefinition(requestParameters.extensionPointDefinition, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete plugin.halo.run/v1alpha1/ExtensionPointDefinition - * @param {PluginHaloRunV1alpha1ExtensionPointDefinitionApiDeletepluginHaloRunV1alpha1ExtensionPointDefinitionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApi - */ - public deletepluginHaloRunV1alpha1ExtensionPointDefinition( - requestParameters: PluginHaloRunV1alpha1ExtensionPointDefinitionApiDeletepluginHaloRunV1alpha1ExtensionPointDefinitionRequest, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1ExtensionPointDefinitionApiFp( - this.configuration - ) - .deletepluginHaloRunV1alpha1ExtensionPointDefinition( - requestParameters.name, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete plugin.halo.run/v1alpha1/ExtensionPointDefinition + * @param {PluginHaloRunV1alpha1ExtensionPointDefinitionApiDeletepluginHaloRunV1alpha1ExtensionPointDefinitionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApi + */ + public deletepluginHaloRunV1alpha1ExtensionPointDefinition(requestParameters: PluginHaloRunV1alpha1ExtensionPointDefinitionApiDeletepluginHaloRunV1alpha1ExtensionPointDefinitionRequest, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1ExtensionPointDefinitionApiFp(this.configuration).deletepluginHaloRunV1alpha1ExtensionPointDefinition(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get plugin.halo.run/v1alpha1/ExtensionPointDefinition - * @param {PluginHaloRunV1alpha1ExtensionPointDefinitionApiGetpluginHaloRunV1alpha1ExtensionPointDefinitionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApi - */ - public getpluginHaloRunV1alpha1ExtensionPointDefinition( - requestParameters: PluginHaloRunV1alpha1ExtensionPointDefinitionApiGetpluginHaloRunV1alpha1ExtensionPointDefinitionRequest, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1ExtensionPointDefinitionApiFp( - this.configuration - ) - .getpluginHaloRunV1alpha1ExtensionPointDefinition( - requestParameters.name, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get plugin.halo.run/v1alpha1/ExtensionPointDefinition + * @param {PluginHaloRunV1alpha1ExtensionPointDefinitionApiGetpluginHaloRunV1alpha1ExtensionPointDefinitionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApi + */ + public getpluginHaloRunV1alpha1ExtensionPointDefinition(requestParameters: PluginHaloRunV1alpha1ExtensionPointDefinitionApiGetpluginHaloRunV1alpha1ExtensionPointDefinitionRequest, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1ExtensionPointDefinitionApiFp(this.configuration).getpluginHaloRunV1alpha1ExtensionPointDefinition(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List plugin.halo.run/v1alpha1/ExtensionPointDefinition - * @param {PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinitionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApi - */ - public listpluginHaloRunV1alpha1ExtensionPointDefinition( - requestParameters: PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinitionRequest = {}, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1ExtensionPointDefinitionApiFp( - this.configuration - ) - .listpluginHaloRunV1alpha1ExtensionPointDefinition( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List plugin.halo.run/v1alpha1/ExtensionPointDefinition + * @param {PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinitionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApi + */ + public listpluginHaloRunV1alpha1ExtensionPointDefinition(requestParameters: PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinitionRequest = {}, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1ExtensionPointDefinitionApiFp(this.configuration).listpluginHaloRunV1alpha1ExtensionPointDefinition(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update plugin.halo.run/v1alpha1/ExtensionPointDefinition - * @param {PluginHaloRunV1alpha1ExtensionPointDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionPointDefinitionRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApi - */ - public updatepluginHaloRunV1alpha1ExtensionPointDefinition( - requestParameters: PluginHaloRunV1alpha1ExtensionPointDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionPointDefinitionRequest, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1ExtensionPointDefinitionApiFp( - this.configuration - ) - .updatepluginHaloRunV1alpha1ExtensionPointDefinition( - requestParameters.name, - requestParameters.extensionPointDefinition, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update plugin.halo.run/v1alpha1/ExtensionPointDefinition + * @param {PluginHaloRunV1alpha1ExtensionPointDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionPointDefinitionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApi + */ + public updatepluginHaloRunV1alpha1ExtensionPointDefinition(requestParameters: PluginHaloRunV1alpha1ExtensionPointDefinitionApiUpdatepluginHaloRunV1alpha1ExtensionPointDefinitionRequest, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1ExtensionPointDefinitionApiFp(this.configuration).updatepluginHaloRunV1alpha1ExtensionPointDefinition(requestParameters.name, requestParameters.extensionPointDefinition, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/plugin-halo-run-v1alpha1-plugin-api.ts b/ui/packages/api-client/src/api/plugin-halo-run-v1alpha1-plugin-api.ts index 7b077bd54..8b3ee2119 100644 --- a/ui/packages/api-client/src/api/plugin-halo-run-v1alpha1-plugin-api.ts +++ b/ui/packages/api-client/src/api/plugin-halo-run-v1alpha1-plugin-api.ts @@ -5,596 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Plugin } from "../models"; +import { Plugin } from '../models'; // @ts-ignore -import { PluginList } from "../models"; +import { PluginList } from '../models'; /** * PluginHaloRunV1alpha1PluginApi - axios parameter creator * @export */ -export const PluginHaloRunV1alpha1PluginApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create plugin.halo.run/v1alpha1/Plugin - * @param {Plugin} [plugin] Fresh plugin - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createpluginHaloRunV1alpha1Plugin: async ( - plugin?: Plugin, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const PluginHaloRunV1alpha1PluginApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create plugin.halo.run/v1alpha1/Plugin + * @param {Plugin} [plugin] Fresh plugin + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createpluginHaloRunV1alpha1Plugin: async (plugin?: Plugin, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - plugin, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete plugin.halo.run/v1alpha1/Plugin - * @param {string} name Name of plugin - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletepluginHaloRunV1alpha1Plugin: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletepluginHaloRunV1alpha1Plugin", "name", name); - const localVarPath = - `/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(plugin, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete plugin.halo.run/v1alpha1/Plugin + * @param {string} name Name of plugin + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletepluginHaloRunV1alpha1Plugin: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletepluginHaloRunV1alpha1Plugin', 'name', name) + const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get plugin.halo.run/v1alpha1/Plugin - * @param {string} name Name of plugin - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getpluginHaloRunV1alpha1Plugin: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getpluginHaloRunV1alpha1Plugin", "name", name); - const localVarPath = - `/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get plugin.halo.run/v1alpha1/Plugin + * @param {string} name Name of plugin + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getpluginHaloRunV1alpha1Plugin: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getpluginHaloRunV1alpha1Plugin', 'name', name) + const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List plugin.halo.run/v1alpha1/Plugin - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listpluginHaloRunV1alpha1Plugin: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List plugin.halo.run/v1alpha1/Plugin + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listpluginHaloRunV1alpha1Plugin: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update plugin.halo.run/v1alpha1/Plugin - * @param {string} name Name of plugin - * @param {Plugin} [plugin] Updated plugin - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatepluginHaloRunV1alpha1Plugin: async ( - name: string, - plugin?: Plugin, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatepluginHaloRunV1alpha1Plugin", "name", name); - const localVarPath = - `/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update plugin.halo.run/v1alpha1/Plugin + * @param {string} name Name of plugin + * @param {Plugin} [plugin] Updated plugin + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatepluginHaloRunV1alpha1Plugin: async (name: string, plugin?: Plugin, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatepluginHaloRunV1alpha1Plugin', 'name', name) + const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - plugin, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(plugin, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * PluginHaloRunV1alpha1PluginApi - functional programming interface * @export */ -export const PluginHaloRunV1alpha1PluginApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - PluginHaloRunV1alpha1PluginApiAxiosParamCreator(configuration); - return { - /** - * Create plugin.halo.run/v1alpha1/Plugin - * @param {Plugin} [plugin] Fresh plugin - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createpluginHaloRunV1alpha1Plugin( - plugin?: Plugin, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createpluginHaloRunV1alpha1Plugin( - plugin, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete plugin.halo.run/v1alpha1/Plugin - * @param {string} name Name of plugin - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletepluginHaloRunV1alpha1Plugin( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletepluginHaloRunV1alpha1Plugin( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get plugin.halo.run/v1alpha1/Plugin - * @param {string} name Name of plugin - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getpluginHaloRunV1alpha1Plugin( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getpluginHaloRunV1alpha1Plugin( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List plugin.halo.run/v1alpha1/Plugin - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listpluginHaloRunV1alpha1Plugin( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listpluginHaloRunV1alpha1Plugin( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update plugin.halo.run/v1alpha1/Plugin - * @param {string} name Name of plugin - * @param {Plugin} [plugin] Updated plugin - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatepluginHaloRunV1alpha1Plugin( - name: string, - plugin?: Plugin, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatepluginHaloRunV1alpha1Plugin( - name, - plugin, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const PluginHaloRunV1alpha1PluginApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = PluginHaloRunV1alpha1PluginApiAxiosParamCreator(configuration) + return { + /** + * Create plugin.halo.run/v1alpha1/Plugin + * @param {Plugin} [plugin] Fresh plugin + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createpluginHaloRunV1alpha1Plugin(plugin?: Plugin, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createpluginHaloRunV1alpha1Plugin(plugin, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1PluginApi.createpluginHaloRunV1alpha1Plugin']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete plugin.halo.run/v1alpha1/Plugin + * @param {string} name Name of plugin + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletepluginHaloRunV1alpha1Plugin(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletepluginHaloRunV1alpha1Plugin(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1PluginApi.deletepluginHaloRunV1alpha1Plugin']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get plugin.halo.run/v1alpha1/Plugin + * @param {string} name Name of plugin + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getpluginHaloRunV1alpha1Plugin(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getpluginHaloRunV1alpha1Plugin(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1PluginApi.getpluginHaloRunV1alpha1Plugin']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List plugin.halo.run/v1alpha1/Plugin + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listpluginHaloRunV1alpha1Plugin(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listpluginHaloRunV1alpha1Plugin(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1PluginApi.listpluginHaloRunV1alpha1Plugin']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update plugin.halo.run/v1alpha1/Plugin + * @param {string} name Name of plugin + * @param {Plugin} [plugin] Updated plugin + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatepluginHaloRunV1alpha1Plugin(name: string, plugin?: Plugin, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatepluginHaloRunV1alpha1Plugin(name, plugin, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1PluginApi.updatepluginHaloRunV1alpha1Plugin']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * PluginHaloRunV1alpha1PluginApi - factory interface * @export */ -export const PluginHaloRunV1alpha1PluginApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = PluginHaloRunV1alpha1PluginApiFp(configuration); - return { - /** - * Create plugin.halo.run/v1alpha1/Plugin - * @param {PluginHaloRunV1alpha1PluginApiCreatepluginHaloRunV1alpha1PluginRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createpluginHaloRunV1alpha1Plugin( - requestParameters: PluginHaloRunV1alpha1PluginApiCreatepluginHaloRunV1alpha1PluginRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createpluginHaloRunV1alpha1Plugin(requestParameters.plugin, options) - .then((request) => request(axios, basePath)); - }, - /** - * Delete plugin.halo.run/v1alpha1/Plugin - * @param {PluginHaloRunV1alpha1PluginApiDeletepluginHaloRunV1alpha1PluginRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletepluginHaloRunV1alpha1Plugin( - requestParameters: PluginHaloRunV1alpha1PluginApiDeletepluginHaloRunV1alpha1PluginRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletepluginHaloRunV1alpha1Plugin(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get plugin.halo.run/v1alpha1/Plugin - * @param {PluginHaloRunV1alpha1PluginApiGetpluginHaloRunV1alpha1PluginRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getpluginHaloRunV1alpha1Plugin( - requestParameters: PluginHaloRunV1alpha1PluginApiGetpluginHaloRunV1alpha1PluginRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getpluginHaloRunV1alpha1Plugin(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List plugin.halo.run/v1alpha1/Plugin - * @param {PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1PluginRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listpluginHaloRunV1alpha1Plugin( - requestParameters: PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1PluginRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listpluginHaloRunV1alpha1Plugin( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update plugin.halo.run/v1alpha1/Plugin - * @param {PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1PluginRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatepluginHaloRunV1alpha1Plugin( - requestParameters: PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1PluginRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatepluginHaloRunV1alpha1Plugin( - requestParameters.name, - requestParameters.plugin, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const PluginHaloRunV1alpha1PluginApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = PluginHaloRunV1alpha1PluginApiFp(configuration) + return { + /** + * Create plugin.halo.run/v1alpha1/Plugin + * @param {PluginHaloRunV1alpha1PluginApiCreatepluginHaloRunV1alpha1PluginRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createpluginHaloRunV1alpha1Plugin(requestParameters: PluginHaloRunV1alpha1PluginApiCreatepluginHaloRunV1alpha1PluginRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createpluginHaloRunV1alpha1Plugin(requestParameters.plugin, options).then((request) => request(axios, basePath)); + }, + /** + * Delete plugin.halo.run/v1alpha1/Plugin + * @param {PluginHaloRunV1alpha1PluginApiDeletepluginHaloRunV1alpha1PluginRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletepluginHaloRunV1alpha1Plugin(requestParameters: PluginHaloRunV1alpha1PluginApiDeletepluginHaloRunV1alpha1PluginRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletepluginHaloRunV1alpha1Plugin(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get plugin.halo.run/v1alpha1/Plugin + * @param {PluginHaloRunV1alpha1PluginApiGetpluginHaloRunV1alpha1PluginRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getpluginHaloRunV1alpha1Plugin(requestParameters: PluginHaloRunV1alpha1PluginApiGetpluginHaloRunV1alpha1PluginRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getpluginHaloRunV1alpha1Plugin(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List plugin.halo.run/v1alpha1/Plugin + * @param {PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1PluginRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listpluginHaloRunV1alpha1Plugin(requestParameters: PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1PluginRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listpluginHaloRunV1alpha1Plugin(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update plugin.halo.run/v1alpha1/Plugin + * @param {PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1PluginRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatepluginHaloRunV1alpha1Plugin(requestParameters: PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1PluginRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatepluginHaloRunV1alpha1Plugin(requestParameters.name, requestParameters.plugin, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -603,12 +400,12 @@ export const PluginHaloRunV1alpha1PluginApiFactory = function ( * @interface PluginHaloRunV1alpha1PluginApiCreatepluginHaloRunV1alpha1PluginRequest */ export interface PluginHaloRunV1alpha1PluginApiCreatepluginHaloRunV1alpha1PluginRequest { - /** - * Fresh plugin - * @type {Plugin} - * @memberof PluginHaloRunV1alpha1PluginApiCreatepluginHaloRunV1alpha1Plugin - */ - readonly plugin?: Plugin; + /** + * Fresh plugin + * @type {Plugin} + * @memberof PluginHaloRunV1alpha1PluginApiCreatepluginHaloRunV1alpha1Plugin + */ + readonly plugin?: Plugin } /** @@ -617,12 +414,12 @@ export interface PluginHaloRunV1alpha1PluginApiCreatepluginHaloRunV1alpha1Plugin * @interface PluginHaloRunV1alpha1PluginApiDeletepluginHaloRunV1alpha1PluginRequest */ export interface PluginHaloRunV1alpha1PluginApiDeletepluginHaloRunV1alpha1PluginRequest { - /** - * Name of plugin - * @type {string} - * @memberof PluginHaloRunV1alpha1PluginApiDeletepluginHaloRunV1alpha1Plugin - */ - readonly name: string; + /** + * Name of plugin + * @type {string} + * @memberof PluginHaloRunV1alpha1PluginApiDeletepluginHaloRunV1alpha1Plugin + */ + readonly name: string } /** @@ -631,12 +428,12 @@ export interface PluginHaloRunV1alpha1PluginApiDeletepluginHaloRunV1alpha1Plugin * @interface PluginHaloRunV1alpha1PluginApiGetpluginHaloRunV1alpha1PluginRequest */ export interface PluginHaloRunV1alpha1PluginApiGetpluginHaloRunV1alpha1PluginRequest { - /** - * Name of plugin - * @type {string} - * @memberof PluginHaloRunV1alpha1PluginApiGetpluginHaloRunV1alpha1Plugin - */ - readonly name: string; + /** + * Name of plugin + * @type {string} + * @memberof PluginHaloRunV1alpha1PluginApiGetpluginHaloRunV1alpha1Plugin + */ + readonly name: string } /** @@ -645,40 +442,40 @@ export interface PluginHaloRunV1alpha1PluginApiGetpluginHaloRunV1alpha1PluginReq * @interface PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1PluginRequest */ export interface PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1PluginRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin + */ + readonly sort?: Array } /** @@ -687,19 +484,19 @@ export interface PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1PluginRe * @interface PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1PluginRequest */ export interface PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1PluginRequest { - /** - * Name of plugin - * @type {string} - * @memberof PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1Plugin - */ - readonly name: string; + /** + * Name of plugin + * @type {string} + * @memberof PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1Plugin + */ + readonly name: string - /** - * Updated plugin - * @type {Plugin} - * @memberof PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1Plugin - */ - readonly plugin?: Plugin; + /** + * Updated plugin + * @type {Plugin} + * @memberof PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1Plugin + */ + readonly plugin?: Plugin } /** @@ -709,94 +506,59 @@ export interface PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1Plugin * @extends {BaseAPI} */ export class PluginHaloRunV1alpha1PluginApi extends BaseAPI { - /** - * Create plugin.halo.run/v1alpha1/Plugin - * @param {PluginHaloRunV1alpha1PluginApiCreatepluginHaloRunV1alpha1PluginRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1PluginApi - */ - public createpluginHaloRunV1alpha1Plugin( - requestParameters: PluginHaloRunV1alpha1PluginApiCreatepluginHaloRunV1alpha1PluginRequest = {}, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1PluginApiFp(this.configuration) - .createpluginHaloRunV1alpha1Plugin(requestParameters.plugin, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create plugin.halo.run/v1alpha1/Plugin + * @param {PluginHaloRunV1alpha1PluginApiCreatepluginHaloRunV1alpha1PluginRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1PluginApi + */ + public createpluginHaloRunV1alpha1Plugin(requestParameters: PluginHaloRunV1alpha1PluginApiCreatepluginHaloRunV1alpha1PluginRequest = {}, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1PluginApiFp(this.configuration).createpluginHaloRunV1alpha1Plugin(requestParameters.plugin, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete plugin.halo.run/v1alpha1/Plugin - * @param {PluginHaloRunV1alpha1PluginApiDeletepluginHaloRunV1alpha1PluginRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1PluginApi - */ - public deletepluginHaloRunV1alpha1Plugin( - requestParameters: PluginHaloRunV1alpha1PluginApiDeletepluginHaloRunV1alpha1PluginRequest, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1PluginApiFp(this.configuration) - .deletepluginHaloRunV1alpha1Plugin(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete plugin.halo.run/v1alpha1/Plugin + * @param {PluginHaloRunV1alpha1PluginApiDeletepluginHaloRunV1alpha1PluginRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1PluginApi + */ + public deletepluginHaloRunV1alpha1Plugin(requestParameters: PluginHaloRunV1alpha1PluginApiDeletepluginHaloRunV1alpha1PluginRequest, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1PluginApiFp(this.configuration).deletepluginHaloRunV1alpha1Plugin(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get plugin.halo.run/v1alpha1/Plugin - * @param {PluginHaloRunV1alpha1PluginApiGetpluginHaloRunV1alpha1PluginRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1PluginApi - */ - public getpluginHaloRunV1alpha1Plugin( - requestParameters: PluginHaloRunV1alpha1PluginApiGetpluginHaloRunV1alpha1PluginRequest, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1PluginApiFp(this.configuration) - .getpluginHaloRunV1alpha1Plugin(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get plugin.halo.run/v1alpha1/Plugin + * @param {PluginHaloRunV1alpha1PluginApiGetpluginHaloRunV1alpha1PluginRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1PluginApi + */ + public getpluginHaloRunV1alpha1Plugin(requestParameters: PluginHaloRunV1alpha1PluginApiGetpluginHaloRunV1alpha1PluginRequest, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1PluginApiFp(this.configuration).getpluginHaloRunV1alpha1Plugin(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List plugin.halo.run/v1alpha1/Plugin - * @param {PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1PluginRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1PluginApi - */ - public listpluginHaloRunV1alpha1Plugin( - requestParameters: PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1PluginRequest = {}, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1PluginApiFp(this.configuration) - .listpluginHaloRunV1alpha1Plugin( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List plugin.halo.run/v1alpha1/Plugin + * @param {PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1PluginRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1PluginApi + */ + public listpluginHaloRunV1alpha1Plugin(requestParameters: PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1PluginRequest = {}, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1PluginApiFp(this.configuration).listpluginHaloRunV1alpha1Plugin(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update plugin.halo.run/v1alpha1/Plugin - * @param {PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1PluginRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1PluginApi - */ - public updatepluginHaloRunV1alpha1Plugin( - requestParameters: PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1PluginRequest, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1PluginApiFp(this.configuration) - .updatepluginHaloRunV1alpha1Plugin( - requestParameters.name, - requestParameters.plugin, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update plugin.halo.run/v1alpha1/Plugin + * @param {PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1PluginRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1PluginApi + */ + public updatepluginHaloRunV1alpha1Plugin(requestParameters: PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1PluginRequest, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1PluginApiFp(this.configuration).updatepluginHaloRunV1alpha1Plugin(requestParameters.name, requestParameters.plugin, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/plugin-halo-run-v1alpha1-reverse-proxy-api.ts b/ui/packages/api-client/src/api/plugin-halo-run-v1alpha1-reverse-proxy-api.ts index 22de8c1a0..b8c122004 100644 --- a/ui/packages/api-client/src/api/plugin-halo-run-v1alpha1-reverse-proxy-api.ts +++ b/ui/packages/api-client/src/api/plugin-halo-run-v1alpha1-reverse-proxy-api.ts @@ -5,613 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { ReverseProxy } from "../models"; +import { ReverseProxy } from '../models'; // @ts-ignore -import { ReverseProxyList } from "../models"; +import { ReverseProxyList } from '../models'; /** * PluginHaloRunV1alpha1ReverseProxyApi - axios parameter creator * @export */ -export const PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create plugin.halo.run/v1alpha1/ReverseProxy - * @param {ReverseProxy} [reverseProxy] Fresh reverseproxy - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createpluginHaloRunV1alpha1ReverseProxy: async ( - reverseProxy?: ReverseProxy, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create plugin.halo.run/v1alpha1/ReverseProxy + * @param {ReverseProxy} [reverseProxy] Fresh reverseproxy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createpluginHaloRunV1alpha1ReverseProxy: async (reverseProxy?: ReverseProxy, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - reverseProxy, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete plugin.halo.run/v1alpha1/ReverseProxy - * @param {string} name Name of reverseproxy - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletepluginHaloRunV1alpha1ReverseProxy: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "deletepluginHaloRunV1alpha1ReverseProxy", - "name", - name - ); - const localVarPath = - `/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(reverseProxy, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete plugin.halo.run/v1alpha1/ReverseProxy + * @param {string} name Name of reverseproxy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletepluginHaloRunV1alpha1ReverseProxy: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletepluginHaloRunV1alpha1ReverseProxy', 'name', name) + const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get plugin.halo.run/v1alpha1/ReverseProxy - * @param {string} name Name of reverseproxy - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getpluginHaloRunV1alpha1ReverseProxy: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getpluginHaloRunV1alpha1ReverseProxy", "name", name); - const localVarPath = - `/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get plugin.halo.run/v1alpha1/ReverseProxy + * @param {string} name Name of reverseproxy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getpluginHaloRunV1alpha1ReverseProxy: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getpluginHaloRunV1alpha1ReverseProxy', 'name', name) + const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List plugin.halo.run/v1alpha1/ReverseProxy - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listpluginHaloRunV1alpha1ReverseProxy: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List plugin.halo.run/v1alpha1/ReverseProxy + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listpluginHaloRunV1alpha1ReverseProxy: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update plugin.halo.run/v1alpha1/ReverseProxy - * @param {string} name Name of reverseproxy - * @param {ReverseProxy} [reverseProxy] Updated reverseproxy - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatepluginHaloRunV1alpha1ReverseProxy: async ( - name: string, - reverseProxy?: ReverseProxy, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "updatepluginHaloRunV1alpha1ReverseProxy", - "name", - name - ); - const localVarPath = - `/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update plugin.halo.run/v1alpha1/ReverseProxy + * @param {string} name Name of reverseproxy + * @param {ReverseProxy} [reverseProxy] Updated reverseproxy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatepluginHaloRunV1alpha1ReverseProxy: async (name: string, reverseProxy?: ReverseProxy, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatepluginHaloRunV1alpha1ReverseProxy', 'name', name) + const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - reverseProxy, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(reverseProxy, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * PluginHaloRunV1alpha1ReverseProxyApi - functional programming interface * @export */ -export const PluginHaloRunV1alpha1ReverseProxyApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator(configuration); - return { - /** - * Create plugin.halo.run/v1alpha1/ReverseProxy - * @param {ReverseProxy} [reverseProxy] Fresh reverseproxy - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createpluginHaloRunV1alpha1ReverseProxy( - reverseProxy?: ReverseProxy, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createpluginHaloRunV1alpha1ReverseProxy( - reverseProxy, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete plugin.halo.run/v1alpha1/ReverseProxy - * @param {string} name Name of reverseproxy - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletepluginHaloRunV1alpha1ReverseProxy( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletepluginHaloRunV1alpha1ReverseProxy( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get plugin.halo.run/v1alpha1/ReverseProxy - * @param {string} name Name of reverseproxy - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getpluginHaloRunV1alpha1ReverseProxy( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getpluginHaloRunV1alpha1ReverseProxy( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List plugin.halo.run/v1alpha1/ReverseProxy - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listpluginHaloRunV1alpha1ReverseProxy( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listpluginHaloRunV1alpha1ReverseProxy( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update plugin.halo.run/v1alpha1/ReverseProxy - * @param {string} name Name of reverseproxy - * @param {ReverseProxy} [reverseProxy] Updated reverseproxy - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatepluginHaloRunV1alpha1ReverseProxy( - name: string, - reverseProxy?: ReverseProxy, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatepluginHaloRunV1alpha1ReverseProxy( - name, - reverseProxy, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const PluginHaloRunV1alpha1ReverseProxyApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator(configuration) + return { + /** + * Create plugin.halo.run/v1alpha1/ReverseProxy + * @param {ReverseProxy} [reverseProxy] Fresh reverseproxy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createpluginHaloRunV1alpha1ReverseProxy(reverseProxy?: ReverseProxy, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createpluginHaloRunV1alpha1ReverseProxy(reverseProxy, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1ReverseProxyApi.createpluginHaloRunV1alpha1ReverseProxy']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete plugin.halo.run/v1alpha1/ReverseProxy + * @param {string} name Name of reverseproxy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletepluginHaloRunV1alpha1ReverseProxy(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletepluginHaloRunV1alpha1ReverseProxy(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1ReverseProxyApi.deletepluginHaloRunV1alpha1ReverseProxy']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get plugin.halo.run/v1alpha1/ReverseProxy + * @param {string} name Name of reverseproxy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getpluginHaloRunV1alpha1ReverseProxy(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getpluginHaloRunV1alpha1ReverseProxy(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1ReverseProxyApi.getpluginHaloRunV1alpha1ReverseProxy']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List plugin.halo.run/v1alpha1/ReverseProxy + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listpluginHaloRunV1alpha1ReverseProxy(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listpluginHaloRunV1alpha1ReverseProxy(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1ReverseProxyApi.listpluginHaloRunV1alpha1ReverseProxy']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update plugin.halo.run/v1alpha1/ReverseProxy + * @param {string} name Name of reverseproxy + * @param {ReverseProxy} [reverseProxy] Updated reverseproxy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatepluginHaloRunV1alpha1ReverseProxy(name: string, reverseProxy?: ReverseProxy, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatepluginHaloRunV1alpha1ReverseProxy(name, reverseProxy, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1ReverseProxyApi.updatepluginHaloRunV1alpha1ReverseProxy']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * PluginHaloRunV1alpha1ReverseProxyApi - factory interface * @export */ -export const PluginHaloRunV1alpha1ReverseProxyApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = PluginHaloRunV1alpha1ReverseProxyApiFp(configuration); - return { - /** - * Create plugin.halo.run/v1alpha1/ReverseProxy - * @param {PluginHaloRunV1alpha1ReverseProxyApiCreatepluginHaloRunV1alpha1ReverseProxyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createpluginHaloRunV1alpha1ReverseProxy( - requestParameters: PluginHaloRunV1alpha1ReverseProxyApiCreatepluginHaloRunV1alpha1ReverseProxyRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createpluginHaloRunV1alpha1ReverseProxy( - requestParameters.reverseProxy, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Delete plugin.halo.run/v1alpha1/ReverseProxy - * @param {PluginHaloRunV1alpha1ReverseProxyApiDeletepluginHaloRunV1alpha1ReverseProxyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletepluginHaloRunV1alpha1ReverseProxy( - requestParameters: PluginHaloRunV1alpha1ReverseProxyApiDeletepluginHaloRunV1alpha1ReverseProxyRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletepluginHaloRunV1alpha1ReverseProxy( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Get plugin.halo.run/v1alpha1/ReverseProxy - * @param {PluginHaloRunV1alpha1ReverseProxyApiGetpluginHaloRunV1alpha1ReverseProxyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getpluginHaloRunV1alpha1ReverseProxy( - requestParameters: PluginHaloRunV1alpha1ReverseProxyApiGetpluginHaloRunV1alpha1ReverseProxyRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getpluginHaloRunV1alpha1ReverseProxy(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List plugin.halo.run/v1alpha1/ReverseProxy - * @param {PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listpluginHaloRunV1alpha1ReverseProxy( - requestParameters: PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxyRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listpluginHaloRunV1alpha1ReverseProxy( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update plugin.halo.run/v1alpha1/ReverseProxy - * @param {PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1ReverseProxyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatepluginHaloRunV1alpha1ReverseProxy( - requestParameters: PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1ReverseProxyRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatepluginHaloRunV1alpha1ReverseProxy( - requestParameters.name, - requestParameters.reverseProxy, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const PluginHaloRunV1alpha1ReverseProxyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = PluginHaloRunV1alpha1ReverseProxyApiFp(configuration) + return { + /** + * Create plugin.halo.run/v1alpha1/ReverseProxy + * @param {PluginHaloRunV1alpha1ReverseProxyApiCreatepluginHaloRunV1alpha1ReverseProxyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createpluginHaloRunV1alpha1ReverseProxy(requestParameters: PluginHaloRunV1alpha1ReverseProxyApiCreatepluginHaloRunV1alpha1ReverseProxyRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createpluginHaloRunV1alpha1ReverseProxy(requestParameters.reverseProxy, options).then((request) => request(axios, basePath)); + }, + /** + * Delete plugin.halo.run/v1alpha1/ReverseProxy + * @param {PluginHaloRunV1alpha1ReverseProxyApiDeletepluginHaloRunV1alpha1ReverseProxyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletepluginHaloRunV1alpha1ReverseProxy(requestParameters: PluginHaloRunV1alpha1ReverseProxyApiDeletepluginHaloRunV1alpha1ReverseProxyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletepluginHaloRunV1alpha1ReverseProxy(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get plugin.halo.run/v1alpha1/ReverseProxy + * @param {PluginHaloRunV1alpha1ReverseProxyApiGetpluginHaloRunV1alpha1ReverseProxyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getpluginHaloRunV1alpha1ReverseProxy(requestParameters: PluginHaloRunV1alpha1ReverseProxyApiGetpluginHaloRunV1alpha1ReverseProxyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getpluginHaloRunV1alpha1ReverseProxy(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List plugin.halo.run/v1alpha1/ReverseProxy + * @param {PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listpluginHaloRunV1alpha1ReverseProxy(requestParameters: PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxyRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listpluginHaloRunV1alpha1ReverseProxy(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update plugin.halo.run/v1alpha1/ReverseProxy + * @param {PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1ReverseProxyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatepluginHaloRunV1alpha1ReverseProxy(requestParameters: PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1ReverseProxyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatepluginHaloRunV1alpha1ReverseProxy(requestParameters.name, requestParameters.reverseProxy, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -620,12 +400,12 @@ export const PluginHaloRunV1alpha1ReverseProxyApiFactory = function ( * @interface PluginHaloRunV1alpha1ReverseProxyApiCreatepluginHaloRunV1alpha1ReverseProxyRequest */ export interface PluginHaloRunV1alpha1ReverseProxyApiCreatepluginHaloRunV1alpha1ReverseProxyRequest { - /** - * Fresh reverseproxy - * @type {ReverseProxy} - * @memberof PluginHaloRunV1alpha1ReverseProxyApiCreatepluginHaloRunV1alpha1ReverseProxy - */ - readonly reverseProxy?: ReverseProxy; + /** + * Fresh reverseproxy + * @type {ReverseProxy} + * @memberof PluginHaloRunV1alpha1ReverseProxyApiCreatepluginHaloRunV1alpha1ReverseProxy + */ + readonly reverseProxy?: ReverseProxy } /** @@ -634,12 +414,12 @@ export interface PluginHaloRunV1alpha1ReverseProxyApiCreatepluginHaloRunV1alpha1 * @interface PluginHaloRunV1alpha1ReverseProxyApiDeletepluginHaloRunV1alpha1ReverseProxyRequest */ export interface PluginHaloRunV1alpha1ReverseProxyApiDeletepluginHaloRunV1alpha1ReverseProxyRequest { - /** - * Name of reverseproxy - * @type {string} - * @memberof PluginHaloRunV1alpha1ReverseProxyApiDeletepluginHaloRunV1alpha1ReverseProxy - */ - readonly name: string; + /** + * Name of reverseproxy + * @type {string} + * @memberof PluginHaloRunV1alpha1ReverseProxyApiDeletepluginHaloRunV1alpha1ReverseProxy + */ + readonly name: string } /** @@ -648,12 +428,12 @@ export interface PluginHaloRunV1alpha1ReverseProxyApiDeletepluginHaloRunV1alpha1 * @interface PluginHaloRunV1alpha1ReverseProxyApiGetpluginHaloRunV1alpha1ReverseProxyRequest */ export interface PluginHaloRunV1alpha1ReverseProxyApiGetpluginHaloRunV1alpha1ReverseProxyRequest { - /** - * Name of reverseproxy - * @type {string} - * @memberof PluginHaloRunV1alpha1ReverseProxyApiGetpluginHaloRunV1alpha1ReverseProxy - */ - readonly name: string; + /** + * Name of reverseproxy + * @type {string} + * @memberof PluginHaloRunV1alpha1ReverseProxyApiGetpluginHaloRunV1alpha1ReverseProxy + */ + readonly name: string } /** @@ -662,40 +442,40 @@ export interface PluginHaloRunV1alpha1ReverseProxyApiGetpluginHaloRunV1alpha1Rev * @interface PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxyRequest */ export interface PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxyRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy + */ + readonly sort?: Array } /** @@ -704,19 +484,19 @@ export interface PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1Re * @interface PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1ReverseProxyRequest */ export interface PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1ReverseProxyRequest { - /** - * Name of reverseproxy - * @type {string} - * @memberof PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1ReverseProxy - */ - readonly name: string; + /** + * Name of reverseproxy + * @type {string} + * @memberof PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1ReverseProxy + */ + readonly name: string - /** - * Updated reverseproxy - * @type {ReverseProxy} - * @memberof PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1ReverseProxy - */ - readonly reverseProxy?: ReverseProxy; + /** + * Updated reverseproxy + * @type {ReverseProxy} + * @memberof PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1ReverseProxy + */ + readonly reverseProxy?: ReverseProxy } /** @@ -726,97 +506,59 @@ export interface PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1 * @extends {BaseAPI} */ export class PluginHaloRunV1alpha1ReverseProxyApi extends BaseAPI { - /** - * Create plugin.halo.run/v1alpha1/ReverseProxy - * @param {PluginHaloRunV1alpha1ReverseProxyApiCreatepluginHaloRunV1alpha1ReverseProxyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1ReverseProxyApi - */ - public createpluginHaloRunV1alpha1ReverseProxy( - requestParameters: PluginHaloRunV1alpha1ReverseProxyApiCreatepluginHaloRunV1alpha1ReverseProxyRequest = {}, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration) - .createpluginHaloRunV1alpha1ReverseProxy( - requestParameters.reverseProxy, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create plugin.halo.run/v1alpha1/ReverseProxy + * @param {PluginHaloRunV1alpha1ReverseProxyApiCreatepluginHaloRunV1alpha1ReverseProxyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1ReverseProxyApi + */ + public createpluginHaloRunV1alpha1ReverseProxy(requestParameters: PluginHaloRunV1alpha1ReverseProxyApiCreatepluginHaloRunV1alpha1ReverseProxyRequest = {}, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration).createpluginHaloRunV1alpha1ReverseProxy(requestParameters.reverseProxy, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete plugin.halo.run/v1alpha1/ReverseProxy - * @param {PluginHaloRunV1alpha1ReverseProxyApiDeletepluginHaloRunV1alpha1ReverseProxyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1ReverseProxyApi - */ - public deletepluginHaloRunV1alpha1ReverseProxy( - requestParameters: PluginHaloRunV1alpha1ReverseProxyApiDeletepluginHaloRunV1alpha1ReverseProxyRequest, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration) - .deletepluginHaloRunV1alpha1ReverseProxy(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete plugin.halo.run/v1alpha1/ReverseProxy + * @param {PluginHaloRunV1alpha1ReverseProxyApiDeletepluginHaloRunV1alpha1ReverseProxyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1ReverseProxyApi + */ + public deletepluginHaloRunV1alpha1ReverseProxy(requestParameters: PluginHaloRunV1alpha1ReverseProxyApiDeletepluginHaloRunV1alpha1ReverseProxyRequest, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration).deletepluginHaloRunV1alpha1ReverseProxy(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get plugin.halo.run/v1alpha1/ReverseProxy - * @param {PluginHaloRunV1alpha1ReverseProxyApiGetpluginHaloRunV1alpha1ReverseProxyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1ReverseProxyApi - */ - public getpluginHaloRunV1alpha1ReverseProxy( - requestParameters: PluginHaloRunV1alpha1ReverseProxyApiGetpluginHaloRunV1alpha1ReverseProxyRequest, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration) - .getpluginHaloRunV1alpha1ReverseProxy(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get plugin.halo.run/v1alpha1/ReverseProxy + * @param {PluginHaloRunV1alpha1ReverseProxyApiGetpluginHaloRunV1alpha1ReverseProxyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1ReverseProxyApi + */ + public getpluginHaloRunV1alpha1ReverseProxy(requestParameters: PluginHaloRunV1alpha1ReverseProxyApiGetpluginHaloRunV1alpha1ReverseProxyRequest, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration).getpluginHaloRunV1alpha1ReverseProxy(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List plugin.halo.run/v1alpha1/ReverseProxy - * @param {PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1ReverseProxyApi - */ - public listpluginHaloRunV1alpha1ReverseProxy( - requestParameters: PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxyRequest = {}, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration) - .listpluginHaloRunV1alpha1ReverseProxy( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List plugin.halo.run/v1alpha1/ReverseProxy + * @param {PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1ReverseProxyApi + */ + public listpluginHaloRunV1alpha1ReverseProxy(requestParameters: PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxyRequest = {}, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration).listpluginHaloRunV1alpha1ReverseProxy(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update plugin.halo.run/v1alpha1/ReverseProxy - * @param {PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1ReverseProxyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1ReverseProxyApi - */ - public updatepluginHaloRunV1alpha1ReverseProxy( - requestParameters: PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1ReverseProxyRequest, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration) - .updatepluginHaloRunV1alpha1ReverseProxy( - requestParameters.name, - requestParameters.reverseProxy, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update plugin.halo.run/v1alpha1/ReverseProxy + * @param {PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1ReverseProxyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1ReverseProxyApi + */ + public updatepluginHaloRunV1alpha1ReverseProxy(requestParameters: PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1ReverseProxyRequest, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration).updatepluginHaloRunV1alpha1ReverseProxy(requestParameters.name, requestParameters.reverseProxy, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/plugin-halo-run-v1alpha1-search-engine-api.ts b/ui/packages/api-client/src/api/plugin-halo-run-v1alpha1-search-engine-api.ts index 662ee77fd..0a80bfda2 100644 --- a/ui/packages/api-client/src/api/plugin-halo-run-v1alpha1-search-engine-api.ts +++ b/ui/packages/api-client/src/api/plugin-halo-run-v1alpha1-search-engine-api.ts @@ -5,613 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { SearchEngine } from "../models"; +import { SearchEngine } from '../models'; // @ts-ignore -import { SearchEngineList } from "../models"; +import { SearchEngineList } from '../models'; /** * PluginHaloRunV1alpha1SearchEngineApi - axios parameter creator * @export */ -export const PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create plugin.halo.run/v1alpha1/SearchEngine - * @param {SearchEngine} [searchEngine] Fresh searchengine - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createpluginHaloRunV1alpha1SearchEngine: async ( - searchEngine?: SearchEngine, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/plugin.halo.run/v1alpha1/searchengines`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create plugin.halo.run/v1alpha1/SearchEngine + * @param {SearchEngine} [searchEngine] Fresh searchengine + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createpluginHaloRunV1alpha1SearchEngine: async (searchEngine?: SearchEngine, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/plugin.halo.run/v1alpha1/searchengines`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - searchEngine, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete plugin.halo.run/v1alpha1/SearchEngine - * @param {string} name Name of searchengine - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletepluginHaloRunV1alpha1SearchEngine: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "deletepluginHaloRunV1alpha1SearchEngine", - "name", - name - ); - const localVarPath = - `/apis/plugin.halo.run/v1alpha1/searchengines/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(searchEngine, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete plugin.halo.run/v1alpha1/SearchEngine + * @param {string} name Name of searchengine + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletepluginHaloRunV1alpha1SearchEngine: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletepluginHaloRunV1alpha1SearchEngine', 'name', name) + const localVarPath = `/apis/plugin.halo.run/v1alpha1/searchengines/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get plugin.halo.run/v1alpha1/SearchEngine - * @param {string} name Name of searchengine - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getpluginHaloRunV1alpha1SearchEngine: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getpluginHaloRunV1alpha1SearchEngine", "name", name); - const localVarPath = - `/apis/plugin.halo.run/v1alpha1/searchengines/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get plugin.halo.run/v1alpha1/SearchEngine + * @param {string} name Name of searchengine + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getpluginHaloRunV1alpha1SearchEngine: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getpluginHaloRunV1alpha1SearchEngine', 'name', name) + const localVarPath = `/apis/plugin.halo.run/v1alpha1/searchengines/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List plugin.halo.run/v1alpha1/SearchEngine - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listpluginHaloRunV1alpha1SearchEngine: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/plugin.halo.run/v1alpha1/searchengines`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List plugin.halo.run/v1alpha1/SearchEngine + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listpluginHaloRunV1alpha1SearchEngine: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/plugin.halo.run/v1alpha1/searchengines`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update plugin.halo.run/v1alpha1/SearchEngine - * @param {string} name Name of searchengine - * @param {SearchEngine} [searchEngine] Updated searchengine - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatepluginHaloRunV1alpha1SearchEngine: async ( - name: string, - searchEngine?: SearchEngine, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "updatepluginHaloRunV1alpha1SearchEngine", - "name", - name - ); - const localVarPath = - `/apis/plugin.halo.run/v1alpha1/searchengines/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update plugin.halo.run/v1alpha1/SearchEngine + * @param {string} name Name of searchengine + * @param {SearchEngine} [searchEngine] Updated searchengine + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatepluginHaloRunV1alpha1SearchEngine: async (name: string, searchEngine?: SearchEngine, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatepluginHaloRunV1alpha1SearchEngine', 'name', name) + const localVarPath = `/apis/plugin.halo.run/v1alpha1/searchengines/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - searchEngine, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(searchEngine, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * PluginHaloRunV1alpha1SearchEngineApi - functional programming interface * @export */ -export const PluginHaloRunV1alpha1SearchEngineApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator(configuration); - return { - /** - * Create plugin.halo.run/v1alpha1/SearchEngine - * @param {SearchEngine} [searchEngine] Fresh searchengine - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createpluginHaloRunV1alpha1SearchEngine( - searchEngine?: SearchEngine, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createpluginHaloRunV1alpha1SearchEngine( - searchEngine, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete plugin.halo.run/v1alpha1/SearchEngine - * @param {string} name Name of searchengine - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletepluginHaloRunV1alpha1SearchEngine( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletepluginHaloRunV1alpha1SearchEngine( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get plugin.halo.run/v1alpha1/SearchEngine - * @param {string} name Name of searchengine - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getpluginHaloRunV1alpha1SearchEngine( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getpluginHaloRunV1alpha1SearchEngine( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List plugin.halo.run/v1alpha1/SearchEngine - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listpluginHaloRunV1alpha1SearchEngine( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listpluginHaloRunV1alpha1SearchEngine( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update plugin.halo.run/v1alpha1/SearchEngine - * @param {string} name Name of searchengine - * @param {SearchEngine} [searchEngine] Updated searchengine - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatepluginHaloRunV1alpha1SearchEngine( - name: string, - searchEngine?: SearchEngine, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatepluginHaloRunV1alpha1SearchEngine( - name, - searchEngine, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const PluginHaloRunV1alpha1SearchEngineApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator(configuration) + return { + /** + * Create plugin.halo.run/v1alpha1/SearchEngine + * @param {SearchEngine} [searchEngine] Fresh searchengine + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createpluginHaloRunV1alpha1SearchEngine(searchEngine?: SearchEngine, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createpluginHaloRunV1alpha1SearchEngine(searchEngine, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1SearchEngineApi.createpluginHaloRunV1alpha1SearchEngine']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete plugin.halo.run/v1alpha1/SearchEngine + * @param {string} name Name of searchengine + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletepluginHaloRunV1alpha1SearchEngine(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletepluginHaloRunV1alpha1SearchEngine(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1SearchEngineApi.deletepluginHaloRunV1alpha1SearchEngine']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get plugin.halo.run/v1alpha1/SearchEngine + * @param {string} name Name of searchengine + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getpluginHaloRunV1alpha1SearchEngine(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getpluginHaloRunV1alpha1SearchEngine(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1SearchEngineApi.getpluginHaloRunV1alpha1SearchEngine']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List plugin.halo.run/v1alpha1/SearchEngine + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listpluginHaloRunV1alpha1SearchEngine(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listpluginHaloRunV1alpha1SearchEngine(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1SearchEngineApi.listpluginHaloRunV1alpha1SearchEngine']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update plugin.halo.run/v1alpha1/SearchEngine + * @param {string} name Name of searchengine + * @param {SearchEngine} [searchEngine] Updated searchengine + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatepluginHaloRunV1alpha1SearchEngine(name: string, searchEngine?: SearchEngine, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatepluginHaloRunV1alpha1SearchEngine(name, searchEngine, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PluginHaloRunV1alpha1SearchEngineApi.updatepluginHaloRunV1alpha1SearchEngine']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * PluginHaloRunV1alpha1SearchEngineApi - factory interface * @export */ -export const PluginHaloRunV1alpha1SearchEngineApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = PluginHaloRunV1alpha1SearchEngineApiFp(configuration); - return { - /** - * Create plugin.halo.run/v1alpha1/SearchEngine - * @param {PluginHaloRunV1alpha1SearchEngineApiCreatepluginHaloRunV1alpha1SearchEngineRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createpluginHaloRunV1alpha1SearchEngine( - requestParameters: PluginHaloRunV1alpha1SearchEngineApiCreatepluginHaloRunV1alpha1SearchEngineRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createpluginHaloRunV1alpha1SearchEngine( - requestParameters.searchEngine, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Delete plugin.halo.run/v1alpha1/SearchEngine - * @param {PluginHaloRunV1alpha1SearchEngineApiDeletepluginHaloRunV1alpha1SearchEngineRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletepluginHaloRunV1alpha1SearchEngine( - requestParameters: PluginHaloRunV1alpha1SearchEngineApiDeletepluginHaloRunV1alpha1SearchEngineRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletepluginHaloRunV1alpha1SearchEngine( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Get plugin.halo.run/v1alpha1/SearchEngine - * @param {PluginHaloRunV1alpha1SearchEngineApiGetpluginHaloRunV1alpha1SearchEngineRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getpluginHaloRunV1alpha1SearchEngine( - requestParameters: PluginHaloRunV1alpha1SearchEngineApiGetpluginHaloRunV1alpha1SearchEngineRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getpluginHaloRunV1alpha1SearchEngine(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List plugin.halo.run/v1alpha1/SearchEngine - * @param {PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngineRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listpluginHaloRunV1alpha1SearchEngine( - requestParameters: PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngineRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listpluginHaloRunV1alpha1SearchEngine( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update plugin.halo.run/v1alpha1/SearchEngine - * @param {PluginHaloRunV1alpha1SearchEngineApiUpdatepluginHaloRunV1alpha1SearchEngineRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatepluginHaloRunV1alpha1SearchEngine( - requestParameters: PluginHaloRunV1alpha1SearchEngineApiUpdatepluginHaloRunV1alpha1SearchEngineRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatepluginHaloRunV1alpha1SearchEngine( - requestParameters.name, - requestParameters.searchEngine, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const PluginHaloRunV1alpha1SearchEngineApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = PluginHaloRunV1alpha1SearchEngineApiFp(configuration) + return { + /** + * Create plugin.halo.run/v1alpha1/SearchEngine + * @param {PluginHaloRunV1alpha1SearchEngineApiCreatepluginHaloRunV1alpha1SearchEngineRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createpluginHaloRunV1alpha1SearchEngine(requestParameters: PluginHaloRunV1alpha1SearchEngineApiCreatepluginHaloRunV1alpha1SearchEngineRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createpluginHaloRunV1alpha1SearchEngine(requestParameters.searchEngine, options).then((request) => request(axios, basePath)); + }, + /** + * Delete plugin.halo.run/v1alpha1/SearchEngine + * @param {PluginHaloRunV1alpha1SearchEngineApiDeletepluginHaloRunV1alpha1SearchEngineRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletepluginHaloRunV1alpha1SearchEngine(requestParameters: PluginHaloRunV1alpha1SearchEngineApiDeletepluginHaloRunV1alpha1SearchEngineRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletepluginHaloRunV1alpha1SearchEngine(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get plugin.halo.run/v1alpha1/SearchEngine + * @param {PluginHaloRunV1alpha1SearchEngineApiGetpluginHaloRunV1alpha1SearchEngineRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getpluginHaloRunV1alpha1SearchEngine(requestParameters: PluginHaloRunV1alpha1SearchEngineApiGetpluginHaloRunV1alpha1SearchEngineRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getpluginHaloRunV1alpha1SearchEngine(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List plugin.halo.run/v1alpha1/SearchEngine + * @param {PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngineRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listpluginHaloRunV1alpha1SearchEngine(requestParameters: PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngineRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listpluginHaloRunV1alpha1SearchEngine(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update plugin.halo.run/v1alpha1/SearchEngine + * @param {PluginHaloRunV1alpha1SearchEngineApiUpdatepluginHaloRunV1alpha1SearchEngineRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatepluginHaloRunV1alpha1SearchEngine(requestParameters: PluginHaloRunV1alpha1SearchEngineApiUpdatepluginHaloRunV1alpha1SearchEngineRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatepluginHaloRunV1alpha1SearchEngine(requestParameters.name, requestParameters.searchEngine, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -620,12 +400,12 @@ export const PluginHaloRunV1alpha1SearchEngineApiFactory = function ( * @interface PluginHaloRunV1alpha1SearchEngineApiCreatepluginHaloRunV1alpha1SearchEngineRequest */ export interface PluginHaloRunV1alpha1SearchEngineApiCreatepluginHaloRunV1alpha1SearchEngineRequest { - /** - * Fresh searchengine - * @type {SearchEngine} - * @memberof PluginHaloRunV1alpha1SearchEngineApiCreatepluginHaloRunV1alpha1SearchEngine - */ - readonly searchEngine?: SearchEngine; + /** + * Fresh searchengine + * @type {SearchEngine} + * @memberof PluginHaloRunV1alpha1SearchEngineApiCreatepluginHaloRunV1alpha1SearchEngine + */ + readonly searchEngine?: SearchEngine } /** @@ -634,12 +414,12 @@ export interface PluginHaloRunV1alpha1SearchEngineApiCreatepluginHaloRunV1alpha1 * @interface PluginHaloRunV1alpha1SearchEngineApiDeletepluginHaloRunV1alpha1SearchEngineRequest */ export interface PluginHaloRunV1alpha1SearchEngineApiDeletepluginHaloRunV1alpha1SearchEngineRequest { - /** - * Name of searchengine - * @type {string} - * @memberof PluginHaloRunV1alpha1SearchEngineApiDeletepluginHaloRunV1alpha1SearchEngine - */ - readonly name: string; + /** + * Name of searchengine + * @type {string} + * @memberof PluginHaloRunV1alpha1SearchEngineApiDeletepluginHaloRunV1alpha1SearchEngine + */ + readonly name: string } /** @@ -648,12 +428,12 @@ export interface PluginHaloRunV1alpha1SearchEngineApiDeletepluginHaloRunV1alpha1 * @interface PluginHaloRunV1alpha1SearchEngineApiGetpluginHaloRunV1alpha1SearchEngineRequest */ export interface PluginHaloRunV1alpha1SearchEngineApiGetpluginHaloRunV1alpha1SearchEngineRequest { - /** - * Name of searchengine - * @type {string} - * @memberof PluginHaloRunV1alpha1SearchEngineApiGetpluginHaloRunV1alpha1SearchEngine - */ - readonly name: string; + /** + * Name of searchengine + * @type {string} + * @memberof PluginHaloRunV1alpha1SearchEngineApiGetpluginHaloRunV1alpha1SearchEngine + */ + readonly name: string } /** @@ -662,40 +442,40 @@ export interface PluginHaloRunV1alpha1SearchEngineApiGetpluginHaloRunV1alpha1Sea * @interface PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngineRequest */ export interface PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngineRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine + */ + readonly sort?: Array } /** @@ -704,19 +484,19 @@ export interface PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1Se * @interface PluginHaloRunV1alpha1SearchEngineApiUpdatepluginHaloRunV1alpha1SearchEngineRequest */ export interface PluginHaloRunV1alpha1SearchEngineApiUpdatepluginHaloRunV1alpha1SearchEngineRequest { - /** - * Name of searchengine - * @type {string} - * @memberof PluginHaloRunV1alpha1SearchEngineApiUpdatepluginHaloRunV1alpha1SearchEngine - */ - readonly name: string; + /** + * Name of searchengine + * @type {string} + * @memberof PluginHaloRunV1alpha1SearchEngineApiUpdatepluginHaloRunV1alpha1SearchEngine + */ + readonly name: string - /** - * Updated searchengine - * @type {SearchEngine} - * @memberof PluginHaloRunV1alpha1SearchEngineApiUpdatepluginHaloRunV1alpha1SearchEngine - */ - readonly searchEngine?: SearchEngine; + /** + * Updated searchengine + * @type {SearchEngine} + * @memberof PluginHaloRunV1alpha1SearchEngineApiUpdatepluginHaloRunV1alpha1SearchEngine + */ + readonly searchEngine?: SearchEngine } /** @@ -726,97 +506,59 @@ export interface PluginHaloRunV1alpha1SearchEngineApiUpdatepluginHaloRunV1alpha1 * @extends {BaseAPI} */ export class PluginHaloRunV1alpha1SearchEngineApi extends BaseAPI { - /** - * Create plugin.halo.run/v1alpha1/SearchEngine - * @param {PluginHaloRunV1alpha1SearchEngineApiCreatepluginHaloRunV1alpha1SearchEngineRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1SearchEngineApi - */ - public createpluginHaloRunV1alpha1SearchEngine( - requestParameters: PluginHaloRunV1alpha1SearchEngineApiCreatepluginHaloRunV1alpha1SearchEngineRequest = {}, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1SearchEngineApiFp(this.configuration) - .createpluginHaloRunV1alpha1SearchEngine( - requestParameters.searchEngine, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create plugin.halo.run/v1alpha1/SearchEngine + * @param {PluginHaloRunV1alpha1SearchEngineApiCreatepluginHaloRunV1alpha1SearchEngineRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1SearchEngineApi + */ + public createpluginHaloRunV1alpha1SearchEngine(requestParameters: PluginHaloRunV1alpha1SearchEngineApiCreatepluginHaloRunV1alpha1SearchEngineRequest = {}, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1SearchEngineApiFp(this.configuration).createpluginHaloRunV1alpha1SearchEngine(requestParameters.searchEngine, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete plugin.halo.run/v1alpha1/SearchEngine - * @param {PluginHaloRunV1alpha1SearchEngineApiDeletepluginHaloRunV1alpha1SearchEngineRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1SearchEngineApi - */ - public deletepluginHaloRunV1alpha1SearchEngine( - requestParameters: PluginHaloRunV1alpha1SearchEngineApiDeletepluginHaloRunV1alpha1SearchEngineRequest, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1SearchEngineApiFp(this.configuration) - .deletepluginHaloRunV1alpha1SearchEngine(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete plugin.halo.run/v1alpha1/SearchEngine + * @param {PluginHaloRunV1alpha1SearchEngineApiDeletepluginHaloRunV1alpha1SearchEngineRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1SearchEngineApi + */ + public deletepluginHaloRunV1alpha1SearchEngine(requestParameters: PluginHaloRunV1alpha1SearchEngineApiDeletepluginHaloRunV1alpha1SearchEngineRequest, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1SearchEngineApiFp(this.configuration).deletepluginHaloRunV1alpha1SearchEngine(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get plugin.halo.run/v1alpha1/SearchEngine - * @param {PluginHaloRunV1alpha1SearchEngineApiGetpluginHaloRunV1alpha1SearchEngineRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1SearchEngineApi - */ - public getpluginHaloRunV1alpha1SearchEngine( - requestParameters: PluginHaloRunV1alpha1SearchEngineApiGetpluginHaloRunV1alpha1SearchEngineRequest, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1SearchEngineApiFp(this.configuration) - .getpluginHaloRunV1alpha1SearchEngine(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get plugin.halo.run/v1alpha1/SearchEngine + * @param {PluginHaloRunV1alpha1SearchEngineApiGetpluginHaloRunV1alpha1SearchEngineRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1SearchEngineApi + */ + public getpluginHaloRunV1alpha1SearchEngine(requestParameters: PluginHaloRunV1alpha1SearchEngineApiGetpluginHaloRunV1alpha1SearchEngineRequest, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1SearchEngineApiFp(this.configuration).getpluginHaloRunV1alpha1SearchEngine(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List plugin.halo.run/v1alpha1/SearchEngine - * @param {PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngineRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1SearchEngineApi - */ - public listpluginHaloRunV1alpha1SearchEngine( - requestParameters: PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngineRequest = {}, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1SearchEngineApiFp(this.configuration) - .listpluginHaloRunV1alpha1SearchEngine( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List plugin.halo.run/v1alpha1/SearchEngine + * @param {PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngineRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1SearchEngineApi + */ + public listpluginHaloRunV1alpha1SearchEngine(requestParameters: PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngineRequest = {}, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1SearchEngineApiFp(this.configuration).listpluginHaloRunV1alpha1SearchEngine(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update plugin.halo.run/v1alpha1/SearchEngine - * @param {PluginHaloRunV1alpha1SearchEngineApiUpdatepluginHaloRunV1alpha1SearchEngineRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PluginHaloRunV1alpha1SearchEngineApi - */ - public updatepluginHaloRunV1alpha1SearchEngine( - requestParameters: PluginHaloRunV1alpha1SearchEngineApiUpdatepluginHaloRunV1alpha1SearchEngineRequest, - options?: AxiosRequestConfig - ) { - return PluginHaloRunV1alpha1SearchEngineApiFp(this.configuration) - .updatepluginHaloRunV1alpha1SearchEngine( - requestParameters.name, - requestParameters.searchEngine, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update plugin.halo.run/v1alpha1/SearchEngine + * @param {PluginHaloRunV1alpha1SearchEngineApiUpdatepluginHaloRunV1alpha1SearchEngineRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PluginHaloRunV1alpha1SearchEngineApi + */ + public updatepluginHaloRunV1alpha1SearchEngine(requestParameters: PluginHaloRunV1alpha1SearchEngineApiUpdatepluginHaloRunV1alpha1SearchEngineRequest, options?: RawAxiosRequestConfig) { + return PluginHaloRunV1alpha1SearchEngineApiFp(this.configuration).updatepluginHaloRunV1alpha1SearchEngine(requestParameters.name, requestParameters.searchEngine, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/security-halo-run-v1alpha1-personal-access-token-api.ts b/ui/packages/api-client/src/api/security-halo-run-v1alpha1-personal-access-token-api.ts index 9f1ef7c44..2188a8a9e 100644 --- a/ui/packages/api-client/src/api/security-halo-run-v1alpha1-personal-access-token-api.ts +++ b/ui/packages/api-client/src/api/security-halo-run-v1alpha1-personal-access-token-api.ts @@ -5,631 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { PersonalAccessToken } from "../models"; +import { PersonalAccessToken } from '../models'; // @ts-ignore -import { PersonalAccessTokenList } from "../models"; +import { PersonalAccessTokenList } from '../models'; /** * SecurityHaloRunV1alpha1PersonalAccessTokenApi - axios parameter creator * @export */ -export const SecurityHaloRunV1alpha1PersonalAccessTokenApiAxiosParamCreator = - function (configuration?: Configuration) { +export const SecurityHaloRunV1alpha1PersonalAccessTokenApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Create security.halo.run/v1alpha1/PersonalAccessToken - * @param {PersonalAccessToken} [personalAccessToken] Fresh personalaccesstoken - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createsecurityHaloRunV1alpha1PersonalAccessToken: async ( - personalAccessToken?: PersonalAccessToken, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/security.halo.run/v1alpha1/personalaccesstokens`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * Create security.halo.run/v1alpha1/PersonalAccessToken + * @param {PersonalAccessToken} [personalAccessToken] Fresh personalaccesstoken + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createsecurityHaloRunV1alpha1PersonalAccessToken: async (personalAccessToken?: PersonalAccessToken, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/security.halo.run/v1alpha1/personalaccesstokens`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - personalAccessToken, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete security.halo.run/v1alpha1/PersonalAccessToken - * @param {string} name Name of personalaccesstoken - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletesecurityHaloRunV1alpha1PersonalAccessToken: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "deletesecurityHaloRunV1alpha1PersonalAccessToken", - "name", - name - ); - const localVarPath = - `/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(personalAccessToken, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete security.halo.run/v1alpha1/PersonalAccessToken + * @param {string} name Name of personalaccesstoken + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletesecurityHaloRunV1alpha1PersonalAccessToken: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletesecurityHaloRunV1alpha1PersonalAccessToken', 'name', name) + const localVarPath = `/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get security.halo.run/v1alpha1/PersonalAccessToken - * @param {string} name Name of personalaccesstoken - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getsecurityHaloRunV1alpha1PersonalAccessToken: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "getsecurityHaloRunV1alpha1PersonalAccessToken", - "name", - name - ); - const localVarPath = - `/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get security.halo.run/v1alpha1/PersonalAccessToken + * @param {string} name Name of personalaccesstoken + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getsecurityHaloRunV1alpha1PersonalAccessToken: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getsecurityHaloRunV1alpha1PersonalAccessToken', 'name', name) + const localVarPath = `/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List security.halo.run/v1alpha1/PersonalAccessToken - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listsecurityHaloRunV1alpha1PersonalAccessToken: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/security.halo.run/v1alpha1/personalaccesstokens`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List security.halo.run/v1alpha1/PersonalAccessToken + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listsecurityHaloRunV1alpha1PersonalAccessToken: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/security.halo.run/v1alpha1/personalaccesstokens`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update security.halo.run/v1alpha1/PersonalAccessToken - * @param {string} name Name of personalaccesstoken - * @param {PersonalAccessToken} [personalAccessToken] Updated personalaccesstoken - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatesecurityHaloRunV1alpha1PersonalAccessToken: async ( - name: string, - personalAccessToken?: PersonalAccessToken, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "updatesecurityHaloRunV1alpha1PersonalAccessToken", - "name", - name - ); - const localVarPath = - `/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update security.halo.run/v1alpha1/PersonalAccessToken + * @param {string} name Name of personalaccesstoken + * @param {PersonalAccessToken} [personalAccessToken] Updated personalaccesstoken + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatesecurityHaloRunV1alpha1PersonalAccessToken: async (name: string, personalAccessToken?: PersonalAccessToken, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatesecurityHaloRunV1alpha1PersonalAccessToken', 'name', name) + const localVarPath = `/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - personalAccessToken, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(personalAccessToken, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * SecurityHaloRunV1alpha1PersonalAccessTokenApi - functional programming interface * @export */ -export const SecurityHaloRunV1alpha1PersonalAccessTokenApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - SecurityHaloRunV1alpha1PersonalAccessTokenApiAxiosParamCreator( - configuration - ); - return { - /** - * Create security.halo.run/v1alpha1/PersonalAccessToken - * @param {PersonalAccessToken} [personalAccessToken] Fresh personalaccesstoken - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createsecurityHaloRunV1alpha1PersonalAccessToken( - personalAccessToken?: PersonalAccessToken, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createsecurityHaloRunV1alpha1PersonalAccessToken( - personalAccessToken, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete security.halo.run/v1alpha1/PersonalAccessToken - * @param {string} name Name of personalaccesstoken - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletesecurityHaloRunV1alpha1PersonalAccessToken( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletesecurityHaloRunV1alpha1PersonalAccessToken( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get security.halo.run/v1alpha1/PersonalAccessToken - * @param {string} name Name of personalaccesstoken - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getsecurityHaloRunV1alpha1PersonalAccessToken( - name: string, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getsecurityHaloRunV1alpha1PersonalAccessToken( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List security.halo.run/v1alpha1/PersonalAccessToken - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listsecurityHaloRunV1alpha1PersonalAccessToken( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listsecurityHaloRunV1alpha1PersonalAccessToken( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update security.halo.run/v1alpha1/PersonalAccessToken - * @param {string} name Name of personalaccesstoken - * @param {PersonalAccessToken} [personalAccessToken] Updated personalaccesstoken - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatesecurityHaloRunV1alpha1PersonalAccessToken( - name: string, - personalAccessToken?: PersonalAccessToken, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatesecurityHaloRunV1alpha1PersonalAccessToken( - name, - personalAccessToken, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const SecurityHaloRunV1alpha1PersonalAccessTokenApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = SecurityHaloRunV1alpha1PersonalAccessTokenApiAxiosParamCreator(configuration) + return { + /** + * Create security.halo.run/v1alpha1/PersonalAccessToken + * @param {PersonalAccessToken} [personalAccessToken] Fresh personalaccesstoken + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createsecurityHaloRunV1alpha1PersonalAccessToken(personalAccessToken?: PersonalAccessToken, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createsecurityHaloRunV1alpha1PersonalAccessToken(personalAccessToken, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['SecurityHaloRunV1alpha1PersonalAccessTokenApi.createsecurityHaloRunV1alpha1PersonalAccessToken']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete security.halo.run/v1alpha1/PersonalAccessToken + * @param {string} name Name of personalaccesstoken + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletesecurityHaloRunV1alpha1PersonalAccessToken(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletesecurityHaloRunV1alpha1PersonalAccessToken(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['SecurityHaloRunV1alpha1PersonalAccessTokenApi.deletesecurityHaloRunV1alpha1PersonalAccessToken']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get security.halo.run/v1alpha1/PersonalAccessToken + * @param {string} name Name of personalaccesstoken + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getsecurityHaloRunV1alpha1PersonalAccessToken(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getsecurityHaloRunV1alpha1PersonalAccessToken(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['SecurityHaloRunV1alpha1PersonalAccessTokenApi.getsecurityHaloRunV1alpha1PersonalAccessToken']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List security.halo.run/v1alpha1/PersonalAccessToken + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listsecurityHaloRunV1alpha1PersonalAccessToken(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listsecurityHaloRunV1alpha1PersonalAccessToken(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['SecurityHaloRunV1alpha1PersonalAccessTokenApi.listsecurityHaloRunV1alpha1PersonalAccessToken']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update security.halo.run/v1alpha1/PersonalAccessToken + * @param {string} name Name of personalaccesstoken + * @param {PersonalAccessToken} [personalAccessToken] Updated personalaccesstoken + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatesecurityHaloRunV1alpha1PersonalAccessToken(name: string, personalAccessToken?: PersonalAccessToken, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatesecurityHaloRunV1alpha1PersonalAccessToken(name, personalAccessToken, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['SecurityHaloRunV1alpha1PersonalAccessTokenApi.updatesecurityHaloRunV1alpha1PersonalAccessToken']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * SecurityHaloRunV1alpha1PersonalAccessTokenApi - factory interface * @export */ -export const SecurityHaloRunV1alpha1PersonalAccessTokenApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = - SecurityHaloRunV1alpha1PersonalAccessTokenApiFp(configuration); - return { - /** - * Create security.halo.run/v1alpha1/PersonalAccessToken - * @param {SecurityHaloRunV1alpha1PersonalAccessTokenApiCreatesecurityHaloRunV1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createsecurityHaloRunV1alpha1PersonalAccessToken( - requestParameters: SecurityHaloRunV1alpha1PersonalAccessTokenApiCreatesecurityHaloRunV1alpha1PersonalAccessTokenRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createsecurityHaloRunV1alpha1PersonalAccessToken( - requestParameters.personalAccessToken, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Delete security.halo.run/v1alpha1/PersonalAccessToken - * @param {SecurityHaloRunV1alpha1PersonalAccessTokenApiDeletesecurityHaloRunV1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletesecurityHaloRunV1alpha1PersonalAccessToken( - requestParameters: SecurityHaloRunV1alpha1PersonalAccessTokenApiDeletesecurityHaloRunV1alpha1PersonalAccessTokenRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletesecurityHaloRunV1alpha1PersonalAccessToken( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Get security.halo.run/v1alpha1/PersonalAccessToken - * @param {SecurityHaloRunV1alpha1PersonalAccessTokenApiGetsecurityHaloRunV1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getsecurityHaloRunV1alpha1PersonalAccessToken( - requestParameters: SecurityHaloRunV1alpha1PersonalAccessTokenApiGetsecurityHaloRunV1alpha1PersonalAccessTokenRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getsecurityHaloRunV1alpha1PersonalAccessToken( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * List security.halo.run/v1alpha1/PersonalAccessToken - * @param {SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRunV1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listsecurityHaloRunV1alpha1PersonalAccessToken( - requestParameters: SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRunV1alpha1PersonalAccessTokenRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listsecurityHaloRunV1alpha1PersonalAccessToken( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update security.halo.run/v1alpha1/PersonalAccessToken - * @param {SecurityHaloRunV1alpha1PersonalAccessTokenApiUpdatesecurityHaloRunV1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatesecurityHaloRunV1alpha1PersonalAccessToken( - requestParameters: SecurityHaloRunV1alpha1PersonalAccessTokenApiUpdatesecurityHaloRunV1alpha1PersonalAccessTokenRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatesecurityHaloRunV1alpha1PersonalAccessToken( - requestParameters.name, - requestParameters.personalAccessToken, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const SecurityHaloRunV1alpha1PersonalAccessTokenApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = SecurityHaloRunV1alpha1PersonalAccessTokenApiFp(configuration) + return { + /** + * Create security.halo.run/v1alpha1/PersonalAccessToken + * @param {SecurityHaloRunV1alpha1PersonalAccessTokenApiCreatesecurityHaloRunV1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createsecurityHaloRunV1alpha1PersonalAccessToken(requestParameters: SecurityHaloRunV1alpha1PersonalAccessTokenApiCreatesecurityHaloRunV1alpha1PersonalAccessTokenRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createsecurityHaloRunV1alpha1PersonalAccessToken(requestParameters.personalAccessToken, options).then((request) => request(axios, basePath)); + }, + /** + * Delete security.halo.run/v1alpha1/PersonalAccessToken + * @param {SecurityHaloRunV1alpha1PersonalAccessTokenApiDeletesecurityHaloRunV1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletesecurityHaloRunV1alpha1PersonalAccessToken(requestParameters: SecurityHaloRunV1alpha1PersonalAccessTokenApiDeletesecurityHaloRunV1alpha1PersonalAccessTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletesecurityHaloRunV1alpha1PersonalAccessToken(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get security.halo.run/v1alpha1/PersonalAccessToken + * @param {SecurityHaloRunV1alpha1PersonalAccessTokenApiGetsecurityHaloRunV1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getsecurityHaloRunV1alpha1PersonalAccessToken(requestParameters: SecurityHaloRunV1alpha1PersonalAccessTokenApiGetsecurityHaloRunV1alpha1PersonalAccessTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getsecurityHaloRunV1alpha1PersonalAccessToken(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List security.halo.run/v1alpha1/PersonalAccessToken + * @param {SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRunV1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listsecurityHaloRunV1alpha1PersonalAccessToken(requestParameters: SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRunV1alpha1PersonalAccessTokenRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listsecurityHaloRunV1alpha1PersonalAccessToken(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update security.halo.run/v1alpha1/PersonalAccessToken + * @param {SecurityHaloRunV1alpha1PersonalAccessTokenApiUpdatesecurityHaloRunV1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatesecurityHaloRunV1alpha1PersonalAccessToken(requestParameters: SecurityHaloRunV1alpha1PersonalAccessTokenApiUpdatesecurityHaloRunV1alpha1PersonalAccessTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatesecurityHaloRunV1alpha1PersonalAccessToken(requestParameters.name, requestParameters.personalAccessToken, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -638,12 +400,12 @@ export const SecurityHaloRunV1alpha1PersonalAccessTokenApiFactory = function ( * @interface SecurityHaloRunV1alpha1PersonalAccessTokenApiCreatesecurityHaloRunV1alpha1PersonalAccessTokenRequest */ export interface SecurityHaloRunV1alpha1PersonalAccessTokenApiCreatesecurityHaloRunV1alpha1PersonalAccessTokenRequest { - /** - * Fresh personalaccesstoken - * @type {PersonalAccessToken} - * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApiCreatesecurityHaloRunV1alpha1PersonalAccessToken - */ - readonly personalAccessToken?: PersonalAccessToken; + /** + * Fresh personalaccesstoken + * @type {PersonalAccessToken} + * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApiCreatesecurityHaloRunV1alpha1PersonalAccessToken + */ + readonly personalAccessToken?: PersonalAccessToken } /** @@ -652,12 +414,12 @@ export interface SecurityHaloRunV1alpha1PersonalAccessTokenApiCreatesecurityHalo * @interface SecurityHaloRunV1alpha1PersonalAccessTokenApiDeletesecurityHaloRunV1alpha1PersonalAccessTokenRequest */ export interface SecurityHaloRunV1alpha1PersonalAccessTokenApiDeletesecurityHaloRunV1alpha1PersonalAccessTokenRequest { - /** - * Name of personalaccesstoken - * @type {string} - * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApiDeletesecurityHaloRunV1alpha1PersonalAccessToken - */ - readonly name: string; + /** + * Name of personalaccesstoken + * @type {string} + * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApiDeletesecurityHaloRunV1alpha1PersonalAccessToken + */ + readonly name: string } /** @@ -666,12 +428,12 @@ export interface SecurityHaloRunV1alpha1PersonalAccessTokenApiDeletesecurityHalo * @interface SecurityHaloRunV1alpha1PersonalAccessTokenApiGetsecurityHaloRunV1alpha1PersonalAccessTokenRequest */ export interface SecurityHaloRunV1alpha1PersonalAccessTokenApiGetsecurityHaloRunV1alpha1PersonalAccessTokenRequest { - /** - * Name of personalaccesstoken - * @type {string} - * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApiGetsecurityHaloRunV1alpha1PersonalAccessToken - */ - readonly name: string; + /** + * Name of personalaccesstoken + * @type {string} + * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApiGetsecurityHaloRunV1alpha1PersonalAccessToken + */ + readonly name: string } /** @@ -680,40 +442,40 @@ export interface SecurityHaloRunV1alpha1PersonalAccessTokenApiGetsecurityHaloRun * @interface SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRunV1alpha1PersonalAccessTokenRequest */ export interface SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRunV1alpha1PersonalAccessTokenRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRunV1alpha1PersonalAccessToken - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRunV1alpha1PersonalAccessToken + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRunV1alpha1PersonalAccessToken - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRunV1alpha1PersonalAccessToken + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRunV1alpha1PersonalAccessToken - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRunV1alpha1PersonalAccessToken + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRunV1alpha1PersonalAccessToken - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRunV1alpha1PersonalAccessToken + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRunV1alpha1PersonalAccessToken - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRunV1alpha1PersonalAccessToken + */ + readonly sort?: Array } /** @@ -722,19 +484,19 @@ export interface SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRu * @interface SecurityHaloRunV1alpha1PersonalAccessTokenApiUpdatesecurityHaloRunV1alpha1PersonalAccessTokenRequest */ export interface SecurityHaloRunV1alpha1PersonalAccessTokenApiUpdatesecurityHaloRunV1alpha1PersonalAccessTokenRequest { - /** - * Name of personalaccesstoken - * @type {string} - * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApiUpdatesecurityHaloRunV1alpha1PersonalAccessToken - */ - readonly name: string; + /** + * Name of personalaccesstoken + * @type {string} + * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApiUpdatesecurityHaloRunV1alpha1PersonalAccessToken + */ + readonly name: string - /** - * Updated personalaccesstoken - * @type {PersonalAccessToken} - * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApiUpdatesecurityHaloRunV1alpha1PersonalAccessToken - */ - readonly personalAccessToken?: PersonalAccessToken; + /** + * Updated personalaccesstoken + * @type {PersonalAccessToken} + * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApiUpdatesecurityHaloRunV1alpha1PersonalAccessToken + */ + readonly personalAccessToken?: PersonalAccessToken } /** @@ -744,103 +506,59 @@ export interface SecurityHaloRunV1alpha1PersonalAccessTokenApiUpdatesecurityHalo * @extends {BaseAPI} */ export class SecurityHaloRunV1alpha1PersonalAccessTokenApi extends BaseAPI { - /** - * Create security.halo.run/v1alpha1/PersonalAccessToken - * @param {SecurityHaloRunV1alpha1PersonalAccessTokenApiCreatesecurityHaloRunV1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApi - */ - public createsecurityHaloRunV1alpha1PersonalAccessToken( - requestParameters: SecurityHaloRunV1alpha1PersonalAccessTokenApiCreatesecurityHaloRunV1alpha1PersonalAccessTokenRequest = {}, - options?: AxiosRequestConfig - ) { - return SecurityHaloRunV1alpha1PersonalAccessTokenApiFp(this.configuration) - .createsecurityHaloRunV1alpha1PersonalAccessToken( - requestParameters.personalAccessToken, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create security.halo.run/v1alpha1/PersonalAccessToken + * @param {SecurityHaloRunV1alpha1PersonalAccessTokenApiCreatesecurityHaloRunV1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApi + */ + public createsecurityHaloRunV1alpha1PersonalAccessToken(requestParameters: SecurityHaloRunV1alpha1PersonalAccessTokenApiCreatesecurityHaloRunV1alpha1PersonalAccessTokenRequest = {}, options?: RawAxiosRequestConfig) { + return SecurityHaloRunV1alpha1PersonalAccessTokenApiFp(this.configuration).createsecurityHaloRunV1alpha1PersonalAccessToken(requestParameters.personalAccessToken, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete security.halo.run/v1alpha1/PersonalAccessToken - * @param {SecurityHaloRunV1alpha1PersonalAccessTokenApiDeletesecurityHaloRunV1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApi - */ - public deletesecurityHaloRunV1alpha1PersonalAccessToken( - requestParameters: SecurityHaloRunV1alpha1PersonalAccessTokenApiDeletesecurityHaloRunV1alpha1PersonalAccessTokenRequest, - options?: AxiosRequestConfig - ) { - return SecurityHaloRunV1alpha1PersonalAccessTokenApiFp(this.configuration) - .deletesecurityHaloRunV1alpha1PersonalAccessToken( - requestParameters.name, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete security.halo.run/v1alpha1/PersonalAccessToken + * @param {SecurityHaloRunV1alpha1PersonalAccessTokenApiDeletesecurityHaloRunV1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApi + */ + public deletesecurityHaloRunV1alpha1PersonalAccessToken(requestParameters: SecurityHaloRunV1alpha1PersonalAccessTokenApiDeletesecurityHaloRunV1alpha1PersonalAccessTokenRequest, options?: RawAxiosRequestConfig) { + return SecurityHaloRunV1alpha1PersonalAccessTokenApiFp(this.configuration).deletesecurityHaloRunV1alpha1PersonalAccessToken(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get security.halo.run/v1alpha1/PersonalAccessToken - * @param {SecurityHaloRunV1alpha1PersonalAccessTokenApiGetsecurityHaloRunV1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApi - */ - public getsecurityHaloRunV1alpha1PersonalAccessToken( - requestParameters: SecurityHaloRunV1alpha1PersonalAccessTokenApiGetsecurityHaloRunV1alpha1PersonalAccessTokenRequest, - options?: AxiosRequestConfig - ) { - return SecurityHaloRunV1alpha1PersonalAccessTokenApiFp(this.configuration) - .getsecurityHaloRunV1alpha1PersonalAccessToken( - requestParameters.name, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get security.halo.run/v1alpha1/PersonalAccessToken + * @param {SecurityHaloRunV1alpha1PersonalAccessTokenApiGetsecurityHaloRunV1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApi + */ + public getsecurityHaloRunV1alpha1PersonalAccessToken(requestParameters: SecurityHaloRunV1alpha1PersonalAccessTokenApiGetsecurityHaloRunV1alpha1PersonalAccessTokenRequest, options?: RawAxiosRequestConfig) { + return SecurityHaloRunV1alpha1PersonalAccessTokenApiFp(this.configuration).getsecurityHaloRunV1alpha1PersonalAccessToken(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List security.halo.run/v1alpha1/PersonalAccessToken - * @param {SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRunV1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApi - */ - public listsecurityHaloRunV1alpha1PersonalAccessToken( - requestParameters: SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRunV1alpha1PersonalAccessTokenRequest = {}, - options?: AxiosRequestConfig - ) { - return SecurityHaloRunV1alpha1PersonalAccessTokenApiFp(this.configuration) - .listsecurityHaloRunV1alpha1PersonalAccessToken( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List security.halo.run/v1alpha1/PersonalAccessToken + * @param {SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRunV1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApi + */ + public listsecurityHaloRunV1alpha1PersonalAccessToken(requestParameters: SecurityHaloRunV1alpha1PersonalAccessTokenApiListsecurityHaloRunV1alpha1PersonalAccessTokenRequest = {}, options?: RawAxiosRequestConfig) { + return SecurityHaloRunV1alpha1PersonalAccessTokenApiFp(this.configuration).listsecurityHaloRunV1alpha1PersonalAccessToken(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update security.halo.run/v1alpha1/PersonalAccessToken - * @param {SecurityHaloRunV1alpha1PersonalAccessTokenApiUpdatesecurityHaloRunV1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApi - */ - public updatesecurityHaloRunV1alpha1PersonalAccessToken( - requestParameters: SecurityHaloRunV1alpha1PersonalAccessTokenApiUpdatesecurityHaloRunV1alpha1PersonalAccessTokenRequest, - options?: AxiosRequestConfig - ) { - return SecurityHaloRunV1alpha1PersonalAccessTokenApiFp(this.configuration) - .updatesecurityHaloRunV1alpha1PersonalAccessToken( - requestParameters.name, - requestParameters.personalAccessToken, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update security.halo.run/v1alpha1/PersonalAccessToken + * @param {SecurityHaloRunV1alpha1PersonalAccessTokenApiUpdatesecurityHaloRunV1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SecurityHaloRunV1alpha1PersonalAccessTokenApi + */ + public updatesecurityHaloRunV1alpha1PersonalAccessToken(requestParameters: SecurityHaloRunV1alpha1PersonalAccessTokenApiUpdatesecurityHaloRunV1alpha1PersonalAccessTokenRequest, options?: RawAxiosRequestConfig) { + return SecurityHaloRunV1alpha1PersonalAccessTokenApiFp(this.configuration).updatesecurityHaloRunV1alpha1PersonalAccessToken(requestParameters.name, requestParameters.personalAccessToken, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/storage-halo-run-v1alpha1-attachment-api.ts b/ui/packages/api-client/src/api/storage-halo-run-v1alpha1-attachment-api.ts index db7ee159a..d0234bce0 100644 --- a/ui/packages/api-client/src/api/storage-halo-run-v1alpha1-attachment-api.ts +++ b/ui/packages/api-client/src/api/storage-halo-run-v1alpha1-attachment-api.ts @@ -5,599 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Attachment } from "../models"; +import { Attachment } from '../models'; // @ts-ignore -import { AttachmentList } from "../models"; +import { AttachmentList } from '../models'; /** * StorageHaloRunV1alpha1AttachmentApi - axios parameter creator * @export */ -export const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create storage.halo.run/v1alpha1/Attachment - * @param {Attachment} [attachment] Fresh attachment - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createstorageHaloRunV1alpha1Attachment: async ( - attachment?: Attachment, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create storage.halo.run/v1alpha1/Attachment + * @param {Attachment} [attachment] Fresh attachment + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createstorageHaloRunV1alpha1Attachment: async (attachment?: Attachment, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - attachment, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete storage.halo.run/v1alpha1/Attachment - * @param {string} name Name of attachment - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletestorageHaloRunV1alpha1Attachment: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletestorageHaloRunV1alpha1Attachment", "name", name); - const localVarPath = - `/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(attachment, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete storage.halo.run/v1alpha1/Attachment + * @param {string} name Name of attachment + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletestorageHaloRunV1alpha1Attachment: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletestorageHaloRunV1alpha1Attachment', 'name', name) + const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get storage.halo.run/v1alpha1/Attachment - * @param {string} name Name of attachment - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getstorageHaloRunV1alpha1Attachment: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getstorageHaloRunV1alpha1Attachment", "name", name); - const localVarPath = - `/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get storage.halo.run/v1alpha1/Attachment + * @param {string} name Name of attachment + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getstorageHaloRunV1alpha1Attachment: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getstorageHaloRunV1alpha1Attachment', 'name', name) + const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List storage.halo.run/v1alpha1/Attachment - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - liststorageHaloRunV1alpha1Attachment: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List storage.halo.run/v1alpha1/Attachment + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liststorageHaloRunV1alpha1Attachment: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update storage.halo.run/v1alpha1/Attachment - * @param {string} name Name of attachment - * @param {Attachment} [attachment] Updated attachment - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatestorageHaloRunV1alpha1Attachment: async ( - name: string, - attachment?: Attachment, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatestorageHaloRunV1alpha1Attachment", "name", name); - const localVarPath = - `/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update storage.halo.run/v1alpha1/Attachment + * @param {string} name Name of attachment + * @param {Attachment} [attachment] Updated attachment + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatestorageHaloRunV1alpha1Attachment: async (name: string, attachment?: Attachment, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatestorageHaloRunV1alpha1Attachment', 'name', name) + const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - attachment, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(attachment, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * StorageHaloRunV1alpha1AttachmentApi - functional programming interface * @export */ -export const StorageHaloRunV1alpha1AttachmentApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration); - return { - /** - * Create storage.halo.run/v1alpha1/Attachment - * @param {Attachment} [attachment] Fresh attachment - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createstorageHaloRunV1alpha1Attachment( - attachment?: Attachment, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createstorageHaloRunV1alpha1Attachment( - attachment, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete storage.halo.run/v1alpha1/Attachment - * @param {string} name Name of attachment - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletestorageHaloRunV1alpha1Attachment( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletestorageHaloRunV1alpha1Attachment( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get storage.halo.run/v1alpha1/Attachment - * @param {string} name Name of attachment - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getstorageHaloRunV1alpha1Attachment( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getstorageHaloRunV1alpha1Attachment( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List storage.halo.run/v1alpha1/Attachment - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async liststorageHaloRunV1alpha1Attachment( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update storage.halo.run/v1alpha1/Attachment - * @param {string} name Name of attachment - * @param {Attachment} [attachment] Updated attachment - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatestorageHaloRunV1alpha1Attachment( - name: string, - attachment?: Attachment, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1Attachment( - name, - attachment, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const StorageHaloRunV1alpha1AttachmentApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration) + return { + /** + * Create storage.halo.run/v1alpha1/Attachment + * @param {Attachment} [attachment] Fresh attachment + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createstorageHaloRunV1alpha1Attachment(attachment?: Attachment, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createstorageHaloRunV1alpha1Attachment(attachment, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StorageHaloRunV1alpha1AttachmentApi.createstorageHaloRunV1alpha1Attachment']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete storage.halo.run/v1alpha1/Attachment + * @param {string} name Name of attachment + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletestorageHaloRunV1alpha1Attachment(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletestorageHaloRunV1alpha1Attachment(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StorageHaloRunV1alpha1AttachmentApi.deletestorageHaloRunV1alpha1Attachment']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get storage.halo.run/v1alpha1/Attachment + * @param {string} name Name of attachment + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getstorageHaloRunV1alpha1Attachment(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getstorageHaloRunV1alpha1Attachment(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StorageHaloRunV1alpha1AttachmentApi.getstorageHaloRunV1alpha1Attachment']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List storage.halo.run/v1alpha1/Attachment + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async liststorageHaloRunV1alpha1Attachment(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StorageHaloRunV1alpha1AttachmentApi.liststorageHaloRunV1alpha1Attachment']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update storage.halo.run/v1alpha1/Attachment + * @param {string} name Name of attachment + * @param {Attachment} [attachment] Updated attachment + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatestorageHaloRunV1alpha1Attachment(name: string, attachment?: Attachment, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1Attachment(name, attachment, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StorageHaloRunV1alpha1AttachmentApi.updatestorageHaloRunV1alpha1Attachment']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * StorageHaloRunV1alpha1AttachmentApi - factory interface * @export */ -export const StorageHaloRunV1alpha1AttachmentApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = StorageHaloRunV1alpha1AttachmentApiFp(configuration); - return { - /** - * Create storage.halo.run/v1alpha1/Attachment - * @param {StorageHaloRunV1alpha1AttachmentApiCreatestorageHaloRunV1alpha1AttachmentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createstorageHaloRunV1alpha1Attachment( - requestParameters: StorageHaloRunV1alpha1AttachmentApiCreatestorageHaloRunV1alpha1AttachmentRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createstorageHaloRunV1alpha1Attachment( - requestParameters.attachment, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Delete storage.halo.run/v1alpha1/Attachment - * @param {StorageHaloRunV1alpha1AttachmentApiDeletestorageHaloRunV1alpha1AttachmentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletestorageHaloRunV1alpha1Attachment( - requestParameters: StorageHaloRunV1alpha1AttachmentApiDeletestorageHaloRunV1alpha1AttachmentRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletestorageHaloRunV1alpha1Attachment(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get storage.halo.run/v1alpha1/Attachment - * @param {StorageHaloRunV1alpha1AttachmentApiGetstorageHaloRunV1alpha1AttachmentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getstorageHaloRunV1alpha1Attachment( - requestParameters: StorageHaloRunV1alpha1AttachmentApiGetstorageHaloRunV1alpha1AttachmentRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getstorageHaloRunV1alpha1Attachment(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List storage.halo.run/v1alpha1/Attachment - * @param {StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1AttachmentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - liststorageHaloRunV1alpha1Attachment( - requestParameters: StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1AttachmentRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .liststorageHaloRunV1alpha1Attachment( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update storage.halo.run/v1alpha1/Attachment - * @param {StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1AttachmentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatestorageHaloRunV1alpha1Attachment( - requestParameters: StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1AttachmentRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatestorageHaloRunV1alpha1Attachment( - requestParameters.name, - requestParameters.attachment, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const StorageHaloRunV1alpha1AttachmentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = StorageHaloRunV1alpha1AttachmentApiFp(configuration) + return { + /** + * Create storage.halo.run/v1alpha1/Attachment + * @param {StorageHaloRunV1alpha1AttachmentApiCreatestorageHaloRunV1alpha1AttachmentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createstorageHaloRunV1alpha1Attachment(requestParameters: StorageHaloRunV1alpha1AttachmentApiCreatestorageHaloRunV1alpha1AttachmentRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createstorageHaloRunV1alpha1Attachment(requestParameters.attachment, options).then((request) => request(axios, basePath)); + }, + /** + * Delete storage.halo.run/v1alpha1/Attachment + * @param {StorageHaloRunV1alpha1AttachmentApiDeletestorageHaloRunV1alpha1AttachmentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletestorageHaloRunV1alpha1Attachment(requestParameters: StorageHaloRunV1alpha1AttachmentApiDeletestorageHaloRunV1alpha1AttachmentRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletestorageHaloRunV1alpha1Attachment(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get storage.halo.run/v1alpha1/Attachment + * @param {StorageHaloRunV1alpha1AttachmentApiGetstorageHaloRunV1alpha1AttachmentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getstorageHaloRunV1alpha1Attachment(requestParameters: StorageHaloRunV1alpha1AttachmentApiGetstorageHaloRunV1alpha1AttachmentRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getstorageHaloRunV1alpha1Attachment(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List storage.halo.run/v1alpha1/Attachment + * @param {StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1AttachmentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liststorageHaloRunV1alpha1Attachment(requestParameters: StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1AttachmentRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.liststorageHaloRunV1alpha1Attachment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update storage.halo.run/v1alpha1/Attachment + * @param {StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1AttachmentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatestorageHaloRunV1alpha1Attachment(requestParameters: StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1AttachmentRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -606,12 +400,12 @@ export const StorageHaloRunV1alpha1AttachmentApiFactory = function ( * @interface StorageHaloRunV1alpha1AttachmentApiCreatestorageHaloRunV1alpha1AttachmentRequest */ export interface StorageHaloRunV1alpha1AttachmentApiCreatestorageHaloRunV1alpha1AttachmentRequest { - /** - * Fresh attachment - * @type {Attachment} - * @memberof StorageHaloRunV1alpha1AttachmentApiCreatestorageHaloRunV1alpha1Attachment - */ - readonly attachment?: Attachment; + /** + * Fresh attachment + * @type {Attachment} + * @memberof StorageHaloRunV1alpha1AttachmentApiCreatestorageHaloRunV1alpha1Attachment + */ + readonly attachment?: Attachment } /** @@ -620,12 +414,12 @@ export interface StorageHaloRunV1alpha1AttachmentApiCreatestorageHaloRunV1alpha1 * @interface StorageHaloRunV1alpha1AttachmentApiDeletestorageHaloRunV1alpha1AttachmentRequest */ export interface StorageHaloRunV1alpha1AttachmentApiDeletestorageHaloRunV1alpha1AttachmentRequest { - /** - * Name of attachment - * @type {string} - * @memberof StorageHaloRunV1alpha1AttachmentApiDeletestorageHaloRunV1alpha1Attachment - */ - readonly name: string; + /** + * Name of attachment + * @type {string} + * @memberof StorageHaloRunV1alpha1AttachmentApiDeletestorageHaloRunV1alpha1Attachment + */ + readonly name: string } /** @@ -634,12 +428,12 @@ export interface StorageHaloRunV1alpha1AttachmentApiDeletestorageHaloRunV1alpha1 * @interface StorageHaloRunV1alpha1AttachmentApiGetstorageHaloRunV1alpha1AttachmentRequest */ export interface StorageHaloRunV1alpha1AttachmentApiGetstorageHaloRunV1alpha1AttachmentRequest { - /** - * Name of attachment - * @type {string} - * @memberof StorageHaloRunV1alpha1AttachmentApiGetstorageHaloRunV1alpha1Attachment - */ - readonly name: string; + /** + * Name of attachment + * @type {string} + * @memberof StorageHaloRunV1alpha1AttachmentApiGetstorageHaloRunV1alpha1Attachment + */ + readonly name: string } /** @@ -648,40 +442,40 @@ export interface StorageHaloRunV1alpha1AttachmentApiGetstorageHaloRunV1alpha1Att * @interface StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1AttachmentRequest */ export interface StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1AttachmentRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment + */ + readonly sort?: Array } /** @@ -690,19 +484,19 @@ export interface StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1At * @interface StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1AttachmentRequest */ export interface StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1AttachmentRequest { - /** - * Name of attachment - * @type {string} - * @memberof StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1Attachment - */ - readonly name: string; + /** + * Name of attachment + * @type {string} + * @memberof StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1Attachment + */ + readonly name: string - /** - * Updated attachment - * @type {Attachment} - * @memberof StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1Attachment - */ - readonly attachment?: Attachment; + /** + * Updated attachment + * @type {Attachment} + * @memberof StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1Attachment + */ + readonly attachment?: Attachment } /** @@ -712,97 +506,59 @@ export interface StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1 * @extends {BaseAPI} */ export class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI { - /** - * Create storage.halo.run/v1alpha1/Attachment - * @param {StorageHaloRunV1alpha1AttachmentApiCreatestorageHaloRunV1alpha1AttachmentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StorageHaloRunV1alpha1AttachmentApi - */ - public createstorageHaloRunV1alpha1Attachment( - requestParameters: StorageHaloRunV1alpha1AttachmentApiCreatestorageHaloRunV1alpha1AttachmentRequest = {}, - options?: AxiosRequestConfig - ) { - return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration) - .createstorageHaloRunV1alpha1Attachment( - requestParameters.attachment, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create storage.halo.run/v1alpha1/Attachment + * @param {StorageHaloRunV1alpha1AttachmentApiCreatestorageHaloRunV1alpha1AttachmentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StorageHaloRunV1alpha1AttachmentApi + */ + public createstorageHaloRunV1alpha1Attachment(requestParameters: StorageHaloRunV1alpha1AttachmentApiCreatestorageHaloRunV1alpha1AttachmentRequest = {}, options?: RawAxiosRequestConfig) { + return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).createstorageHaloRunV1alpha1Attachment(requestParameters.attachment, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete storage.halo.run/v1alpha1/Attachment - * @param {StorageHaloRunV1alpha1AttachmentApiDeletestorageHaloRunV1alpha1AttachmentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StorageHaloRunV1alpha1AttachmentApi - */ - public deletestorageHaloRunV1alpha1Attachment( - requestParameters: StorageHaloRunV1alpha1AttachmentApiDeletestorageHaloRunV1alpha1AttachmentRequest, - options?: AxiosRequestConfig - ) { - return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration) - .deletestorageHaloRunV1alpha1Attachment(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete storage.halo.run/v1alpha1/Attachment + * @param {StorageHaloRunV1alpha1AttachmentApiDeletestorageHaloRunV1alpha1AttachmentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StorageHaloRunV1alpha1AttachmentApi + */ + public deletestorageHaloRunV1alpha1Attachment(requestParameters: StorageHaloRunV1alpha1AttachmentApiDeletestorageHaloRunV1alpha1AttachmentRequest, options?: RawAxiosRequestConfig) { + return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).deletestorageHaloRunV1alpha1Attachment(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get storage.halo.run/v1alpha1/Attachment - * @param {StorageHaloRunV1alpha1AttachmentApiGetstorageHaloRunV1alpha1AttachmentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StorageHaloRunV1alpha1AttachmentApi - */ - public getstorageHaloRunV1alpha1Attachment( - requestParameters: StorageHaloRunV1alpha1AttachmentApiGetstorageHaloRunV1alpha1AttachmentRequest, - options?: AxiosRequestConfig - ) { - return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration) - .getstorageHaloRunV1alpha1Attachment(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get storage.halo.run/v1alpha1/Attachment + * @param {StorageHaloRunV1alpha1AttachmentApiGetstorageHaloRunV1alpha1AttachmentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StorageHaloRunV1alpha1AttachmentApi + */ + public getstorageHaloRunV1alpha1Attachment(requestParameters: StorageHaloRunV1alpha1AttachmentApiGetstorageHaloRunV1alpha1AttachmentRequest, options?: RawAxiosRequestConfig) { + return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).getstorageHaloRunV1alpha1Attachment(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List storage.halo.run/v1alpha1/Attachment - * @param {StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1AttachmentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StorageHaloRunV1alpha1AttachmentApi - */ - public liststorageHaloRunV1alpha1Attachment( - requestParameters: StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1AttachmentRequest = {}, - options?: AxiosRequestConfig - ) { - return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration) - .liststorageHaloRunV1alpha1Attachment( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List storage.halo.run/v1alpha1/Attachment + * @param {StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1AttachmentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StorageHaloRunV1alpha1AttachmentApi + */ + public liststorageHaloRunV1alpha1Attachment(requestParameters: StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1AttachmentRequest = {}, options?: RawAxiosRequestConfig) { + return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).liststorageHaloRunV1alpha1Attachment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update storage.halo.run/v1alpha1/Attachment - * @param {StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1AttachmentRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StorageHaloRunV1alpha1AttachmentApi - */ - public updatestorageHaloRunV1alpha1Attachment( - requestParameters: StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1AttachmentRequest, - options?: AxiosRequestConfig - ) { - return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration) - .updatestorageHaloRunV1alpha1Attachment( - requestParameters.name, - requestParameters.attachment, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update storage.halo.run/v1alpha1/Attachment + * @param {StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1AttachmentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StorageHaloRunV1alpha1AttachmentApi + */ + public updatestorageHaloRunV1alpha1Attachment(requestParameters: StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1AttachmentRequest, options?: RawAxiosRequestConfig) { + return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/storage-halo-run-v1alpha1-group-api.ts b/ui/packages/api-client/src/api/storage-halo-run-v1alpha1-group-api.ts index ae4548eb3..b95cc2da4 100644 --- a/ui/packages/api-client/src/api/storage-halo-run-v1alpha1-group-api.ts +++ b/ui/packages/api-client/src/api/storage-halo-run-v1alpha1-group-api.ts @@ -5,596 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Group } from "../models"; +import { Group } from '../models'; // @ts-ignore -import { GroupList } from "../models"; +import { GroupList } from '../models'; /** * StorageHaloRunV1alpha1GroupApi - axios parameter creator * @export */ -export const StorageHaloRunV1alpha1GroupApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create storage.halo.run/v1alpha1/Group - * @param {Group} [group] Fresh group - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createstorageHaloRunV1alpha1Group: async ( - group?: Group, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/storage.halo.run/v1alpha1/groups`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const StorageHaloRunV1alpha1GroupApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create storage.halo.run/v1alpha1/Group + * @param {Group} [group] Fresh group + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createstorageHaloRunV1alpha1Group: async (group?: Group, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/storage.halo.run/v1alpha1/groups`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - group, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete storage.halo.run/v1alpha1/Group - * @param {string} name Name of group - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletestorageHaloRunV1alpha1Group: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletestorageHaloRunV1alpha1Group", "name", name); - const localVarPath = - `/apis/storage.halo.run/v1alpha1/groups/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(group, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete storage.halo.run/v1alpha1/Group + * @param {string} name Name of group + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletestorageHaloRunV1alpha1Group: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletestorageHaloRunV1alpha1Group', 'name', name) + const localVarPath = `/apis/storage.halo.run/v1alpha1/groups/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get storage.halo.run/v1alpha1/Group - * @param {string} name Name of group - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getstorageHaloRunV1alpha1Group: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getstorageHaloRunV1alpha1Group", "name", name); - const localVarPath = - `/apis/storage.halo.run/v1alpha1/groups/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get storage.halo.run/v1alpha1/Group + * @param {string} name Name of group + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getstorageHaloRunV1alpha1Group: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getstorageHaloRunV1alpha1Group', 'name', name) + const localVarPath = `/apis/storage.halo.run/v1alpha1/groups/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List storage.halo.run/v1alpha1/Group - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - liststorageHaloRunV1alpha1Group: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/storage.halo.run/v1alpha1/groups`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List storage.halo.run/v1alpha1/Group + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liststorageHaloRunV1alpha1Group: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/storage.halo.run/v1alpha1/groups`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update storage.halo.run/v1alpha1/Group - * @param {string} name Name of group - * @param {Group} [group] Updated group - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatestorageHaloRunV1alpha1Group: async ( - name: string, - group?: Group, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatestorageHaloRunV1alpha1Group", "name", name); - const localVarPath = - `/apis/storage.halo.run/v1alpha1/groups/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update storage.halo.run/v1alpha1/Group + * @param {string} name Name of group + * @param {Group} [group] Updated group + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatestorageHaloRunV1alpha1Group: async (name: string, group?: Group, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatestorageHaloRunV1alpha1Group', 'name', name) + const localVarPath = `/apis/storage.halo.run/v1alpha1/groups/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - group, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(group, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * StorageHaloRunV1alpha1GroupApi - functional programming interface * @export */ -export const StorageHaloRunV1alpha1GroupApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - StorageHaloRunV1alpha1GroupApiAxiosParamCreator(configuration); - return { - /** - * Create storage.halo.run/v1alpha1/Group - * @param {Group} [group] Fresh group - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createstorageHaloRunV1alpha1Group( - group?: Group, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createstorageHaloRunV1alpha1Group( - group, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete storage.halo.run/v1alpha1/Group - * @param {string} name Name of group - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletestorageHaloRunV1alpha1Group( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletestorageHaloRunV1alpha1Group( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get storage.halo.run/v1alpha1/Group - * @param {string} name Name of group - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getstorageHaloRunV1alpha1Group( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getstorageHaloRunV1alpha1Group( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List storage.halo.run/v1alpha1/Group - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async liststorageHaloRunV1alpha1Group( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Group( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update storage.halo.run/v1alpha1/Group - * @param {string} name Name of group - * @param {Group} [group] Updated group - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatestorageHaloRunV1alpha1Group( - name: string, - group?: Group, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1Group( - name, - group, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const StorageHaloRunV1alpha1GroupApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = StorageHaloRunV1alpha1GroupApiAxiosParamCreator(configuration) + return { + /** + * Create storage.halo.run/v1alpha1/Group + * @param {Group} [group] Fresh group + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createstorageHaloRunV1alpha1Group(group?: Group, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createstorageHaloRunV1alpha1Group(group, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StorageHaloRunV1alpha1GroupApi.createstorageHaloRunV1alpha1Group']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete storage.halo.run/v1alpha1/Group + * @param {string} name Name of group + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletestorageHaloRunV1alpha1Group(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletestorageHaloRunV1alpha1Group(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StorageHaloRunV1alpha1GroupApi.deletestorageHaloRunV1alpha1Group']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get storage.halo.run/v1alpha1/Group + * @param {string} name Name of group + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getstorageHaloRunV1alpha1Group(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getstorageHaloRunV1alpha1Group(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StorageHaloRunV1alpha1GroupApi.getstorageHaloRunV1alpha1Group']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List storage.halo.run/v1alpha1/Group + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async liststorageHaloRunV1alpha1Group(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Group(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StorageHaloRunV1alpha1GroupApi.liststorageHaloRunV1alpha1Group']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update storage.halo.run/v1alpha1/Group + * @param {string} name Name of group + * @param {Group} [group] Updated group + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatestorageHaloRunV1alpha1Group(name: string, group?: Group, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1Group(name, group, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StorageHaloRunV1alpha1GroupApi.updatestorageHaloRunV1alpha1Group']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * StorageHaloRunV1alpha1GroupApi - factory interface * @export */ -export const StorageHaloRunV1alpha1GroupApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = StorageHaloRunV1alpha1GroupApiFp(configuration); - return { - /** - * Create storage.halo.run/v1alpha1/Group - * @param {StorageHaloRunV1alpha1GroupApiCreatestorageHaloRunV1alpha1GroupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createstorageHaloRunV1alpha1Group( - requestParameters: StorageHaloRunV1alpha1GroupApiCreatestorageHaloRunV1alpha1GroupRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createstorageHaloRunV1alpha1Group(requestParameters.group, options) - .then((request) => request(axios, basePath)); - }, - /** - * Delete storage.halo.run/v1alpha1/Group - * @param {StorageHaloRunV1alpha1GroupApiDeletestorageHaloRunV1alpha1GroupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletestorageHaloRunV1alpha1Group( - requestParameters: StorageHaloRunV1alpha1GroupApiDeletestorageHaloRunV1alpha1GroupRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletestorageHaloRunV1alpha1Group(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get storage.halo.run/v1alpha1/Group - * @param {StorageHaloRunV1alpha1GroupApiGetstorageHaloRunV1alpha1GroupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getstorageHaloRunV1alpha1Group( - requestParameters: StorageHaloRunV1alpha1GroupApiGetstorageHaloRunV1alpha1GroupRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getstorageHaloRunV1alpha1Group(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List storage.halo.run/v1alpha1/Group - * @param {StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1GroupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - liststorageHaloRunV1alpha1Group( - requestParameters: StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1GroupRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .liststorageHaloRunV1alpha1Group( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update storage.halo.run/v1alpha1/Group - * @param {StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1GroupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatestorageHaloRunV1alpha1Group( - requestParameters: StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1GroupRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatestorageHaloRunV1alpha1Group( - requestParameters.name, - requestParameters.group, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const StorageHaloRunV1alpha1GroupApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = StorageHaloRunV1alpha1GroupApiFp(configuration) + return { + /** + * Create storage.halo.run/v1alpha1/Group + * @param {StorageHaloRunV1alpha1GroupApiCreatestorageHaloRunV1alpha1GroupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createstorageHaloRunV1alpha1Group(requestParameters: StorageHaloRunV1alpha1GroupApiCreatestorageHaloRunV1alpha1GroupRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createstorageHaloRunV1alpha1Group(requestParameters.group, options).then((request) => request(axios, basePath)); + }, + /** + * Delete storage.halo.run/v1alpha1/Group + * @param {StorageHaloRunV1alpha1GroupApiDeletestorageHaloRunV1alpha1GroupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletestorageHaloRunV1alpha1Group(requestParameters: StorageHaloRunV1alpha1GroupApiDeletestorageHaloRunV1alpha1GroupRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletestorageHaloRunV1alpha1Group(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get storage.halo.run/v1alpha1/Group + * @param {StorageHaloRunV1alpha1GroupApiGetstorageHaloRunV1alpha1GroupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getstorageHaloRunV1alpha1Group(requestParameters: StorageHaloRunV1alpha1GroupApiGetstorageHaloRunV1alpha1GroupRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getstorageHaloRunV1alpha1Group(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List storage.halo.run/v1alpha1/Group + * @param {StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1GroupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liststorageHaloRunV1alpha1Group(requestParameters: StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1GroupRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.liststorageHaloRunV1alpha1Group(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update storage.halo.run/v1alpha1/Group + * @param {StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1GroupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatestorageHaloRunV1alpha1Group(requestParameters: StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1GroupRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatestorageHaloRunV1alpha1Group(requestParameters.name, requestParameters.group, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -603,12 +400,12 @@ export const StorageHaloRunV1alpha1GroupApiFactory = function ( * @interface StorageHaloRunV1alpha1GroupApiCreatestorageHaloRunV1alpha1GroupRequest */ export interface StorageHaloRunV1alpha1GroupApiCreatestorageHaloRunV1alpha1GroupRequest { - /** - * Fresh group - * @type {Group} - * @memberof StorageHaloRunV1alpha1GroupApiCreatestorageHaloRunV1alpha1Group - */ - readonly group?: Group; + /** + * Fresh group + * @type {Group} + * @memberof StorageHaloRunV1alpha1GroupApiCreatestorageHaloRunV1alpha1Group + */ + readonly group?: Group } /** @@ -617,12 +414,12 @@ export interface StorageHaloRunV1alpha1GroupApiCreatestorageHaloRunV1alpha1Group * @interface StorageHaloRunV1alpha1GroupApiDeletestorageHaloRunV1alpha1GroupRequest */ export interface StorageHaloRunV1alpha1GroupApiDeletestorageHaloRunV1alpha1GroupRequest { - /** - * Name of group - * @type {string} - * @memberof StorageHaloRunV1alpha1GroupApiDeletestorageHaloRunV1alpha1Group - */ - readonly name: string; + /** + * Name of group + * @type {string} + * @memberof StorageHaloRunV1alpha1GroupApiDeletestorageHaloRunV1alpha1Group + */ + readonly name: string } /** @@ -631,12 +428,12 @@ export interface StorageHaloRunV1alpha1GroupApiDeletestorageHaloRunV1alpha1Group * @interface StorageHaloRunV1alpha1GroupApiGetstorageHaloRunV1alpha1GroupRequest */ export interface StorageHaloRunV1alpha1GroupApiGetstorageHaloRunV1alpha1GroupRequest { - /** - * Name of group - * @type {string} - * @memberof StorageHaloRunV1alpha1GroupApiGetstorageHaloRunV1alpha1Group - */ - readonly name: string; + /** + * Name of group + * @type {string} + * @memberof StorageHaloRunV1alpha1GroupApiGetstorageHaloRunV1alpha1Group + */ + readonly name: string } /** @@ -645,40 +442,40 @@ export interface StorageHaloRunV1alpha1GroupApiGetstorageHaloRunV1alpha1GroupReq * @interface StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1GroupRequest */ export interface StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1GroupRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group + */ + readonly sort?: Array } /** @@ -687,19 +484,19 @@ export interface StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1GroupRe * @interface StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1GroupRequest */ export interface StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1GroupRequest { - /** - * Name of group - * @type {string} - * @memberof StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1Group - */ - readonly name: string; + /** + * Name of group + * @type {string} + * @memberof StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1Group + */ + readonly name: string - /** - * Updated group - * @type {Group} - * @memberof StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1Group - */ - readonly group?: Group; + /** + * Updated group + * @type {Group} + * @memberof StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1Group + */ + readonly group?: Group } /** @@ -709,94 +506,59 @@ export interface StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1Group * @extends {BaseAPI} */ export class StorageHaloRunV1alpha1GroupApi extends BaseAPI { - /** - * Create storage.halo.run/v1alpha1/Group - * @param {StorageHaloRunV1alpha1GroupApiCreatestorageHaloRunV1alpha1GroupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StorageHaloRunV1alpha1GroupApi - */ - public createstorageHaloRunV1alpha1Group( - requestParameters: StorageHaloRunV1alpha1GroupApiCreatestorageHaloRunV1alpha1GroupRequest = {}, - options?: AxiosRequestConfig - ) { - return StorageHaloRunV1alpha1GroupApiFp(this.configuration) - .createstorageHaloRunV1alpha1Group(requestParameters.group, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create storage.halo.run/v1alpha1/Group + * @param {StorageHaloRunV1alpha1GroupApiCreatestorageHaloRunV1alpha1GroupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StorageHaloRunV1alpha1GroupApi + */ + public createstorageHaloRunV1alpha1Group(requestParameters: StorageHaloRunV1alpha1GroupApiCreatestorageHaloRunV1alpha1GroupRequest = {}, options?: RawAxiosRequestConfig) { + return StorageHaloRunV1alpha1GroupApiFp(this.configuration).createstorageHaloRunV1alpha1Group(requestParameters.group, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete storage.halo.run/v1alpha1/Group - * @param {StorageHaloRunV1alpha1GroupApiDeletestorageHaloRunV1alpha1GroupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StorageHaloRunV1alpha1GroupApi - */ - public deletestorageHaloRunV1alpha1Group( - requestParameters: StorageHaloRunV1alpha1GroupApiDeletestorageHaloRunV1alpha1GroupRequest, - options?: AxiosRequestConfig - ) { - return StorageHaloRunV1alpha1GroupApiFp(this.configuration) - .deletestorageHaloRunV1alpha1Group(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete storage.halo.run/v1alpha1/Group + * @param {StorageHaloRunV1alpha1GroupApiDeletestorageHaloRunV1alpha1GroupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StorageHaloRunV1alpha1GroupApi + */ + public deletestorageHaloRunV1alpha1Group(requestParameters: StorageHaloRunV1alpha1GroupApiDeletestorageHaloRunV1alpha1GroupRequest, options?: RawAxiosRequestConfig) { + return StorageHaloRunV1alpha1GroupApiFp(this.configuration).deletestorageHaloRunV1alpha1Group(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get storage.halo.run/v1alpha1/Group - * @param {StorageHaloRunV1alpha1GroupApiGetstorageHaloRunV1alpha1GroupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StorageHaloRunV1alpha1GroupApi - */ - public getstorageHaloRunV1alpha1Group( - requestParameters: StorageHaloRunV1alpha1GroupApiGetstorageHaloRunV1alpha1GroupRequest, - options?: AxiosRequestConfig - ) { - return StorageHaloRunV1alpha1GroupApiFp(this.configuration) - .getstorageHaloRunV1alpha1Group(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get storage.halo.run/v1alpha1/Group + * @param {StorageHaloRunV1alpha1GroupApiGetstorageHaloRunV1alpha1GroupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StorageHaloRunV1alpha1GroupApi + */ + public getstorageHaloRunV1alpha1Group(requestParameters: StorageHaloRunV1alpha1GroupApiGetstorageHaloRunV1alpha1GroupRequest, options?: RawAxiosRequestConfig) { + return StorageHaloRunV1alpha1GroupApiFp(this.configuration).getstorageHaloRunV1alpha1Group(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List storage.halo.run/v1alpha1/Group - * @param {StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1GroupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StorageHaloRunV1alpha1GroupApi - */ - public liststorageHaloRunV1alpha1Group( - requestParameters: StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1GroupRequest = {}, - options?: AxiosRequestConfig - ) { - return StorageHaloRunV1alpha1GroupApiFp(this.configuration) - .liststorageHaloRunV1alpha1Group( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List storage.halo.run/v1alpha1/Group + * @param {StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1GroupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StorageHaloRunV1alpha1GroupApi + */ + public liststorageHaloRunV1alpha1Group(requestParameters: StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1GroupRequest = {}, options?: RawAxiosRequestConfig) { + return StorageHaloRunV1alpha1GroupApiFp(this.configuration).liststorageHaloRunV1alpha1Group(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update storage.halo.run/v1alpha1/Group - * @param {StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1GroupRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StorageHaloRunV1alpha1GroupApi - */ - public updatestorageHaloRunV1alpha1Group( - requestParameters: StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1GroupRequest, - options?: AxiosRequestConfig - ) { - return StorageHaloRunV1alpha1GroupApiFp(this.configuration) - .updatestorageHaloRunV1alpha1Group( - requestParameters.name, - requestParameters.group, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update storage.halo.run/v1alpha1/Group + * @param {StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1GroupRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StorageHaloRunV1alpha1GroupApi + */ + public updatestorageHaloRunV1alpha1Group(requestParameters: StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1GroupRequest, options?: RawAxiosRequestConfig) { + return StorageHaloRunV1alpha1GroupApiFp(this.configuration).updatestorageHaloRunV1alpha1Group(requestParameters.name, requestParameters.group, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/storage-halo-run-v1alpha1-policy-api.ts b/ui/packages/api-client/src/api/storage-halo-run-v1alpha1-policy-api.ts index 5164735e7..50bcbd85e 100644 --- a/ui/packages/api-client/src/api/storage-halo-run-v1alpha1-policy-api.ts +++ b/ui/packages/api-client/src/api/storage-halo-run-v1alpha1-policy-api.ts @@ -5,596 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Policy } from "../models"; +import { Policy } from '../models'; // @ts-ignore -import { PolicyList } from "../models"; +import { PolicyList } from '../models'; /** * StorageHaloRunV1alpha1PolicyApi - axios parameter creator * @export */ -export const StorageHaloRunV1alpha1PolicyApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create storage.halo.run/v1alpha1/Policy - * @param {Policy} [policy] Fresh policy - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createstorageHaloRunV1alpha1Policy: async ( - policy?: Policy, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/storage.halo.run/v1alpha1/policies`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const StorageHaloRunV1alpha1PolicyApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create storage.halo.run/v1alpha1/Policy + * @param {Policy} [policy] Fresh policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createstorageHaloRunV1alpha1Policy: async (policy?: Policy, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/storage.halo.run/v1alpha1/policies`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - policy, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete storage.halo.run/v1alpha1/Policy - * @param {string} name Name of policy - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletestorageHaloRunV1alpha1Policy: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletestorageHaloRunV1alpha1Policy", "name", name); - const localVarPath = - `/apis/storage.halo.run/v1alpha1/policies/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(policy, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete storage.halo.run/v1alpha1/Policy + * @param {string} name Name of policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletestorageHaloRunV1alpha1Policy: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletestorageHaloRunV1alpha1Policy', 'name', name) + const localVarPath = `/apis/storage.halo.run/v1alpha1/policies/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get storage.halo.run/v1alpha1/Policy - * @param {string} name Name of policy - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getstorageHaloRunV1alpha1Policy: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getstorageHaloRunV1alpha1Policy", "name", name); - const localVarPath = - `/apis/storage.halo.run/v1alpha1/policies/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get storage.halo.run/v1alpha1/Policy + * @param {string} name Name of policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getstorageHaloRunV1alpha1Policy: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getstorageHaloRunV1alpha1Policy', 'name', name) + const localVarPath = `/apis/storage.halo.run/v1alpha1/policies/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List storage.halo.run/v1alpha1/Policy - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - liststorageHaloRunV1alpha1Policy: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/storage.halo.run/v1alpha1/policies`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List storage.halo.run/v1alpha1/Policy + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liststorageHaloRunV1alpha1Policy: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/storage.halo.run/v1alpha1/policies`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update storage.halo.run/v1alpha1/Policy - * @param {string} name Name of policy - * @param {Policy} [policy] Updated policy - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatestorageHaloRunV1alpha1Policy: async ( - name: string, - policy?: Policy, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatestorageHaloRunV1alpha1Policy", "name", name); - const localVarPath = - `/apis/storage.halo.run/v1alpha1/policies/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update storage.halo.run/v1alpha1/Policy + * @param {string} name Name of policy + * @param {Policy} [policy] Updated policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatestorageHaloRunV1alpha1Policy: async (name: string, policy?: Policy, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatestorageHaloRunV1alpha1Policy', 'name', name) + const localVarPath = `/apis/storage.halo.run/v1alpha1/policies/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - policy, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(policy, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * StorageHaloRunV1alpha1PolicyApi - functional programming interface * @export */ -export const StorageHaloRunV1alpha1PolicyApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - StorageHaloRunV1alpha1PolicyApiAxiosParamCreator(configuration); - return { - /** - * Create storage.halo.run/v1alpha1/Policy - * @param {Policy} [policy] Fresh policy - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createstorageHaloRunV1alpha1Policy( - policy?: Policy, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createstorageHaloRunV1alpha1Policy( - policy, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete storage.halo.run/v1alpha1/Policy - * @param {string} name Name of policy - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletestorageHaloRunV1alpha1Policy( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletestorageHaloRunV1alpha1Policy( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get storage.halo.run/v1alpha1/Policy - * @param {string} name Name of policy - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getstorageHaloRunV1alpha1Policy( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getstorageHaloRunV1alpha1Policy( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List storage.halo.run/v1alpha1/Policy - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async liststorageHaloRunV1alpha1Policy( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Policy( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update storage.halo.run/v1alpha1/Policy - * @param {string} name Name of policy - * @param {Policy} [policy] Updated policy - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatestorageHaloRunV1alpha1Policy( - name: string, - policy?: Policy, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1Policy( - name, - policy, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const StorageHaloRunV1alpha1PolicyApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = StorageHaloRunV1alpha1PolicyApiAxiosParamCreator(configuration) + return { + /** + * Create storage.halo.run/v1alpha1/Policy + * @param {Policy} [policy] Fresh policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createstorageHaloRunV1alpha1Policy(policy?: Policy, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createstorageHaloRunV1alpha1Policy(policy, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StorageHaloRunV1alpha1PolicyApi.createstorageHaloRunV1alpha1Policy']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete storage.halo.run/v1alpha1/Policy + * @param {string} name Name of policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletestorageHaloRunV1alpha1Policy(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletestorageHaloRunV1alpha1Policy(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StorageHaloRunV1alpha1PolicyApi.deletestorageHaloRunV1alpha1Policy']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get storage.halo.run/v1alpha1/Policy + * @param {string} name Name of policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getstorageHaloRunV1alpha1Policy(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getstorageHaloRunV1alpha1Policy(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StorageHaloRunV1alpha1PolicyApi.getstorageHaloRunV1alpha1Policy']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List storage.halo.run/v1alpha1/Policy + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async liststorageHaloRunV1alpha1Policy(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Policy(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StorageHaloRunV1alpha1PolicyApi.liststorageHaloRunV1alpha1Policy']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update storage.halo.run/v1alpha1/Policy + * @param {string} name Name of policy + * @param {Policy} [policy] Updated policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatestorageHaloRunV1alpha1Policy(name: string, policy?: Policy, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1Policy(name, policy, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StorageHaloRunV1alpha1PolicyApi.updatestorageHaloRunV1alpha1Policy']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * StorageHaloRunV1alpha1PolicyApi - factory interface * @export */ -export const StorageHaloRunV1alpha1PolicyApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = StorageHaloRunV1alpha1PolicyApiFp(configuration); - return { - /** - * Create storage.halo.run/v1alpha1/Policy - * @param {StorageHaloRunV1alpha1PolicyApiCreatestorageHaloRunV1alpha1PolicyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createstorageHaloRunV1alpha1Policy( - requestParameters: StorageHaloRunV1alpha1PolicyApiCreatestorageHaloRunV1alpha1PolicyRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createstorageHaloRunV1alpha1Policy(requestParameters.policy, options) - .then((request) => request(axios, basePath)); - }, - /** - * Delete storage.halo.run/v1alpha1/Policy - * @param {StorageHaloRunV1alpha1PolicyApiDeletestorageHaloRunV1alpha1PolicyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletestorageHaloRunV1alpha1Policy( - requestParameters: StorageHaloRunV1alpha1PolicyApiDeletestorageHaloRunV1alpha1PolicyRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletestorageHaloRunV1alpha1Policy(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get storage.halo.run/v1alpha1/Policy - * @param {StorageHaloRunV1alpha1PolicyApiGetstorageHaloRunV1alpha1PolicyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getstorageHaloRunV1alpha1Policy( - requestParameters: StorageHaloRunV1alpha1PolicyApiGetstorageHaloRunV1alpha1PolicyRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getstorageHaloRunV1alpha1Policy(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List storage.halo.run/v1alpha1/Policy - * @param {StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1PolicyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - liststorageHaloRunV1alpha1Policy( - requestParameters: StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1PolicyRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .liststorageHaloRunV1alpha1Policy( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update storage.halo.run/v1alpha1/Policy - * @param {StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1PolicyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatestorageHaloRunV1alpha1Policy( - requestParameters: StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1PolicyRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatestorageHaloRunV1alpha1Policy( - requestParameters.name, - requestParameters.policy, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const StorageHaloRunV1alpha1PolicyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = StorageHaloRunV1alpha1PolicyApiFp(configuration) + return { + /** + * Create storage.halo.run/v1alpha1/Policy + * @param {StorageHaloRunV1alpha1PolicyApiCreatestorageHaloRunV1alpha1PolicyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createstorageHaloRunV1alpha1Policy(requestParameters: StorageHaloRunV1alpha1PolicyApiCreatestorageHaloRunV1alpha1PolicyRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createstorageHaloRunV1alpha1Policy(requestParameters.policy, options).then((request) => request(axios, basePath)); + }, + /** + * Delete storage.halo.run/v1alpha1/Policy + * @param {StorageHaloRunV1alpha1PolicyApiDeletestorageHaloRunV1alpha1PolicyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletestorageHaloRunV1alpha1Policy(requestParameters: StorageHaloRunV1alpha1PolicyApiDeletestorageHaloRunV1alpha1PolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletestorageHaloRunV1alpha1Policy(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get storage.halo.run/v1alpha1/Policy + * @param {StorageHaloRunV1alpha1PolicyApiGetstorageHaloRunV1alpha1PolicyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getstorageHaloRunV1alpha1Policy(requestParameters: StorageHaloRunV1alpha1PolicyApiGetstorageHaloRunV1alpha1PolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getstorageHaloRunV1alpha1Policy(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List storage.halo.run/v1alpha1/Policy + * @param {StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1PolicyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liststorageHaloRunV1alpha1Policy(requestParameters: StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1PolicyRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.liststorageHaloRunV1alpha1Policy(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update storage.halo.run/v1alpha1/Policy + * @param {StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1PolicyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatestorageHaloRunV1alpha1Policy(requestParameters: StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1PolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatestorageHaloRunV1alpha1Policy(requestParameters.name, requestParameters.policy, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -603,12 +400,12 @@ export const StorageHaloRunV1alpha1PolicyApiFactory = function ( * @interface StorageHaloRunV1alpha1PolicyApiCreatestorageHaloRunV1alpha1PolicyRequest */ export interface StorageHaloRunV1alpha1PolicyApiCreatestorageHaloRunV1alpha1PolicyRequest { - /** - * Fresh policy - * @type {Policy} - * @memberof StorageHaloRunV1alpha1PolicyApiCreatestorageHaloRunV1alpha1Policy - */ - readonly policy?: Policy; + /** + * Fresh policy + * @type {Policy} + * @memberof StorageHaloRunV1alpha1PolicyApiCreatestorageHaloRunV1alpha1Policy + */ + readonly policy?: Policy } /** @@ -617,12 +414,12 @@ export interface StorageHaloRunV1alpha1PolicyApiCreatestorageHaloRunV1alpha1Poli * @interface StorageHaloRunV1alpha1PolicyApiDeletestorageHaloRunV1alpha1PolicyRequest */ export interface StorageHaloRunV1alpha1PolicyApiDeletestorageHaloRunV1alpha1PolicyRequest { - /** - * Name of policy - * @type {string} - * @memberof StorageHaloRunV1alpha1PolicyApiDeletestorageHaloRunV1alpha1Policy - */ - readonly name: string; + /** + * Name of policy + * @type {string} + * @memberof StorageHaloRunV1alpha1PolicyApiDeletestorageHaloRunV1alpha1Policy + */ + readonly name: string } /** @@ -631,12 +428,12 @@ export interface StorageHaloRunV1alpha1PolicyApiDeletestorageHaloRunV1alpha1Poli * @interface StorageHaloRunV1alpha1PolicyApiGetstorageHaloRunV1alpha1PolicyRequest */ export interface StorageHaloRunV1alpha1PolicyApiGetstorageHaloRunV1alpha1PolicyRequest { - /** - * Name of policy - * @type {string} - * @memberof StorageHaloRunV1alpha1PolicyApiGetstorageHaloRunV1alpha1Policy - */ - readonly name: string; + /** + * Name of policy + * @type {string} + * @memberof StorageHaloRunV1alpha1PolicyApiGetstorageHaloRunV1alpha1Policy + */ + readonly name: string } /** @@ -645,40 +442,40 @@ export interface StorageHaloRunV1alpha1PolicyApiGetstorageHaloRunV1alpha1PolicyR * @interface StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1PolicyRequest */ export interface StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1PolicyRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy + */ + readonly sort?: Array } /** @@ -687,19 +484,19 @@ export interface StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy * @interface StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1PolicyRequest */ export interface StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1PolicyRequest { - /** - * Name of policy - * @type {string} - * @memberof StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1Policy - */ - readonly name: string; + /** + * Name of policy + * @type {string} + * @memberof StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1Policy + */ + readonly name: string - /** - * Updated policy - * @type {Policy} - * @memberof StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1Policy - */ - readonly policy?: Policy; + /** + * Updated policy + * @type {Policy} + * @memberof StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1Policy + */ + readonly policy?: Policy } /** @@ -709,94 +506,59 @@ export interface StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1Poli * @extends {BaseAPI} */ export class StorageHaloRunV1alpha1PolicyApi extends BaseAPI { - /** - * Create storage.halo.run/v1alpha1/Policy - * @param {StorageHaloRunV1alpha1PolicyApiCreatestorageHaloRunV1alpha1PolicyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StorageHaloRunV1alpha1PolicyApi - */ - public createstorageHaloRunV1alpha1Policy( - requestParameters: StorageHaloRunV1alpha1PolicyApiCreatestorageHaloRunV1alpha1PolicyRequest = {}, - options?: AxiosRequestConfig - ) { - return StorageHaloRunV1alpha1PolicyApiFp(this.configuration) - .createstorageHaloRunV1alpha1Policy(requestParameters.policy, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create storage.halo.run/v1alpha1/Policy + * @param {StorageHaloRunV1alpha1PolicyApiCreatestorageHaloRunV1alpha1PolicyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StorageHaloRunV1alpha1PolicyApi + */ + public createstorageHaloRunV1alpha1Policy(requestParameters: StorageHaloRunV1alpha1PolicyApiCreatestorageHaloRunV1alpha1PolicyRequest = {}, options?: RawAxiosRequestConfig) { + return StorageHaloRunV1alpha1PolicyApiFp(this.configuration).createstorageHaloRunV1alpha1Policy(requestParameters.policy, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete storage.halo.run/v1alpha1/Policy - * @param {StorageHaloRunV1alpha1PolicyApiDeletestorageHaloRunV1alpha1PolicyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StorageHaloRunV1alpha1PolicyApi - */ - public deletestorageHaloRunV1alpha1Policy( - requestParameters: StorageHaloRunV1alpha1PolicyApiDeletestorageHaloRunV1alpha1PolicyRequest, - options?: AxiosRequestConfig - ) { - return StorageHaloRunV1alpha1PolicyApiFp(this.configuration) - .deletestorageHaloRunV1alpha1Policy(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete storage.halo.run/v1alpha1/Policy + * @param {StorageHaloRunV1alpha1PolicyApiDeletestorageHaloRunV1alpha1PolicyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StorageHaloRunV1alpha1PolicyApi + */ + public deletestorageHaloRunV1alpha1Policy(requestParameters: StorageHaloRunV1alpha1PolicyApiDeletestorageHaloRunV1alpha1PolicyRequest, options?: RawAxiosRequestConfig) { + return StorageHaloRunV1alpha1PolicyApiFp(this.configuration).deletestorageHaloRunV1alpha1Policy(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get storage.halo.run/v1alpha1/Policy - * @param {StorageHaloRunV1alpha1PolicyApiGetstorageHaloRunV1alpha1PolicyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StorageHaloRunV1alpha1PolicyApi - */ - public getstorageHaloRunV1alpha1Policy( - requestParameters: StorageHaloRunV1alpha1PolicyApiGetstorageHaloRunV1alpha1PolicyRequest, - options?: AxiosRequestConfig - ) { - return StorageHaloRunV1alpha1PolicyApiFp(this.configuration) - .getstorageHaloRunV1alpha1Policy(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get storage.halo.run/v1alpha1/Policy + * @param {StorageHaloRunV1alpha1PolicyApiGetstorageHaloRunV1alpha1PolicyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StorageHaloRunV1alpha1PolicyApi + */ + public getstorageHaloRunV1alpha1Policy(requestParameters: StorageHaloRunV1alpha1PolicyApiGetstorageHaloRunV1alpha1PolicyRequest, options?: RawAxiosRequestConfig) { + return StorageHaloRunV1alpha1PolicyApiFp(this.configuration).getstorageHaloRunV1alpha1Policy(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List storage.halo.run/v1alpha1/Policy - * @param {StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1PolicyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StorageHaloRunV1alpha1PolicyApi - */ - public liststorageHaloRunV1alpha1Policy( - requestParameters: StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1PolicyRequest = {}, - options?: AxiosRequestConfig - ) { - return StorageHaloRunV1alpha1PolicyApiFp(this.configuration) - .liststorageHaloRunV1alpha1Policy( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List storage.halo.run/v1alpha1/Policy + * @param {StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1PolicyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StorageHaloRunV1alpha1PolicyApi + */ + public liststorageHaloRunV1alpha1Policy(requestParameters: StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1PolicyRequest = {}, options?: RawAxiosRequestConfig) { + return StorageHaloRunV1alpha1PolicyApiFp(this.configuration).liststorageHaloRunV1alpha1Policy(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update storage.halo.run/v1alpha1/Policy - * @param {StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1PolicyRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StorageHaloRunV1alpha1PolicyApi - */ - public updatestorageHaloRunV1alpha1Policy( - requestParameters: StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1PolicyRequest, - options?: AxiosRequestConfig - ) { - return StorageHaloRunV1alpha1PolicyApiFp(this.configuration) - .updatestorageHaloRunV1alpha1Policy( - requestParameters.name, - requestParameters.policy, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update storage.halo.run/v1alpha1/Policy + * @param {StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1PolicyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StorageHaloRunV1alpha1PolicyApi + */ + public updatestorageHaloRunV1alpha1Policy(requestParameters: StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1PolicyRequest, options?: RawAxiosRequestConfig) { + return StorageHaloRunV1alpha1PolicyApiFp(this.configuration).updatestorageHaloRunV1alpha1Policy(requestParameters.name, requestParameters.policy, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/storage-halo-run-v1alpha1-policy-template-api.ts b/ui/packages/api-client/src/api/storage-halo-run-v1alpha1-policy-template-api.ts index 417abf850..682240d62 100644 --- a/ui/packages/api-client/src/api/storage-halo-run-v1alpha1-policy-template-api.ts +++ b/ui/packages/api-client/src/api/storage-halo-run-v1alpha1-policy-template-api.ts @@ -5,619 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { PolicyTemplate } from "../models"; +import { PolicyTemplate } from '../models'; // @ts-ignore -import { PolicyTemplateList } from "../models"; +import { PolicyTemplateList } from '../models'; /** * StorageHaloRunV1alpha1PolicyTemplateApi - axios parameter creator * @export */ -export const StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator = - function (configuration?: Configuration) { +export const StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Create storage.halo.run/v1alpha1/PolicyTemplate - * @param {PolicyTemplate} [policyTemplate] Fresh policytemplate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createstorageHaloRunV1alpha1PolicyTemplate: async ( - policyTemplate?: PolicyTemplate, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * Create storage.halo.run/v1alpha1/PolicyTemplate + * @param {PolicyTemplate} [policyTemplate] Fresh policytemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createstorageHaloRunV1alpha1PolicyTemplate: async (policyTemplate?: PolicyTemplate, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - policyTemplate, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete storage.halo.run/v1alpha1/PolicyTemplate - * @param {string} name Name of policytemplate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletestorageHaloRunV1alpha1PolicyTemplate: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "deletestorageHaloRunV1alpha1PolicyTemplate", - "name", - name - ); - const localVarPath = - `/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(policyTemplate, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete storage.halo.run/v1alpha1/PolicyTemplate + * @param {string} name Name of policytemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletestorageHaloRunV1alpha1PolicyTemplate: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletestorageHaloRunV1alpha1PolicyTemplate', 'name', name) + const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get storage.halo.run/v1alpha1/PolicyTemplate - * @param {string} name Name of policytemplate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getstorageHaloRunV1alpha1PolicyTemplate: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "getstorageHaloRunV1alpha1PolicyTemplate", - "name", - name - ); - const localVarPath = - `/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get storage.halo.run/v1alpha1/PolicyTemplate + * @param {string} name Name of policytemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getstorageHaloRunV1alpha1PolicyTemplate: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getstorageHaloRunV1alpha1PolicyTemplate', 'name', name) + const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List storage.halo.run/v1alpha1/PolicyTemplate - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - liststorageHaloRunV1alpha1PolicyTemplate: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List storage.halo.run/v1alpha1/PolicyTemplate + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liststorageHaloRunV1alpha1PolicyTemplate: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update storage.halo.run/v1alpha1/PolicyTemplate - * @param {string} name Name of policytemplate - * @param {PolicyTemplate} [policyTemplate] Updated policytemplate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatestorageHaloRunV1alpha1PolicyTemplate: async ( - name: string, - policyTemplate?: PolicyTemplate, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists( - "updatestorageHaloRunV1alpha1PolicyTemplate", - "name", - name - ); - const localVarPath = - `/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update storage.halo.run/v1alpha1/PolicyTemplate + * @param {string} name Name of policytemplate + * @param {PolicyTemplate} [policyTemplate] Updated policytemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatestorageHaloRunV1alpha1PolicyTemplate: async (name: string, policyTemplate?: PolicyTemplate, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatestorageHaloRunV1alpha1PolicyTemplate', 'name', name) + const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - policyTemplate, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(policyTemplate, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * StorageHaloRunV1alpha1PolicyTemplateApi - functional programming interface * @export */ -export const StorageHaloRunV1alpha1PolicyTemplateApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator(configuration); - return { - /** - * Create storage.halo.run/v1alpha1/PolicyTemplate - * @param {PolicyTemplate} [policyTemplate] Fresh policytemplate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createstorageHaloRunV1alpha1PolicyTemplate( - policyTemplate?: PolicyTemplate, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createstorageHaloRunV1alpha1PolicyTemplate( - policyTemplate, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete storage.halo.run/v1alpha1/PolicyTemplate - * @param {string} name Name of policytemplate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletestorageHaloRunV1alpha1PolicyTemplate( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletestorageHaloRunV1alpha1PolicyTemplate( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get storage.halo.run/v1alpha1/PolicyTemplate - * @param {string} name Name of policytemplate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getstorageHaloRunV1alpha1PolicyTemplate( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getstorageHaloRunV1alpha1PolicyTemplate( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List storage.halo.run/v1alpha1/PolicyTemplate - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async liststorageHaloRunV1alpha1PolicyTemplate( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.liststorageHaloRunV1alpha1PolicyTemplate( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update storage.halo.run/v1alpha1/PolicyTemplate - * @param {string} name Name of policytemplate - * @param {PolicyTemplate} [policyTemplate] Updated policytemplate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatestorageHaloRunV1alpha1PolicyTemplate( - name: string, - policyTemplate?: PolicyTemplate, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1PolicyTemplate( - name, - policyTemplate, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const StorageHaloRunV1alpha1PolicyTemplateApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator(configuration) + return { + /** + * Create storage.halo.run/v1alpha1/PolicyTemplate + * @param {PolicyTemplate} [policyTemplate] Fresh policytemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createstorageHaloRunV1alpha1PolicyTemplate(policyTemplate?: PolicyTemplate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createstorageHaloRunV1alpha1PolicyTemplate(policyTemplate, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StorageHaloRunV1alpha1PolicyTemplateApi.createstorageHaloRunV1alpha1PolicyTemplate']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete storage.halo.run/v1alpha1/PolicyTemplate + * @param {string} name Name of policytemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletestorageHaloRunV1alpha1PolicyTemplate(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletestorageHaloRunV1alpha1PolicyTemplate(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StorageHaloRunV1alpha1PolicyTemplateApi.deletestorageHaloRunV1alpha1PolicyTemplate']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get storage.halo.run/v1alpha1/PolicyTemplate + * @param {string} name Name of policytemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getstorageHaloRunV1alpha1PolicyTemplate(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getstorageHaloRunV1alpha1PolicyTemplate(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StorageHaloRunV1alpha1PolicyTemplateApi.getstorageHaloRunV1alpha1PolicyTemplate']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List storage.halo.run/v1alpha1/PolicyTemplate + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async liststorageHaloRunV1alpha1PolicyTemplate(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1PolicyTemplate(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StorageHaloRunV1alpha1PolicyTemplateApi.liststorageHaloRunV1alpha1PolicyTemplate']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update storage.halo.run/v1alpha1/PolicyTemplate + * @param {string} name Name of policytemplate + * @param {PolicyTemplate} [policyTemplate] Updated policytemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatestorageHaloRunV1alpha1PolicyTemplate(name: string, policyTemplate?: PolicyTemplate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1PolicyTemplate(name, policyTemplate, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StorageHaloRunV1alpha1PolicyTemplateApi.updatestorageHaloRunV1alpha1PolicyTemplate']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * StorageHaloRunV1alpha1PolicyTemplateApi - factory interface * @export */ -export const StorageHaloRunV1alpha1PolicyTemplateApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = StorageHaloRunV1alpha1PolicyTemplateApiFp(configuration); - return { - /** - * Create storage.halo.run/v1alpha1/PolicyTemplate - * @param {StorageHaloRunV1alpha1PolicyTemplateApiCreatestorageHaloRunV1alpha1PolicyTemplateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createstorageHaloRunV1alpha1PolicyTemplate( - requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiCreatestorageHaloRunV1alpha1PolicyTemplateRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createstorageHaloRunV1alpha1PolicyTemplate( - requestParameters.policyTemplate, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Delete storage.halo.run/v1alpha1/PolicyTemplate - * @param {StorageHaloRunV1alpha1PolicyTemplateApiDeletestorageHaloRunV1alpha1PolicyTemplateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletestorageHaloRunV1alpha1PolicyTemplate( - requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiDeletestorageHaloRunV1alpha1PolicyTemplateRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletestorageHaloRunV1alpha1PolicyTemplate( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Get storage.halo.run/v1alpha1/PolicyTemplate - * @param {StorageHaloRunV1alpha1PolicyTemplateApiGetstorageHaloRunV1alpha1PolicyTemplateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getstorageHaloRunV1alpha1PolicyTemplate( - requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiGetstorageHaloRunV1alpha1PolicyTemplateRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getstorageHaloRunV1alpha1PolicyTemplate( - requestParameters.name, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * List storage.halo.run/v1alpha1/PolicyTemplate - * @param {StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - liststorageHaloRunV1alpha1PolicyTemplate( - requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplateRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .liststorageHaloRunV1alpha1PolicyTemplate( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update storage.halo.run/v1alpha1/PolicyTemplate - * @param {StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1alpha1PolicyTemplateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatestorageHaloRunV1alpha1PolicyTemplate( - requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1alpha1PolicyTemplateRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatestorageHaloRunV1alpha1PolicyTemplate( - requestParameters.name, - requestParameters.policyTemplate, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const StorageHaloRunV1alpha1PolicyTemplateApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = StorageHaloRunV1alpha1PolicyTemplateApiFp(configuration) + return { + /** + * Create storage.halo.run/v1alpha1/PolicyTemplate + * @param {StorageHaloRunV1alpha1PolicyTemplateApiCreatestorageHaloRunV1alpha1PolicyTemplateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createstorageHaloRunV1alpha1PolicyTemplate(requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiCreatestorageHaloRunV1alpha1PolicyTemplateRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createstorageHaloRunV1alpha1PolicyTemplate(requestParameters.policyTemplate, options).then((request) => request(axios, basePath)); + }, + /** + * Delete storage.halo.run/v1alpha1/PolicyTemplate + * @param {StorageHaloRunV1alpha1PolicyTemplateApiDeletestorageHaloRunV1alpha1PolicyTemplateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletestorageHaloRunV1alpha1PolicyTemplate(requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiDeletestorageHaloRunV1alpha1PolicyTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletestorageHaloRunV1alpha1PolicyTemplate(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get storage.halo.run/v1alpha1/PolicyTemplate + * @param {StorageHaloRunV1alpha1PolicyTemplateApiGetstorageHaloRunV1alpha1PolicyTemplateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getstorageHaloRunV1alpha1PolicyTemplate(requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiGetstorageHaloRunV1alpha1PolicyTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getstorageHaloRunV1alpha1PolicyTemplate(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List storage.halo.run/v1alpha1/PolicyTemplate + * @param {StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liststorageHaloRunV1alpha1PolicyTemplate(requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplateRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.liststorageHaloRunV1alpha1PolicyTemplate(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update storage.halo.run/v1alpha1/PolicyTemplate + * @param {StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1alpha1PolicyTemplateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatestorageHaloRunV1alpha1PolicyTemplate(requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1alpha1PolicyTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatestorageHaloRunV1alpha1PolicyTemplate(requestParameters.name, requestParameters.policyTemplate, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -626,12 +400,12 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiFactory = function ( * @interface StorageHaloRunV1alpha1PolicyTemplateApiCreatestorageHaloRunV1alpha1PolicyTemplateRequest */ export interface StorageHaloRunV1alpha1PolicyTemplateApiCreatestorageHaloRunV1alpha1PolicyTemplateRequest { - /** - * Fresh policytemplate - * @type {PolicyTemplate} - * @memberof StorageHaloRunV1alpha1PolicyTemplateApiCreatestorageHaloRunV1alpha1PolicyTemplate - */ - readonly policyTemplate?: PolicyTemplate; + /** + * Fresh policytemplate + * @type {PolicyTemplate} + * @memberof StorageHaloRunV1alpha1PolicyTemplateApiCreatestorageHaloRunV1alpha1PolicyTemplate + */ + readonly policyTemplate?: PolicyTemplate } /** @@ -640,12 +414,12 @@ export interface StorageHaloRunV1alpha1PolicyTemplateApiCreatestorageHaloRunV1al * @interface StorageHaloRunV1alpha1PolicyTemplateApiDeletestorageHaloRunV1alpha1PolicyTemplateRequest */ export interface StorageHaloRunV1alpha1PolicyTemplateApiDeletestorageHaloRunV1alpha1PolicyTemplateRequest { - /** - * Name of policytemplate - * @type {string} - * @memberof StorageHaloRunV1alpha1PolicyTemplateApiDeletestorageHaloRunV1alpha1PolicyTemplate - */ - readonly name: string; + /** + * Name of policytemplate + * @type {string} + * @memberof StorageHaloRunV1alpha1PolicyTemplateApiDeletestorageHaloRunV1alpha1PolicyTemplate + */ + readonly name: string } /** @@ -654,12 +428,12 @@ export interface StorageHaloRunV1alpha1PolicyTemplateApiDeletestorageHaloRunV1al * @interface StorageHaloRunV1alpha1PolicyTemplateApiGetstorageHaloRunV1alpha1PolicyTemplateRequest */ export interface StorageHaloRunV1alpha1PolicyTemplateApiGetstorageHaloRunV1alpha1PolicyTemplateRequest { - /** - * Name of policytemplate - * @type {string} - * @memberof StorageHaloRunV1alpha1PolicyTemplateApiGetstorageHaloRunV1alpha1PolicyTemplate - */ - readonly name: string; + /** + * Name of policytemplate + * @type {string} + * @memberof StorageHaloRunV1alpha1PolicyTemplateApiGetstorageHaloRunV1alpha1PolicyTemplate + */ + readonly name: string } /** @@ -668,40 +442,40 @@ export interface StorageHaloRunV1alpha1PolicyTemplateApiGetstorageHaloRunV1alpha * @interface StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplateRequest */ export interface StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplateRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate + */ + readonly sort?: Array } /** @@ -710,19 +484,19 @@ export interface StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alph * @interface StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1alpha1PolicyTemplateRequest */ export interface StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1alpha1PolicyTemplateRequest { - /** - * Name of policytemplate - * @type {string} - * @memberof StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1alpha1PolicyTemplate - */ - readonly name: string; + /** + * Name of policytemplate + * @type {string} + * @memberof StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1alpha1PolicyTemplate + */ + readonly name: string - /** - * Updated policytemplate - * @type {PolicyTemplate} - * @memberof StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1alpha1PolicyTemplate - */ - readonly policyTemplate?: PolicyTemplate; + /** + * Updated policytemplate + * @type {PolicyTemplate} + * @memberof StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1alpha1PolicyTemplate + */ + readonly policyTemplate?: PolicyTemplate } /** @@ -732,100 +506,59 @@ export interface StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1al * @extends {BaseAPI} */ export class StorageHaloRunV1alpha1PolicyTemplateApi extends BaseAPI { - /** - * Create storage.halo.run/v1alpha1/PolicyTemplate - * @param {StorageHaloRunV1alpha1PolicyTemplateApiCreatestorageHaloRunV1alpha1PolicyTemplateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StorageHaloRunV1alpha1PolicyTemplateApi - */ - public createstorageHaloRunV1alpha1PolicyTemplate( - requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiCreatestorageHaloRunV1alpha1PolicyTemplateRequest = {}, - options?: AxiosRequestConfig - ) { - return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration) - .createstorageHaloRunV1alpha1PolicyTemplate( - requestParameters.policyTemplate, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create storage.halo.run/v1alpha1/PolicyTemplate + * @param {StorageHaloRunV1alpha1PolicyTemplateApiCreatestorageHaloRunV1alpha1PolicyTemplateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StorageHaloRunV1alpha1PolicyTemplateApi + */ + public createstorageHaloRunV1alpha1PolicyTemplate(requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiCreatestorageHaloRunV1alpha1PolicyTemplateRequest = {}, options?: RawAxiosRequestConfig) { + return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration).createstorageHaloRunV1alpha1PolicyTemplate(requestParameters.policyTemplate, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete storage.halo.run/v1alpha1/PolicyTemplate - * @param {StorageHaloRunV1alpha1PolicyTemplateApiDeletestorageHaloRunV1alpha1PolicyTemplateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StorageHaloRunV1alpha1PolicyTemplateApi - */ - public deletestorageHaloRunV1alpha1PolicyTemplate( - requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiDeletestorageHaloRunV1alpha1PolicyTemplateRequest, - options?: AxiosRequestConfig - ) { - return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration) - .deletestorageHaloRunV1alpha1PolicyTemplate( - requestParameters.name, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete storage.halo.run/v1alpha1/PolicyTemplate + * @param {StorageHaloRunV1alpha1PolicyTemplateApiDeletestorageHaloRunV1alpha1PolicyTemplateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StorageHaloRunV1alpha1PolicyTemplateApi + */ + public deletestorageHaloRunV1alpha1PolicyTemplate(requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiDeletestorageHaloRunV1alpha1PolicyTemplateRequest, options?: RawAxiosRequestConfig) { + return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration).deletestorageHaloRunV1alpha1PolicyTemplate(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get storage.halo.run/v1alpha1/PolicyTemplate - * @param {StorageHaloRunV1alpha1PolicyTemplateApiGetstorageHaloRunV1alpha1PolicyTemplateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StorageHaloRunV1alpha1PolicyTemplateApi - */ - public getstorageHaloRunV1alpha1PolicyTemplate( - requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiGetstorageHaloRunV1alpha1PolicyTemplateRequest, - options?: AxiosRequestConfig - ) { - return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration) - .getstorageHaloRunV1alpha1PolicyTemplate(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get storage.halo.run/v1alpha1/PolicyTemplate + * @param {StorageHaloRunV1alpha1PolicyTemplateApiGetstorageHaloRunV1alpha1PolicyTemplateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StorageHaloRunV1alpha1PolicyTemplateApi + */ + public getstorageHaloRunV1alpha1PolicyTemplate(requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiGetstorageHaloRunV1alpha1PolicyTemplateRequest, options?: RawAxiosRequestConfig) { + return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration).getstorageHaloRunV1alpha1PolicyTemplate(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List storage.halo.run/v1alpha1/PolicyTemplate - * @param {StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StorageHaloRunV1alpha1PolicyTemplateApi - */ - public liststorageHaloRunV1alpha1PolicyTemplate( - requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplateRequest = {}, - options?: AxiosRequestConfig - ) { - return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration) - .liststorageHaloRunV1alpha1PolicyTemplate( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List storage.halo.run/v1alpha1/PolicyTemplate + * @param {StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StorageHaloRunV1alpha1PolicyTemplateApi + */ + public liststorageHaloRunV1alpha1PolicyTemplate(requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplateRequest = {}, options?: RawAxiosRequestConfig) { + return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration).liststorageHaloRunV1alpha1PolicyTemplate(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update storage.halo.run/v1alpha1/PolicyTemplate - * @param {StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1alpha1PolicyTemplateRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StorageHaloRunV1alpha1PolicyTemplateApi - */ - public updatestorageHaloRunV1alpha1PolicyTemplate( - requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1alpha1PolicyTemplateRequest, - options?: AxiosRequestConfig - ) { - return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration) - .updatestorageHaloRunV1alpha1PolicyTemplate( - requestParameters.name, - requestParameters.policyTemplate, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update storage.halo.run/v1alpha1/PolicyTemplate + * @param {StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1alpha1PolicyTemplateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StorageHaloRunV1alpha1PolicyTemplateApi + */ + public updatestorageHaloRunV1alpha1PolicyTemplate(requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1alpha1PolicyTemplateRequest, options?: RawAxiosRequestConfig) { + return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration).updatestorageHaloRunV1alpha1PolicyTemplate(requestParameters.name, requestParameters.policyTemplate, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/theme-halo-run-v1alpha1-theme-api.ts b/ui/packages/api-client/src/api/theme-halo-run-v1alpha1-theme-api.ts index 663ec08a4..b26a2ee1e 100644 --- a/ui/packages/api-client/src/api/theme-halo-run-v1alpha1-theme-api.ts +++ b/ui/packages/api-client/src/api/theme-halo-run-v1alpha1-theme-api.ts @@ -5,596 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Theme } from "../models"; +import { Theme } from '../models'; // @ts-ignore -import { ThemeList } from "../models"; +import { ThemeList } from '../models'; /** * ThemeHaloRunV1alpha1ThemeApi - axios parameter creator * @export */ -export const ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create theme.halo.run/v1alpha1/Theme - * @param {Theme} [theme] Fresh theme - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createthemeHaloRunV1alpha1Theme: async ( - theme?: Theme, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/theme.halo.run/v1alpha1/themes`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create theme.halo.run/v1alpha1/Theme + * @param {Theme} [theme] Fresh theme + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createthemeHaloRunV1alpha1Theme: async (theme?: Theme, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/theme.halo.run/v1alpha1/themes`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - theme, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete theme.halo.run/v1alpha1/Theme - * @param {string} name Name of theme - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletethemeHaloRunV1alpha1Theme: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletethemeHaloRunV1alpha1Theme", "name", name); - const localVarPath = - `/apis/theme.halo.run/v1alpha1/themes/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(theme, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete theme.halo.run/v1alpha1/Theme + * @param {string} name Name of theme + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletethemeHaloRunV1alpha1Theme: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletethemeHaloRunV1alpha1Theme', 'name', name) + const localVarPath = `/apis/theme.halo.run/v1alpha1/themes/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get theme.halo.run/v1alpha1/Theme - * @param {string} name Name of theme - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getthemeHaloRunV1alpha1Theme: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getthemeHaloRunV1alpha1Theme", "name", name); - const localVarPath = - `/apis/theme.halo.run/v1alpha1/themes/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get theme.halo.run/v1alpha1/Theme + * @param {string} name Name of theme + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getthemeHaloRunV1alpha1Theme: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getthemeHaloRunV1alpha1Theme', 'name', name) + const localVarPath = `/apis/theme.halo.run/v1alpha1/themes/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List theme.halo.run/v1alpha1/Theme - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listthemeHaloRunV1alpha1Theme: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/theme.halo.run/v1alpha1/themes`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List theme.halo.run/v1alpha1/Theme + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listthemeHaloRunV1alpha1Theme: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/theme.halo.run/v1alpha1/themes`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update theme.halo.run/v1alpha1/Theme - * @param {string} name Name of theme - * @param {Theme} [theme] Updated theme - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatethemeHaloRunV1alpha1Theme: async ( - name: string, - theme?: Theme, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatethemeHaloRunV1alpha1Theme", "name", name); - const localVarPath = - `/apis/theme.halo.run/v1alpha1/themes/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update theme.halo.run/v1alpha1/Theme + * @param {string} name Name of theme + * @param {Theme} [theme] Updated theme + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatethemeHaloRunV1alpha1Theme: async (name: string, theme?: Theme, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatethemeHaloRunV1alpha1Theme', 'name', name) + const localVarPath = `/apis/theme.halo.run/v1alpha1/themes/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - theme, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(theme, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * ThemeHaloRunV1alpha1ThemeApi - functional programming interface * @export */ -export const ThemeHaloRunV1alpha1ThemeApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator(configuration); - return { - /** - * Create theme.halo.run/v1alpha1/Theme - * @param {Theme} [theme] Fresh theme - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createthemeHaloRunV1alpha1Theme( - theme?: Theme, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createthemeHaloRunV1alpha1Theme( - theme, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete theme.halo.run/v1alpha1/Theme - * @param {string} name Name of theme - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletethemeHaloRunV1alpha1Theme( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletethemeHaloRunV1alpha1Theme( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get theme.halo.run/v1alpha1/Theme - * @param {string} name Name of theme - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getthemeHaloRunV1alpha1Theme( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getthemeHaloRunV1alpha1Theme( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List theme.halo.run/v1alpha1/Theme - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listthemeHaloRunV1alpha1Theme( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listthemeHaloRunV1alpha1Theme( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update theme.halo.run/v1alpha1/Theme - * @param {string} name Name of theme - * @param {Theme} [theme] Updated theme - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatethemeHaloRunV1alpha1Theme( - name: string, - theme?: Theme, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatethemeHaloRunV1alpha1Theme( - name, - theme, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const ThemeHaloRunV1alpha1ThemeApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator(configuration) + return { + /** + * Create theme.halo.run/v1alpha1/Theme + * @param {Theme} [theme] Fresh theme + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createthemeHaloRunV1alpha1Theme(theme?: Theme, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createthemeHaloRunV1alpha1Theme(theme, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ThemeHaloRunV1alpha1ThemeApi.createthemeHaloRunV1alpha1Theme']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete theme.halo.run/v1alpha1/Theme + * @param {string} name Name of theme + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletethemeHaloRunV1alpha1Theme(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletethemeHaloRunV1alpha1Theme(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ThemeHaloRunV1alpha1ThemeApi.deletethemeHaloRunV1alpha1Theme']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get theme.halo.run/v1alpha1/Theme + * @param {string} name Name of theme + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getthemeHaloRunV1alpha1Theme(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getthemeHaloRunV1alpha1Theme(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ThemeHaloRunV1alpha1ThemeApi.getthemeHaloRunV1alpha1Theme']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List theme.halo.run/v1alpha1/Theme + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listthemeHaloRunV1alpha1Theme(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listthemeHaloRunV1alpha1Theme(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ThemeHaloRunV1alpha1ThemeApi.listthemeHaloRunV1alpha1Theme']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update theme.halo.run/v1alpha1/Theme + * @param {string} name Name of theme + * @param {Theme} [theme] Updated theme + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatethemeHaloRunV1alpha1Theme(name: string, theme?: Theme, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatethemeHaloRunV1alpha1Theme(name, theme, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ThemeHaloRunV1alpha1ThemeApi.updatethemeHaloRunV1alpha1Theme']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * ThemeHaloRunV1alpha1ThemeApi - factory interface * @export */ -export const ThemeHaloRunV1alpha1ThemeApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ThemeHaloRunV1alpha1ThemeApiFp(configuration); - return { - /** - * Create theme.halo.run/v1alpha1/Theme - * @param {ThemeHaloRunV1alpha1ThemeApiCreatethemeHaloRunV1alpha1ThemeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createthemeHaloRunV1alpha1Theme( - requestParameters: ThemeHaloRunV1alpha1ThemeApiCreatethemeHaloRunV1alpha1ThemeRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createthemeHaloRunV1alpha1Theme(requestParameters.theme, options) - .then((request) => request(axios, basePath)); - }, - /** - * Delete theme.halo.run/v1alpha1/Theme - * @param {ThemeHaloRunV1alpha1ThemeApiDeletethemeHaloRunV1alpha1ThemeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletethemeHaloRunV1alpha1Theme( - requestParameters: ThemeHaloRunV1alpha1ThemeApiDeletethemeHaloRunV1alpha1ThemeRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletethemeHaloRunV1alpha1Theme(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get theme.halo.run/v1alpha1/Theme - * @param {ThemeHaloRunV1alpha1ThemeApiGetthemeHaloRunV1alpha1ThemeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getthemeHaloRunV1alpha1Theme( - requestParameters: ThemeHaloRunV1alpha1ThemeApiGetthemeHaloRunV1alpha1ThemeRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getthemeHaloRunV1alpha1Theme(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List theme.halo.run/v1alpha1/Theme - * @param {ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1ThemeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listthemeHaloRunV1alpha1Theme( - requestParameters: ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1ThemeRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listthemeHaloRunV1alpha1Theme( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update theme.halo.run/v1alpha1/Theme - * @param {ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1ThemeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatethemeHaloRunV1alpha1Theme( - requestParameters: ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1ThemeRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatethemeHaloRunV1alpha1Theme( - requestParameters.name, - requestParameters.theme, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const ThemeHaloRunV1alpha1ThemeApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ThemeHaloRunV1alpha1ThemeApiFp(configuration) + return { + /** + * Create theme.halo.run/v1alpha1/Theme + * @param {ThemeHaloRunV1alpha1ThemeApiCreatethemeHaloRunV1alpha1ThemeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createthemeHaloRunV1alpha1Theme(requestParameters: ThemeHaloRunV1alpha1ThemeApiCreatethemeHaloRunV1alpha1ThemeRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createthemeHaloRunV1alpha1Theme(requestParameters.theme, options).then((request) => request(axios, basePath)); + }, + /** + * Delete theme.halo.run/v1alpha1/Theme + * @param {ThemeHaloRunV1alpha1ThemeApiDeletethemeHaloRunV1alpha1ThemeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletethemeHaloRunV1alpha1Theme(requestParameters: ThemeHaloRunV1alpha1ThemeApiDeletethemeHaloRunV1alpha1ThemeRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletethemeHaloRunV1alpha1Theme(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get theme.halo.run/v1alpha1/Theme + * @param {ThemeHaloRunV1alpha1ThemeApiGetthemeHaloRunV1alpha1ThemeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getthemeHaloRunV1alpha1Theme(requestParameters: ThemeHaloRunV1alpha1ThemeApiGetthemeHaloRunV1alpha1ThemeRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getthemeHaloRunV1alpha1Theme(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List theme.halo.run/v1alpha1/Theme + * @param {ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1ThemeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listthemeHaloRunV1alpha1Theme(requestParameters: ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1ThemeRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listthemeHaloRunV1alpha1Theme(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update theme.halo.run/v1alpha1/Theme + * @param {ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1ThemeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatethemeHaloRunV1alpha1Theme(requestParameters: ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1ThemeRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatethemeHaloRunV1alpha1Theme(requestParameters.name, requestParameters.theme, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -603,12 +400,12 @@ export const ThemeHaloRunV1alpha1ThemeApiFactory = function ( * @interface ThemeHaloRunV1alpha1ThemeApiCreatethemeHaloRunV1alpha1ThemeRequest */ export interface ThemeHaloRunV1alpha1ThemeApiCreatethemeHaloRunV1alpha1ThemeRequest { - /** - * Fresh theme - * @type {Theme} - * @memberof ThemeHaloRunV1alpha1ThemeApiCreatethemeHaloRunV1alpha1Theme - */ - readonly theme?: Theme; + /** + * Fresh theme + * @type {Theme} + * @memberof ThemeHaloRunV1alpha1ThemeApiCreatethemeHaloRunV1alpha1Theme + */ + readonly theme?: Theme } /** @@ -617,12 +414,12 @@ export interface ThemeHaloRunV1alpha1ThemeApiCreatethemeHaloRunV1alpha1ThemeRequ * @interface ThemeHaloRunV1alpha1ThemeApiDeletethemeHaloRunV1alpha1ThemeRequest */ export interface ThemeHaloRunV1alpha1ThemeApiDeletethemeHaloRunV1alpha1ThemeRequest { - /** - * Name of theme - * @type {string} - * @memberof ThemeHaloRunV1alpha1ThemeApiDeletethemeHaloRunV1alpha1Theme - */ - readonly name: string; + /** + * Name of theme + * @type {string} + * @memberof ThemeHaloRunV1alpha1ThemeApiDeletethemeHaloRunV1alpha1Theme + */ + readonly name: string } /** @@ -631,12 +428,12 @@ export interface ThemeHaloRunV1alpha1ThemeApiDeletethemeHaloRunV1alpha1ThemeRequ * @interface ThemeHaloRunV1alpha1ThemeApiGetthemeHaloRunV1alpha1ThemeRequest */ export interface ThemeHaloRunV1alpha1ThemeApiGetthemeHaloRunV1alpha1ThemeRequest { - /** - * Name of theme - * @type {string} - * @memberof ThemeHaloRunV1alpha1ThemeApiGetthemeHaloRunV1alpha1Theme - */ - readonly name: string; + /** + * Name of theme + * @type {string} + * @memberof ThemeHaloRunV1alpha1ThemeApiGetthemeHaloRunV1alpha1Theme + */ + readonly name: string } /** @@ -645,40 +442,40 @@ export interface ThemeHaloRunV1alpha1ThemeApiGetthemeHaloRunV1alpha1ThemeRequest * @interface ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1ThemeRequest */ export interface ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1ThemeRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme + */ + readonly sort?: Array } /** @@ -687,19 +484,19 @@ export interface ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1ThemeReques * @interface ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1ThemeRequest */ export interface ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1ThemeRequest { - /** - * Name of theme - * @type {string} - * @memberof ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1Theme - */ - readonly name: string; + /** + * Name of theme + * @type {string} + * @memberof ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1Theme + */ + readonly name: string - /** - * Updated theme - * @type {Theme} - * @memberof ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1Theme - */ - readonly theme?: Theme; + /** + * Updated theme + * @type {Theme} + * @memberof ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1Theme + */ + readonly theme?: Theme } /** @@ -709,94 +506,59 @@ export interface ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1ThemeRequ * @extends {BaseAPI} */ export class ThemeHaloRunV1alpha1ThemeApi extends BaseAPI { - /** - * Create theme.halo.run/v1alpha1/Theme - * @param {ThemeHaloRunV1alpha1ThemeApiCreatethemeHaloRunV1alpha1ThemeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ThemeHaloRunV1alpha1ThemeApi - */ - public createthemeHaloRunV1alpha1Theme( - requestParameters: ThemeHaloRunV1alpha1ThemeApiCreatethemeHaloRunV1alpha1ThemeRequest = {}, - options?: AxiosRequestConfig - ) { - return ThemeHaloRunV1alpha1ThemeApiFp(this.configuration) - .createthemeHaloRunV1alpha1Theme(requestParameters.theme, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create theme.halo.run/v1alpha1/Theme + * @param {ThemeHaloRunV1alpha1ThemeApiCreatethemeHaloRunV1alpha1ThemeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ThemeHaloRunV1alpha1ThemeApi + */ + public createthemeHaloRunV1alpha1Theme(requestParameters: ThemeHaloRunV1alpha1ThemeApiCreatethemeHaloRunV1alpha1ThemeRequest = {}, options?: RawAxiosRequestConfig) { + return ThemeHaloRunV1alpha1ThemeApiFp(this.configuration).createthemeHaloRunV1alpha1Theme(requestParameters.theme, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete theme.halo.run/v1alpha1/Theme - * @param {ThemeHaloRunV1alpha1ThemeApiDeletethemeHaloRunV1alpha1ThemeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ThemeHaloRunV1alpha1ThemeApi - */ - public deletethemeHaloRunV1alpha1Theme( - requestParameters: ThemeHaloRunV1alpha1ThemeApiDeletethemeHaloRunV1alpha1ThemeRequest, - options?: AxiosRequestConfig - ) { - return ThemeHaloRunV1alpha1ThemeApiFp(this.configuration) - .deletethemeHaloRunV1alpha1Theme(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete theme.halo.run/v1alpha1/Theme + * @param {ThemeHaloRunV1alpha1ThemeApiDeletethemeHaloRunV1alpha1ThemeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ThemeHaloRunV1alpha1ThemeApi + */ + public deletethemeHaloRunV1alpha1Theme(requestParameters: ThemeHaloRunV1alpha1ThemeApiDeletethemeHaloRunV1alpha1ThemeRequest, options?: RawAxiosRequestConfig) { + return ThemeHaloRunV1alpha1ThemeApiFp(this.configuration).deletethemeHaloRunV1alpha1Theme(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get theme.halo.run/v1alpha1/Theme - * @param {ThemeHaloRunV1alpha1ThemeApiGetthemeHaloRunV1alpha1ThemeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ThemeHaloRunV1alpha1ThemeApi - */ - public getthemeHaloRunV1alpha1Theme( - requestParameters: ThemeHaloRunV1alpha1ThemeApiGetthemeHaloRunV1alpha1ThemeRequest, - options?: AxiosRequestConfig - ) { - return ThemeHaloRunV1alpha1ThemeApiFp(this.configuration) - .getthemeHaloRunV1alpha1Theme(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get theme.halo.run/v1alpha1/Theme + * @param {ThemeHaloRunV1alpha1ThemeApiGetthemeHaloRunV1alpha1ThemeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ThemeHaloRunV1alpha1ThemeApi + */ + public getthemeHaloRunV1alpha1Theme(requestParameters: ThemeHaloRunV1alpha1ThemeApiGetthemeHaloRunV1alpha1ThemeRequest, options?: RawAxiosRequestConfig) { + return ThemeHaloRunV1alpha1ThemeApiFp(this.configuration).getthemeHaloRunV1alpha1Theme(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List theme.halo.run/v1alpha1/Theme - * @param {ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1ThemeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ThemeHaloRunV1alpha1ThemeApi - */ - public listthemeHaloRunV1alpha1Theme( - requestParameters: ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1ThemeRequest = {}, - options?: AxiosRequestConfig - ) { - return ThemeHaloRunV1alpha1ThemeApiFp(this.configuration) - .listthemeHaloRunV1alpha1Theme( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List theme.halo.run/v1alpha1/Theme + * @param {ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1ThemeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ThemeHaloRunV1alpha1ThemeApi + */ + public listthemeHaloRunV1alpha1Theme(requestParameters: ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1ThemeRequest = {}, options?: RawAxiosRequestConfig) { + return ThemeHaloRunV1alpha1ThemeApiFp(this.configuration).listthemeHaloRunV1alpha1Theme(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update theme.halo.run/v1alpha1/Theme - * @param {ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1ThemeRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ThemeHaloRunV1alpha1ThemeApi - */ - public updatethemeHaloRunV1alpha1Theme( - requestParameters: ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1ThemeRequest, - options?: AxiosRequestConfig - ) { - return ThemeHaloRunV1alpha1ThemeApiFp(this.configuration) - .updatethemeHaloRunV1alpha1Theme( - requestParameters.name, - requestParameters.theme, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update theme.halo.run/v1alpha1/Theme + * @param {ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1ThemeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ThemeHaloRunV1alpha1ThemeApi + */ + public updatethemeHaloRunV1alpha1Theme(requestParameters: ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1ThemeRequest, options?: RawAxiosRequestConfig) { + return ThemeHaloRunV1alpha1ThemeApiFp(this.configuration).updatethemeHaloRunV1alpha1Theme(requestParameters.name, requestParameters.theme, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/uc-api-content-halo-run-v1alpha1-attachment-api.ts b/ui/packages/api-client/src/api/uc-api-content-halo-run-v1alpha1-attachment-api.ts index e38ab77ae..b0e0c023d 100644 --- a/ui/packages/api-client/src/api/uc-api-content-halo-run-v1alpha1-attachment-api.ts +++ b/ui/packages/api-client/src/api/uc-api-content-halo-run-v1alpha1-attachment-api.ts @@ -5,206 +5,138 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Attachment } from "../models"; +import { Attachment } from '../models'; /** * UcApiContentHaloRunV1alpha1AttachmentApi - axios parameter creator * @export */ -export const UcApiContentHaloRunV1alpha1AttachmentApiAxiosParamCreator = - function (configuration?: Configuration) { +export const UcApiContentHaloRunV1alpha1AttachmentApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Create attachment for the given post. - * @param {File} file - * @param {boolean} [waitForPermalink] Wait for permalink. - * @param {string} [postName] Post name. - * @param {string} [singlePageName] Single page name. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createAttachmentForPost: async ( - file: File, - waitForPermalink?: boolean, - postName?: string, - singlePageName?: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'file' is not null or undefined - assertParamExists("createAttachmentForPost", "file", file); - const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/attachments`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * Create attachment for the given post. + * @param {File} file + * @param {boolean} [waitForPermalink] Wait for permalink. + * @param {string} [postName] Post name. + * @param {string} [singlePageName] Single page name. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createAttachmentForPost: async (file: File, waitForPermalink?: boolean, postName?: string, singlePageName?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'file' is not null or undefined + assertParamExists('createAttachmentForPost', 'file', file) + const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/attachments`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - const localVarFormParams = new ((configuration && - configuration.formDataCtor) || - FormData)(); + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (waitForPermalink !== undefined) { - localVarQueryParameter["waitForPermalink"] = waitForPermalink; - } + if (waitForPermalink !== undefined) { + localVarQueryParameter['waitForPermalink'] = waitForPermalink; + } - if (file !== undefined) { - localVarFormParams.append("file", file as any); - } - if (postName !== undefined) { - localVarFormParams.append("postName", postName as any); - } + if (file !== undefined) { + localVarFormParams.append('file', file as any); + } + + if (postName !== undefined) { + localVarFormParams.append('postName', postName as any); + } + + if (singlePageName !== undefined) { + localVarFormParams.append('singlePageName', singlePageName as any); + } + + + localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = localVarFormParams; - if (singlePageName !== undefined) { - localVarFormParams.append("singlePageName", singlePageName as any); - } - - localVarHeaderParameter["Content-Type"] = "multipart/form-data"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = localVarFormParams; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * UcApiContentHaloRunV1alpha1AttachmentApi - functional programming interface * @export */ -export const UcApiContentHaloRunV1alpha1AttachmentApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - UcApiContentHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration); - return { - /** - * Create attachment for the given post. - * @param {File} file - * @param {boolean} [waitForPermalink] Wait for permalink. - * @param {string} [postName] Post name. - * @param {string} [singlePageName] Single page name. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createAttachmentForPost( - file: File, - waitForPermalink?: boolean, - postName?: string, - singlePageName?: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createAttachmentForPost( - file, - waitForPermalink, - postName, - singlePageName, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const UcApiContentHaloRunV1alpha1AttachmentApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = UcApiContentHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration) + return { + /** + * Create attachment for the given post. + * @param {File} file + * @param {boolean} [waitForPermalink] Wait for permalink. + * @param {string} [postName] Post name. + * @param {string} [singlePageName] Single page name. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createAttachmentForPost(file: File, waitForPermalink?: boolean, postName?: string, singlePageName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createAttachmentForPost(file, waitForPermalink, postName, singlePageName, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['UcApiContentHaloRunV1alpha1AttachmentApi.createAttachmentForPost']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * UcApiContentHaloRunV1alpha1AttachmentApi - factory interface * @export */ -export const UcApiContentHaloRunV1alpha1AttachmentApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = UcApiContentHaloRunV1alpha1AttachmentApiFp(configuration); - return { - /** - * Create attachment for the given post. - * @param {UcApiContentHaloRunV1alpha1AttachmentApiCreateAttachmentForPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createAttachmentForPost( - requestParameters: UcApiContentHaloRunV1alpha1AttachmentApiCreateAttachmentForPostRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createAttachmentForPost( - requestParameters.file, - requestParameters.waitForPermalink, - requestParameters.postName, - requestParameters.singlePageName, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const UcApiContentHaloRunV1alpha1AttachmentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = UcApiContentHaloRunV1alpha1AttachmentApiFp(configuration) + return { + /** + * Create attachment for the given post. + * @param {UcApiContentHaloRunV1alpha1AttachmentApiCreateAttachmentForPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createAttachmentForPost(requestParameters: UcApiContentHaloRunV1alpha1AttachmentApiCreateAttachmentForPostRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createAttachmentForPost(requestParameters.file, requestParameters.waitForPermalink, requestParameters.postName, requestParameters.singlePageName, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -213,33 +145,33 @@ export const UcApiContentHaloRunV1alpha1AttachmentApiFactory = function ( * @interface UcApiContentHaloRunV1alpha1AttachmentApiCreateAttachmentForPostRequest */ export interface UcApiContentHaloRunV1alpha1AttachmentApiCreateAttachmentForPostRequest { - /** - * - * @type {File} - * @memberof UcApiContentHaloRunV1alpha1AttachmentApiCreateAttachmentForPost - */ - readonly file: File; + /** + * + * @type {File} + * @memberof UcApiContentHaloRunV1alpha1AttachmentApiCreateAttachmentForPost + */ + readonly file: File - /** - * Wait for permalink. - * @type {boolean} - * @memberof UcApiContentHaloRunV1alpha1AttachmentApiCreateAttachmentForPost - */ - readonly waitForPermalink?: boolean; + /** + * Wait for permalink. + * @type {boolean} + * @memberof UcApiContentHaloRunV1alpha1AttachmentApiCreateAttachmentForPost + */ + readonly waitForPermalink?: boolean - /** - * Post name. - * @type {string} - * @memberof UcApiContentHaloRunV1alpha1AttachmentApiCreateAttachmentForPost - */ - readonly postName?: string; + /** + * Post name. + * @type {string} + * @memberof UcApiContentHaloRunV1alpha1AttachmentApiCreateAttachmentForPost + */ + readonly postName?: string - /** - * Single page name. - * @type {string} - * @memberof UcApiContentHaloRunV1alpha1AttachmentApiCreateAttachmentForPost - */ - readonly singlePageName?: string; + /** + * Single page name. + * @type {string} + * @memberof UcApiContentHaloRunV1alpha1AttachmentApiCreateAttachmentForPost + */ + readonly singlePageName?: string } /** @@ -249,25 +181,15 @@ export interface UcApiContentHaloRunV1alpha1AttachmentApiCreateAttachmentForPost * @extends {BaseAPI} */ export class UcApiContentHaloRunV1alpha1AttachmentApi extends BaseAPI { - /** - * Create attachment for the given post. - * @param {UcApiContentHaloRunV1alpha1AttachmentApiCreateAttachmentForPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UcApiContentHaloRunV1alpha1AttachmentApi - */ - public createAttachmentForPost( - requestParameters: UcApiContentHaloRunV1alpha1AttachmentApiCreateAttachmentForPostRequest, - options?: AxiosRequestConfig - ) { - return UcApiContentHaloRunV1alpha1AttachmentApiFp(this.configuration) - .createAttachmentForPost( - requestParameters.file, - requestParameters.waitForPermalink, - requestParameters.postName, - requestParameters.singlePageName, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create attachment for the given post. + * @param {UcApiContentHaloRunV1alpha1AttachmentApiCreateAttachmentForPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UcApiContentHaloRunV1alpha1AttachmentApi + */ + public createAttachmentForPost(requestParameters: UcApiContentHaloRunV1alpha1AttachmentApiCreateAttachmentForPostRequest, options?: RawAxiosRequestConfig) { + return UcApiContentHaloRunV1alpha1AttachmentApiFp(this.configuration).createAttachmentForPost(requestParameters.file, requestParameters.waitForPermalink, requestParameters.postName, requestParameters.singlePageName, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/uc-api-content-halo-run-v1alpha1-post-api.ts b/ui/packages/api-client/src/api/uc-api-content-halo-run-v1alpha1-post-api.ts index e3534c87e..914b28475 100644 --- a/ui/packages/api-client/src/api/uc-api-content-halo-run-v1alpha1-post-api.ts +++ b/ui/packages/api-client/src/api/uc-api-content-halo-run-v1alpha1-post-api.ts @@ -5,912 +5,604 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { ListedPostList } from "../models"; +import { ListedPostList } from '../models'; // @ts-ignore -import { Post } from "../models"; +import { Post } from '../models'; // @ts-ignore -import { Snapshot } from "../models"; +import { Snapshot } from '../models'; /** * UcApiContentHaloRunV1alpha1PostApi - axios parameter creator * @export */ -export const UcApiContentHaloRunV1alpha1PostApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create my post. If you want to create a post with content, please set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type. - * @param {Post} [post] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createMyPost: async ( - post?: Post, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/posts`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const UcApiContentHaloRunV1alpha1PostApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create my post. If you want to create a post with content, please set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type. + * @param {Post} [post] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createMyPost: async (post?: Post, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/posts`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - post, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get post that belongs to the current user. - * @param {string} name Post name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getMyPost: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getMyPost", "name", name); - const localVarPath = - `/apis/uc.api.content.halo.run/v1alpha1/posts/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(post, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get post that belongs to the current user. + * @param {string} name Post name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMyPost: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getMyPost', 'name', name) + const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/posts/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get my post draft. - * @param {string} name Post name - * @param {boolean} [patched] Should include patched content and raw or not. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getMyPostDraft: async ( - name: string, - patched?: boolean, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getMyPostDraft", "name", name); - const localVarPath = - `/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/draft`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get my post draft. + * @param {string} name Post name + * @param {boolean} [patched] Should include patched content and raw or not. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMyPostDraft: async (name: string, patched?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getMyPostDraft', 'name', name) + const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/draft` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (patched !== undefined) { - localVarQueryParameter["patched"] = patched; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List posts owned by the current user. - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {string} [keyword] Posts filtered by keyword. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase] - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp,publishTime - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listMyPosts: async ( - fieldSelector?: Array, - keyword?: string, - labelSelector?: Array, - page?: number, - publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED", - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/posts`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (patched !== undefined) { + localVarQueryParameter['patched'] = patched; + } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List posts owned by the current user. + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {ListMyPostsPublishPhaseEnum} [publishPhase] Posts filtered by publish phase. + * @param {string} [keyword] Posts filtered by keyword. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listMyPosts: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, publishPhase?: ListMyPostsPublishPhaseEnum, keyword?: string, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/posts`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (keyword !== undefined) { - localVarQueryParameter["keyword"] = keyword; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (publishPhase !== undefined) { - localVarQueryParameter["publishPhase"] = publishPhase; - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Publish my post. - * @param {string} name Post name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - publishMyPost: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("publishMyPost", "name", name); - const localVarPath = - `/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/publish`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (publishPhase !== undefined) { + localVarQueryParameter['publishPhase'] = publishPhase; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (keyword !== undefined) { + localVarQueryParameter['keyword'] = keyword; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Publish my post. + * @param {string} name Post name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + publishMyPost: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('publishMyPost', 'name', name) + const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/publish` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Unpublish my post. - * @param {string} name Post name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - unpublishMyPost: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("unpublishMyPost", "name", name); - const localVarPath = - `/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/unpublish`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update my post. - * @param {string} name Post name - * @param {Post} [post] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateMyPost: async ( - name: string, - post?: Post, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updateMyPost", "name", name); - const localVarPath = - `/apis/uc.api.content.halo.run/v1alpha1/posts/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Unpublish my post. + * @param {string} name Post name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + unpublishMyPost: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('unpublishMyPost', 'name', name) + const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/unpublish` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - post, - localVarRequestOptions, - configuration - ); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update draft of my post. Please make sure set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type. - * @param {string} name Post name - * @param {Snapshot} [snapshot] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateMyPostDraft: async ( - name: string, - snapshot?: Snapshot, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updateMyPostDraft", "name", name); - const localVarPath = - `/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/draft`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update my post. + * @param {string} name Post name + * @param {Post} [post] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateMyPost: async (name: string, post?: Post, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updateMyPost', 'name', name) + const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/posts/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - snapshot, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(post, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update draft of my post. Please make sure set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type. + * @param {string} name Post name + * @param {Snapshot} [snapshot] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateMyPostDraft: async (name: string, snapshot?: Snapshot, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updateMyPostDraft', 'name', name) + const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/draft` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(snapshot, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * UcApiContentHaloRunV1alpha1PostApi - functional programming interface * @export */ -export const UcApiContentHaloRunV1alpha1PostApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - UcApiContentHaloRunV1alpha1PostApiAxiosParamCreator(configuration); - return { - /** - * Create my post. If you want to create a post with content, please set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type. - * @param {Post} [post] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createMyPost( - post?: Post, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.createMyPost( - post, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get post that belongs to the current user. - * @param {string} name Post name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getMyPost( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.getMyPost( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get my post draft. - * @param {string} name Post name - * @param {boolean} [patched] Should include patched content and raw or not. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getMyPostDraft( - name: string, - patched?: boolean, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.getMyPostDraft( - name, - patched, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List posts owned by the current user. - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {string} [keyword] Posts filtered by keyword. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase] - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp,publishTime - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listMyPosts( - fieldSelector?: Array, - keyword?: string, - labelSelector?: Array, - page?: number, - publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED", - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.listMyPosts( - fieldSelector, - keyword, - labelSelector, - page, - publishPhase, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Publish my post. - * @param {string} name Post name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async publishMyPost( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.publishMyPost( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Unpublish my post. - * @param {string} name Post name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async unpublishMyPost( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.unpublishMyPost( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update my post. - * @param {string} name Post name - * @param {Post} [post] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateMyPost( - name: string, - post?: Post, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateMyPost( - name, - post, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update draft of my post. Please make sure set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type. - * @param {string} name Post name - * @param {Snapshot} [snapshot] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateMyPostDraft( - name: string, - snapshot?: Snapshot, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updateMyPostDraft( - name, - snapshot, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const UcApiContentHaloRunV1alpha1PostApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = UcApiContentHaloRunV1alpha1PostApiAxiosParamCreator(configuration) + return { + /** + * Create my post. If you want to create a post with content, please set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type. + * @param {Post} [post] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createMyPost(post?: Post, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createMyPost(post, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['UcApiContentHaloRunV1alpha1PostApi.createMyPost']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get post that belongs to the current user. + * @param {string} name Post name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getMyPost(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getMyPost(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['UcApiContentHaloRunV1alpha1PostApi.getMyPost']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get my post draft. + * @param {string} name Post name + * @param {boolean} [patched] Should include patched content and raw or not. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getMyPostDraft(name: string, patched?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getMyPostDraft(name, patched, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['UcApiContentHaloRunV1alpha1PostApi.getMyPostDraft']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List posts owned by the current user. + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {ListMyPostsPublishPhaseEnum} [publishPhase] Posts filtered by publish phase. + * @param {string} [keyword] Posts filtered by keyword. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listMyPosts(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, publishPhase?: ListMyPostsPublishPhaseEnum, keyword?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listMyPosts(page, size, labelSelector, fieldSelector, sort, publishPhase, keyword, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['UcApiContentHaloRunV1alpha1PostApi.listMyPosts']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Publish my post. + * @param {string} name Post name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async publishMyPost(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.publishMyPost(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['UcApiContentHaloRunV1alpha1PostApi.publishMyPost']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Unpublish my post. + * @param {string} name Post name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async unpublishMyPost(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.unpublishMyPost(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['UcApiContentHaloRunV1alpha1PostApi.unpublishMyPost']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update my post. + * @param {string} name Post name + * @param {Post} [post] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateMyPost(name: string, post?: Post, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateMyPost(name, post, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['UcApiContentHaloRunV1alpha1PostApi.updateMyPost']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update draft of my post. Please make sure set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type. + * @param {string} name Post name + * @param {Snapshot} [snapshot] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateMyPostDraft(name: string, snapshot?: Snapshot, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateMyPostDraft(name, snapshot, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['UcApiContentHaloRunV1alpha1PostApi.updateMyPostDraft']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * UcApiContentHaloRunV1alpha1PostApi - factory interface * @export */ -export const UcApiContentHaloRunV1alpha1PostApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = UcApiContentHaloRunV1alpha1PostApiFp(configuration); - return { - /** - * Create my post. If you want to create a post with content, please set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type. - * @param {UcApiContentHaloRunV1alpha1PostApiCreateMyPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createMyPost( - requestParameters: UcApiContentHaloRunV1alpha1PostApiCreateMyPostRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createMyPost(requestParameters.post, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get post that belongs to the current user. - * @param {UcApiContentHaloRunV1alpha1PostApiGetMyPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getMyPost( - requestParameters: UcApiContentHaloRunV1alpha1PostApiGetMyPostRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getMyPost(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get my post draft. - * @param {UcApiContentHaloRunV1alpha1PostApiGetMyPostDraftRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getMyPostDraft( - requestParameters: UcApiContentHaloRunV1alpha1PostApiGetMyPostDraftRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getMyPostDraft( - requestParameters.name, - requestParameters.patched, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * List posts owned by the current user. - * @param {UcApiContentHaloRunV1alpha1PostApiListMyPostsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listMyPosts( - requestParameters: UcApiContentHaloRunV1alpha1PostApiListMyPostsRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listMyPosts( - requestParameters.fieldSelector, - requestParameters.keyword, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.publishPhase, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Publish my post. - * @param {UcApiContentHaloRunV1alpha1PostApiPublishMyPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - publishMyPost( - requestParameters: UcApiContentHaloRunV1alpha1PostApiPublishMyPostRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .publishMyPost(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Unpublish my post. - * @param {UcApiContentHaloRunV1alpha1PostApiUnpublishMyPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - unpublishMyPost( - requestParameters: UcApiContentHaloRunV1alpha1PostApiUnpublishMyPostRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .unpublishMyPost(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Update my post. - * @param {UcApiContentHaloRunV1alpha1PostApiUpdateMyPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateMyPost( - requestParameters: UcApiContentHaloRunV1alpha1PostApiUpdateMyPostRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updateMyPost(requestParameters.name, requestParameters.post, options) - .then((request) => request(axios, basePath)); - }, - /** - * Update draft of my post. Please make sure set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type. - * @param {UcApiContentHaloRunV1alpha1PostApiUpdateMyPostDraftRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateMyPostDraft( - requestParameters: UcApiContentHaloRunV1alpha1PostApiUpdateMyPostDraftRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updateMyPostDraft( - requestParameters.name, - requestParameters.snapshot, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const UcApiContentHaloRunV1alpha1PostApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = UcApiContentHaloRunV1alpha1PostApiFp(configuration) + return { + /** + * Create my post. If you want to create a post with content, please set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type. + * @param {UcApiContentHaloRunV1alpha1PostApiCreateMyPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createMyPost(requestParameters: UcApiContentHaloRunV1alpha1PostApiCreateMyPostRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createMyPost(requestParameters.post, options).then((request) => request(axios, basePath)); + }, + /** + * Get post that belongs to the current user. + * @param {UcApiContentHaloRunV1alpha1PostApiGetMyPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMyPost(requestParameters: UcApiContentHaloRunV1alpha1PostApiGetMyPostRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getMyPost(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get my post draft. + * @param {UcApiContentHaloRunV1alpha1PostApiGetMyPostDraftRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMyPostDraft(requestParameters: UcApiContentHaloRunV1alpha1PostApiGetMyPostDraftRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getMyPostDraft(requestParameters.name, requestParameters.patched, options).then((request) => request(axios, basePath)); + }, + /** + * List posts owned by the current user. + * @param {UcApiContentHaloRunV1alpha1PostApiListMyPostsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listMyPosts(requestParameters: UcApiContentHaloRunV1alpha1PostApiListMyPostsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listMyPosts(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, requestParameters.publishPhase, requestParameters.keyword, options).then((request) => request(axios, basePath)); + }, + /** + * Publish my post. + * @param {UcApiContentHaloRunV1alpha1PostApiPublishMyPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + publishMyPost(requestParameters: UcApiContentHaloRunV1alpha1PostApiPublishMyPostRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.publishMyPost(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Unpublish my post. + * @param {UcApiContentHaloRunV1alpha1PostApiUnpublishMyPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + unpublishMyPost(requestParameters: UcApiContentHaloRunV1alpha1PostApiUnpublishMyPostRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.unpublishMyPost(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Update my post. + * @param {UcApiContentHaloRunV1alpha1PostApiUpdateMyPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateMyPost(requestParameters: UcApiContentHaloRunV1alpha1PostApiUpdateMyPostRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updateMyPost(requestParameters.name, requestParameters.post, options).then((request) => request(axios, basePath)); + }, + /** + * Update draft of my post. Please make sure set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type. + * @param {UcApiContentHaloRunV1alpha1PostApiUpdateMyPostDraftRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateMyPostDraft(requestParameters: UcApiContentHaloRunV1alpha1PostApiUpdateMyPostDraftRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updateMyPostDraft(requestParameters.name, requestParameters.snapshot, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -919,12 +611,12 @@ export const UcApiContentHaloRunV1alpha1PostApiFactory = function ( * @interface UcApiContentHaloRunV1alpha1PostApiCreateMyPostRequest */ export interface UcApiContentHaloRunV1alpha1PostApiCreateMyPostRequest { - /** - * - * @type {Post} - * @memberof UcApiContentHaloRunV1alpha1PostApiCreateMyPost - */ - readonly post?: Post; + /** + * + * @type {Post} + * @memberof UcApiContentHaloRunV1alpha1PostApiCreateMyPost + */ + readonly post?: Post } /** @@ -933,12 +625,12 @@ export interface UcApiContentHaloRunV1alpha1PostApiCreateMyPostRequest { * @interface UcApiContentHaloRunV1alpha1PostApiGetMyPostRequest */ export interface UcApiContentHaloRunV1alpha1PostApiGetMyPostRequest { - /** - * Post name - * @type {string} - * @memberof UcApiContentHaloRunV1alpha1PostApiGetMyPost - */ - readonly name: string; + /** + * Post name + * @type {string} + * @memberof UcApiContentHaloRunV1alpha1PostApiGetMyPost + */ + readonly name: string } /** @@ -947,19 +639,19 @@ export interface UcApiContentHaloRunV1alpha1PostApiGetMyPostRequest { * @interface UcApiContentHaloRunV1alpha1PostApiGetMyPostDraftRequest */ export interface UcApiContentHaloRunV1alpha1PostApiGetMyPostDraftRequest { - /** - * Post name - * @type {string} - * @memberof UcApiContentHaloRunV1alpha1PostApiGetMyPostDraft - */ - readonly name: string; + /** + * Post name + * @type {string} + * @memberof UcApiContentHaloRunV1alpha1PostApiGetMyPostDraft + */ + readonly name: string - /** - * Should include patched content and raw or not. - * @type {boolean} - * @memberof UcApiContentHaloRunV1alpha1PostApiGetMyPostDraft - */ - readonly patched?: boolean; + /** + * Should include patched content and raw or not. + * @type {boolean} + * @memberof UcApiContentHaloRunV1alpha1PostApiGetMyPostDraft + */ + readonly patched?: boolean } /** @@ -968,54 +660,54 @@ export interface UcApiContentHaloRunV1alpha1PostApiGetMyPostDraftRequest { * @interface UcApiContentHaloRunV1alpha1PostApiListMyPostsRequest */ export interface UcApiContentHaloRunV1alpha1PostApiListMyPostsRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof UcApiContentHaloRunV1alpha1PostApiListMyPosts - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof UcApiContentHaloRunV1alpha1PostApiListMyPosts + */ + readonly page?: number - /** - * Posts filtered by keyword. - * @type {string} - * @memberof UcApiContentHaloRunV1alpha1PostApiListMyPosts - */ - readonly keyword?: string; + /** + * Size number. Default is 0. + * @type {number} + * @memberof UcApiContentHaloRunV1alpha1PostApiListMyPosts + */ + readonly size?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof UcApiContentHaloRunV1alpha1PostApiListMyPosts - */ - readonly labelSelector?: Array; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof UcApiContentHaloRunV1alpha1PostApiListMyPosts + */ + readonly labelSelector?: Array - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof UcApiContentHaloRunV1alpha1PostApiListMyPosts - */ - readonly page?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof UcApiContentHaloRunV1alpha1PostApiListMyPosts + */ + readonly fieldSelector?: Array - /** - * - * @type {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} - * @memberof UcApiContentHaloRunV1alpha1PostApiListMyPosts - */ - readonly publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED"; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof UcApiContentHaloRunV1alpha1PostApiListMyPosts + */ + readonly sort?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof UcApiContentHaloRunV1alpha1PostApiListMyPosts - */ - readonly size?: number; + /** + * Posts filtered by publish phase. + * @type {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} + * @memberof UcApiContentHaloRunV1alpha1PostApiListMyPosts + */ + readonly publishPhase?: ListMyPostsPublishPhaseEnum - /** - * Sort property and direction of the list result. Supported fields: creationTimestamp,publishTime - * @type {Array} - * @memberof UcApiContentHaloRunV1alpha1PostApiListMyPosts - */ - readonly sort?: Array; + /** + * Posts filtered by keyword. + * @type {string} + * @memberof UcApiContentHaloRunV1alpha1PostApiListMyPosts + */ + readonly keyword?: string } /** @@ -1024,12 +716,12 @@ export interface UcApiContentHaloRunV1alpha1PostApiListMyPostsRequest { * @interface UcApiContentHaloRunV1alpha1PostApiPublishMyPostRequest */ export interface UcApiContentHaloRunV1alpha1PostApiPublishMyPostRequest { - /** - * Post name - * @type {string} - * @memberof UcApiContentHaloRunV1alpha1PostApiPublishMyPost - */ - readonly name: string; + /** + * Post name + * @type {string} + * @memberof UcApiContentHaloRunV1alpha1PostApiPublishMyPost + */ + readonly name: string } /** @@ -1038,12 +730,12 @@ export interface UcApiContentHaloRunV1alpha1PostApiPublishMyPostRequest { * @interface UcApiContentHaloRunV1alpha1PostApiUnpublishMyPostRequest */ export interface UcApiContentHaloRunV1alpha1PostApiUnpublishMyPostRequest { - /** - * Post name - * @type {string} - * @memberof UcApiContentHaloRunV1alpha1PostApiUnpublishMyPost - */ - readonly name: string; + /** + * Post name + * @type {string} + * @memberof UcApiContentHaloRunV1alpha1PostApiUnpublishMyPost + */ + readonly name: string } /** @@ -1052,19 +744,19 @@ export interface UcApiContentHaloRunV1alpha1PostApiUnpublishMyPostRequest { * @interface UcApiContentHaloRunV1alpha1PostApiUpdateMyPostRequest */ export interface UcApiContentHaloRunV1alpha1PostApiUpdateMyPostRequest { - /** - * Post name - * @type {string} - * @memberof UcApiContentHaloRunV1alpha1PostApiUpdateMyPost - */ - readonly name: string; + /** + * Post name + * @type {string} + * @memberof UcApiContentHaloRunV1alpha1PostApiUpdateMyPost + */ + readonly name: string - /** - * - * @type {Post} - * @memberof UcApiContentHaloRunV1alpha1PostApiUpdateMyPost - */ - readonly post?: Post; + /** + * + * @type {Post} + * @memberof UcApiContentHaloRunV1alpha1PostApiUpdateMyPost + */ + readonly post?: Post } /** @@ -1073,19 +765,19 @@ export interface UcApiContentHaloRunV1alpha1PostApiUpdateMyPostRequest { * @interface UcApiContentHaloRunV1alpha1PostApiUpdateMyPostDraftRequest */ export interface UcApiContentHaloRunV1alpha1PostApiUpdateMyPostDraftRequest { - /** - * Post name - * @type {string} - * @memberof UcApiContentHaloRunV1alpha1PostApiUpdateMyPostDraft - */ - readonly name: string; + /** + * Post name + * @type {string} + * @memberof UcApiContentHaloRunV1alpha1PostApiUpdateMyPostDraft + */ + readonly name: string - /** - * - * @type {Snapshot} - * @memberof UcApiContentHaloRunV1alpha1PostApiUpdateMyPostDraft - */ - readonly snapshot?: Snapshot; + /** + * + * @type {Snapshot} + * @memberof UcApiContentHaloRunV1alpha1PostApiUpdateMyPostDraft + */ + readonly snapshot?: Snapshot } /** @@ -1095,148 +787,102 @@ export interface UcApiContentHaloRunV1alpha1PostApiUpdateMyPostDraftRequest { * @extends {BaseAPI} */ export class UcApiContentHaloRunV1alpha1PostApi extends BaseAPI { - /** - * Create my post. If you want to create a post with content, please set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type. - * @param {UcApiContentHaloRunV1alpha1PostApiCreateMyPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UcApiContentHaloRunV1alpha1PostApi - */ - public createMyPost( - requestParameters: UcApiContentHaloRunV1alpha1PostApiCreateMyPostRequest = {}, - options?: AxiosRequestConfig - ) { - return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration) - .createMyPost(requestParameters.post, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create my post. If you want to create a post with content, please set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type. + * @param {UcApiContentHaloRunV1alpha1PostApiCreateMyPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UcApiContentHaloRunV1alpha1PostApi + */ + public createMyPost(requestParameters: UcApiContentHaloRunV1alpha1PostApiCreateMyPostRequest = {}, options?: RawAxiosRequestConfig) { + return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration).createMyPost(requestParameters.post, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get post that belongs to the current user. - * @param {UcApiContentHaloRunV1alpha1PostApiGetMyPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UcApiContentHaloRunV1alpha1PostApi - */ - public getMyPost( - requestParameters: UcApiContentHaloRunV1alpha1PostApiGetMyPostRequest, - options?: AxiosRequestConfig - ) { - return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration) - .getMyPost(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get post that belongs to the current user. + * @param {UcApiContentHaloRunV1alpha1PostApiGetMyPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UcApiContentHaloRunV1alpha1PostApi + */ + public getMyPost(requestParameters: UcApiContentHaloRunV1alpha1PostApiGetMyPostRequest, options?: RawAxiosRequestConfig) { + return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration).getMyPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get my post draft. - * @param {UcApiContentHaloRunV1alpha1PostApiGetMyPostDraftRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UcApiContentHaloRunV1alpha1PostApi - */ - public getMyPostDraft( - requestParameters: UcApiContentHaloRunV1alpha1PostApiGetMyPostDraftRequest, - options?: AxiosRequestConfig - ) { - return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration) - .getMyPostDraft( - requestParameters.name, - requestParameters.patched, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get my post draft. + * @param {UcApiContentHaloRunV1alpha1PostApiGetMyPostDraftRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UcApiContentHaloRunV1alpha1PostApi + */ + public getMyPostDraft(requestParameters: UcApiContentHaloRunV1alpha1PostApiGetMyPostDraftRequest, options?: RawAxiosRequestConfig) { + return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration).getMyPostDraft(requestParameters.name, requestParameters.patched, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List posts owned by the current user. - * @param {UcApiContentHaloRunV1alpha1PostApiListMyPostsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UcApiContentHaloRunV1alpha1PostApi - */ - public listMyPosts( - requestParameters: UcApiContentHaloRunV1alpha1PostApiListMyPostsRequest = {}, - options?: AxiosRequestConfig - ) { - return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration) - .listMyPosts( - requestParameters.fieldSelector, - requestParameters.keyword, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.publishPhase, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List posts owned by the current user. + * @param {UcApiContentHaloRunV1alpha1PostApiListMyPostsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UcApiContentHaloRunV1alpha1PostApi + */ + public listMyPosts(requestParameters: UcApiContentHaloRunV1alpha1PostApiListMyPostsRequest = {}, options?: RawAxiosRequestConfig) { + return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration).listMyPosts(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, requestParameters.publishPhase, requestParameters.keyword, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Publish my post. - * @param {UcApiContentHaloRunV1alpha1PostApiPublishMyPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UcApiContentHaloRunV1alpha1PostApi - */ - public publishMyPost( - requestParameters: UcApiContentHaloRunV1alpha1PostApiPublishMyPostRequest, - options?: AxiosRequestConfig - ) { - return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration) - .publishMyPost(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Publish my post. + * @param {UcApiContentHaloRunV1alpha1PostApiPublishMyPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UcApiContentHaloRunV1alpha1PostApi + */ + public publishMyPost(requestParameters: UcApiContentHaloRunV1alpha1PostApiPublishMyPostRequest, options?: RawAxiosRequestConfig) { + return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration).publishMyPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Unpublish my post. - * @param {UcApiContentHaloRunV1alpha1PostApiUnpublishMyPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UcApiContentHaloRunV1alpha1PostApi - */ - public unpublishMyPost( - requestParameters: UcApiContentHaloRunV1alpha1PostApiUnpublishMyPostRequest, - options?: AxiosRequestConfig - ) { - return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration) - .unpublishMyPost(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Unpublish my post. + * @param {UcApiContentHaloRunV1alpha1PostApiUnpublishMyPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UcApiContentHaloRunV1alpha1PostApi + */ + public unpublishMyPost(requestParameters: UcApiContentHaloRunV1alpha1PostApiUnpublishMyPostRequest, options?: RawAxiosRequestConfig) { + return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration).unpublishMyPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update my post. - * @param {UcApiContentHaloRunV1alpha1PostApiUpdateMyPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UcApiContentHaloRunV1alpha1PostApi - */ - public updateMyPost( - requestParameters: UcApiContentHaloRunV1alpha1PostApiUpdateMyPostRequest, - options?: AxiosRequestConfig - ) { - return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration) - .updateMyPost(requestParameters.name, requestParameters.post, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update my post. + * @param {UcApiContentHaloRunV1alpha1PostApiUpdateMyPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UcApiContentHaloRunV1alpha1PostApi + */ + public updateMyPost(requestParameters: UcApiContentHaloRunV1alpha1PostApiUpdateMyPostRequest, options?: RawAxiosRequestConfig) { + return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration).updateMyPost(requestParameters.name, requestParameters.post, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update draft of my post. Please make sure set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type. - * @param {UcApiContentHaloRunV1alpha1PostApiUpdateMyPostDraftRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UcApiContentHaloRunV1alpha1PostApi - */ - public updateMyPostDraft( - requestParameters: UcApiContentHaloRunV1alpha1PostApiUpdateMyPostDraftRequest, - options?: AxiosRequestConfig - ) { - return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration) - .updateMyPostDraft( - requestParameters.name, - requestParameters.snapshot, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update draft of my post. Please make sure set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type. + * @param {UcApiContentHaloRunV1alpha1PostApiUpdateMyPostDraftRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UcApiContentHaloRunV1alpha1PostApi + */ + public updateMyPostDraft(requestParameters: UcApiContentHaloRunV1alpha1PostApiUpdateMyPostDraftRequest, options?: RawAxiosRequestConfig) { + return UcApiContentHaloRunV1alpha1PostApiFp(this.configuration).updateMyPostDraft(requestParameters.name, requestParameters.snapshot, options).then((request) => request(this.axios, this.basePath)); + } } + +/** + * @export + */ +export const ListMyPostsPublishPhaseEnum = { + Draft: 'DRAFT', + PendingApproval: 'PENDING_APPROVAL', + Published: 'PUBLISHED', + Failed: 'FAILED' +} as const; +export type ListMyPostsPublishPhaseEnum = typeof ListMyPostsPublishPhaseEnum[keyof typeof ListMyPostsPublishPhaseEnum]; diff --git a/ui/packages/api-client/src/api/uc-api-content-halo-run-v1alpha1-snapshot-api.ts b/ui/packages/api-client/src/api/uc-api-content-halo-run-v1alpha1-snapshot-api.ts index 2867d13a2..36463d195 100644 --- a/ui/packages/api-client/src/api/uc-api-content-halo-run-v1alpha1-snapshot-api.ts +++ b/ui/packages/api-client/src/api/uc-api-content-halo-run-v1alpha1-snapshot-api.ts @@ -5,192 +5,127 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Snapshot } from "../models"; +import { Snapshot } from '../models'; /** * UcApiContentHaloRunV1alpha1SnapshotApi - axios parameter creator * @export */ -export const UcApiContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = - function (configuration?: Configuration) { +export const UcApiContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Get snapshot for one post. - * @param {string} name Snapshot name. - * @param {string} postName Post name. - * @param {boolean} [patched] Should include patched content and raw or not. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getSnapshotForPost: async ( - name: string, - postName: string, - patched?: boolean, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getSnapshotForPost", "name", name); - // verify required parameter 'postName' is not null or undefined - assertParamExists("getSnapshotForPost", "postName", postName); - const localVarPath = - `/apis/uc.api.content.halo.run/v1alpha1/snapshots/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + /** + * Get snapshot for one post. + * @param {string} name Snapshot name. + * @param {string} postName Post name. + * @param {boolean} [patched] Should include patched content and raw or not. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSnapshotForPost: async (name: string, postName: string, patched?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getSnapshotForPost', 'name', name) + // verify required parameter 'postName' is not null or undefined + assertParamExists('getSnapshotForPost', 'postName', postName) + const localVarPath = `/apis/uc.api.content.halo.run/v1alpha1/snapshots/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (postName !== undefined) { - localVarQueryParameter["postName"] = postName; - } + if (postName !== undefined) { + localVarQueryParameter['postName'] = postName; + } - if (patched !== undefined) { - localVarQueryParameter["patched"] = patched; - } + if (patched !== undefined) { + localVarQueryParameter['patched'] = patched; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; - }; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; /** * UcApiContentHaloRunV1alpha1SnapshotApi - functional programming interface * @export */ -export const UcApiContentHaloRunV1alpha1SnapshotApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - UcApiContentHaloRunV1alpha1SnapshotApiAxiosParamCreator(configuration); - return { - /** - * Get snapshot for one post. - * @param {string} name Snapshot name. - * @param {string} postName Post name. - * @param {boolean} [patched] Should include patched content and raw or not. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getSnapshotForPost( - name: string, - postName: string, - patched?: boolean, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getSnapshotForPost( - name, - postName, - patched, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const UcApiContentHaloRunV1alpha1SnapshotApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = UcApiContentHaloRunV1alpha1SnapshotApiAxiosParamCreator(configuration) + return { + /** + * Get snapshot for one post. + * @param {string} name Snapshot name. + * @param {string} postName Post name. + * @param {boolean} [patched] Should include patched content and raw or not. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSnapshotForPost(name: string, postName: string, patched?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSnapshotForPost(name, postName, patched, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['UcApiContentHaloRunV1alpha1SnapshotApi.getSnapshotForPost']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * UcApiContentHaloRunV1alpha1SnapshotApi - factory interface * @export */ -export const UcApiContentHaloRunV1alpha1SnapshotApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = UcApiContentHaloRunV1alpha1SnapshotApiFp(configuration); - return { - /** - * Get snapshot for one post. - * @param {UcApiContentHaloRunV1alpha1SnapshotApiGetSnapshotForPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getSnapshotForPost( - requestParameters: UcApiContentHaloRunV1alpha1SnapshotApiGetSnapshotForPostRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getSnapshotForPost( - requestParameters.name, - requestParameters.postName, - requestParameters.patched, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const UcApiContentHaloRunV1alpha1SnapshotApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = UcApiContentHaloRunV1alpha1SnapshotApiFp(configuration) + return { + /** + * Get snapshot for one post. + * @param {UcApiContentHaloRunV1alpha1SnapshotApiGetSnapshotForPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSnapshotForPost(requestParameters: UcApiContentHaloRunV1alpha1SnapshotApiGetSnapshotForPostRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getSnapshotForPost(requestParameters.name, requestParameters.postName, requestParameters.patched, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -199,26 +134,26 @@ export const UcApiContentHaloRunV1alpha1SnapshotApiFactory = function ( * @interface UcApiContentHaloRunV1alpha1SnapshotApiGetSnapshotForPostRequest */ export interface UcApiContentHaloRunV1alpha1SnapshotApiGetSnapshotForPostRequest { - /** - * Snapshot name. - * @type {string} - * @memberof UcApiContentHaloRunV1alpha1SnapshotApiGetSnapshotForPost - */ - readonly name: string; + /** + * Snapshot name. + * @type {string} + * @memberof UcApiContentHaloRunV1alpha1SnapshotApiGetSnapshotForPost + */ + readonly name: string - /** - * Post name. - * @type {string} - * @memberof UcApiContentHaloRunV1alpha1SnapshotApiGetSnapshotForPost - */ - readonly postName: string; + /** + * Post name. + * @type {string} + * @memberof UcApiContentHaloRunV1alpha1SnapshotApiGetSnapshotForPost + */ + readonly postName: string - /** - * Should include patched content and raw or not. - * @type {boolean} - * @memberof UcApiContentHaloRunV1alpha1SnapshotApiGetSnapshotForPost - */ - readonly patched?: boolean; + /** + * Should include patched content and raw or not. + * @type {boolean} + * @memberof UcApiContentHaloRunV1alpha1SnapshotApiGetSnapshotForPost + */ + readonly patched?: boolean } /** @@ -228,24 +163,15 @@ export interface UcApiContentHaloRunV1alpha1SnapshotApiGetSnapshotForPostRequest * @extends {BaseAPI} */ export class UcApiContentHaloRunV1alpha1SnapshotApi extends BaseAPI { - /** - * Get snapshot for one post. - * @param {UcApiContentHaloRunV1alpha1SnapshotApiGetSnapshotForPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UcApiContentHaloRunV1alpha1SnapshotApi - */ - public getSnapshotForPost( - requestParameters: UcApiContentHaloRunV1alpha1SnapshotApiGetSnapshotForPostRequest, - options?: AxiosRequestConfig - ) { - return UcApiContentHaloRunV1alpha1SnapshotApiFp(this.configuration) - .getSnapshotForPost( - requestParameters.name, - requestParameters.postName, - requestParameters.patched, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get snapshot for one post. + * @param {UcApiContentHaloRunV1alpha1SnapshotApiGetSnapshotForPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UcApiContentHaloRunV1alpha1SnapshotApi + */ + public getSnapshotForPost(requestParameters: UcApiContentHaloRunV1alpha1SnapshotApiGetSnapshotForPostRequest, options?: RawAxiosRequestConfig) { + return UcApiContentHaloRunV1alpha1SnapshotApiFp(this.configuration).getSnapshotForPost(requestParameters.name, requestParameters.postName, requestParameters.patched, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/uc-content-halo-run-v1alpha1-post-api.ts b/ui/packages/api-client/src/api/uc-content-halo-run-v1alpha1-post-api.ts deleted file mode 100644 index b62fe3a27..000000000 --- a/ui/packages/api-client/src/api/uc-content-halo-run-v1alpha1-post-api.ts +++ /dev/null @@ -1,655 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Halo Next API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; -// Some imports not used depending on template conditions -// @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; -// @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; -// @ts-ignore -import { ListedPostList } from "../models"; -// @ts-ignore -import { Post } from "../models"; -/** - * UcContentHaloRunV1alpha1PostApi - axios parameter creator - * @export - */ -export const UcContentHaloRunV1alpha1PostApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create my post. If you want to create a post with content, please set annotation: \"content.halo.run/content-json\" into annotations and refer to PostRequestContent for corresponding data type. - * @param {Post} [post] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createMyPost: async ( - post?: Post, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/uc.content.halo.run/v1alpha1/posts`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - localVarHeaderParameter["Content-Type"] = "application/json"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - post, - localVarRequestOptions, - configuration - ); - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List posts owned by the current user. - * @param {Array} [category] - * @param {Array} [contributor] - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {string} [keyword] Posts filtered by keyword. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase] - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp,publishTime - * @param {Array} [tag] - * @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listMyPosts: async ( - category?: Array, - contributor?: Array, - fieldSelector?: Array, - keyword?: string, - labelSelector?: Array, - page?: number, - publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED", - size?: number, - sort?: Array, - tag?: Array, - visible?: "PUBLIC" | "INTERNAL" | "PRIVATE", - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/apis/uc.content.halo.run/v1alpha1/posts`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - if (category) { - localVarQueryParameter["category"] = Array.from(category); - } - - if (contributor) { - localVarQueryParameter["contributor"] = Array.from(contributor); - } - - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } - - if (keyword !== undefined) { - localVarQueryParameter["keyword"] = keyword; - } - - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } - - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } - - if (publishPhase !== undefined) { - localVarQueryParameter["publishPhase"] = publishPhase; - } - - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } - - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } - - if (tag) { - localVarQueryParameter["tag"] = Array.from(tag); - } - - if (visible !== undefined) { - localVarQueryParameter["visible"] = visible; - } - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update my post. If you want to update a post with content, please set annotation: \"content.halo.run/content-json\" into annotations and refer to PostRequestContent for corresponding data type. - * @param {string} name Post name - * @param {Post} [post] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateMyPost: async ( - name: string, - post?: Post, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updateMyPost", "name", name); - const localVarPath = - `/apis/uc.content.halo.run/v1alpha1/posts/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - localVarHeaderParameter["Content-Type"] = "application/json"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - post, - localVarRequestOptions, - configuration - ); - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; -}; - -/** - * UcContentHaloRunV1alpha1PostApi - functional programming interface - * @export - */ -export const UcContentHaloRunV1alpha1PostApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - UcContentHaloRunV1alpha1PostApiAxiosParamCreator(configuration); - return { - /** - * Create my post. If you want to create a post with content, please set annotation: \"content.halo.run/content-json\" into annotations and refer to PostRequestContent for corresponding data type. - * @param {Post} [post] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createMyPost( - post?: Post, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.createMyPost( - post, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List posts owned by the current user. - * @param {Array} [category] - * @param {Array} [contributor] - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {string} [keyword] Posts filtered by keyword. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase] - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp,publishTime - * @param {Array} [tag] - * @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listMyPosts( - category?: Array, - contributor?: Array, - fieldSelector?: Array, - keyword?: string, - labelSelector?: Array, - page?: number, - publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED", - size?: number, - sort?: Array, - tag?: Array, - visible?: "PUBLIC" | "INTERNAL" | "PRIVATE", - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.listMyPosts( - category, - contributor, - fieldSelector, - keyword, - labelSelector, - page, - publishPhase, - size, - sort, - tag, - visible, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update my post. If you want to update a post with content, please set annotation: \"content.halo.run/content-json\" into annotations and refer to PostRequestContent for corresponding data type. - * @param {string} name Post name - * @param {Post} [post] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateMyPost( - name: string, - post?: Post, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateMyPost( - name, - post, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; -}; - -/** - * UcContentHaloRunV1alpha1PostApi - factory interface - * @export - */ -export const UcContentHaloRunV1alpha1PostApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = UcContentHaloRunV1alpha1PostApiFp(configuration); - return { - /** - * Create my post. If you want to create a post with content, please set annotation: \"content.halo.run/content-json\" into annotations and refer to PostRequestContent for corresponding data type. - * @param {UcContentHaloRunV1alpha1PostApiCreateMyPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createMyPost( - requestParameters: UcContentHaloRunV1alpha1PostApiCreateMyPostRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createMyPost(requestParameters.post, options) - .then((request) => request(axios, basePath)); - }, - /** - * List posts owned by the current user. - * @param {UcContentHaloRunV1alpha1PostApiListMyPostsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listMyPosts( - requestParameters: UcContentHaloRunV1alpha1PostApiListMyPostsRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listMyPosts( - requestParameters.category, - requestParameters.contributor, - requestParameters.fieldSelector, - requestParameters.keyword, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.publishPhase, - requestParameters.size, - requestParameters.sort, - requestParameters.tag, - requestParameters.visible, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update my post. If you want to update a post with content, please set annotation: \"content.halo.run/content-json\" into annotations and refer to PostRequestContent for corresponding data type. - * @param {UcContentHaloRunV1alpha1PostApiUpdateMyPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateMyPost( - requestParameters: UcContentHaloRunV1alpha1PostApiUpdateMyPostRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updateMyPost(requestParameters.name, requestParameters.post, options) - .then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for createMyPost operation in UcContentHaloRunV1alpha1PostApi. - * @export - * @interface UcContentHaloRunV1alpha1PostApiCreateMyPostRequest - */ -export interface UcContentHaloRunV1alpha1PostApiCreateMyPostRequest { - /** - * - * @type {Post} - * @memberof UcContentHaloRunV1alpha1PostApiCreateMyPost - */ - readonly post?: Post; -} - -/** - * Request parameters for listMyPosts operation in UcContentHaloRunV1alpha1PostApi. - * @export - * @interface UcContentHaloRunV1alpha1PostApiListMyPostsRequest - */ -export interface UcContentHaloRunV1alpha1PostApiListMyPostsRequest { - /** - * - * @type {Array} - * @memberof UcContentHaloRunV1alpha1PostApiListMyPosts - */ - readonly category?: Array; - - /** - * - * @type {Array} - * @memberof UcContentHaloRunV1alpha1PostApiListMyPosts - */ - readonly contributor?: Array; - - /** - * Field selector for filtering. - * @type {Array} - * @memberof UcContentHaloRunV1alpha1PostApiListMyPosts - */ - readonly fieldSelector?: Array; - - /** - * Posts filtered by keyword. - * @type {string} - * @memberof UcContentHaloRunV1alpha1PostApiListMyPosts - */ - readonly keyword?: string; - - /** - * Label selector for filtering. - * @type {Array} - * @memberof UcContentHaloRunV1alpha1PostApiListMyPosts - */ - readonly labelSelector?: Array; - - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof UcContentHaloRunV1alpha1PostApiListMyPosts - */ - readonly page?: number; - - /** - * - * @type {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} - * @memberof UcContentHaloRunV1alpha1PostApiListMyPosts - */ - readonly publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED"; - - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof UcContentHaloRunV1alpha1PostApiListMyPosts - */ - readonly size?: number; - - /** - * Sort property and direction of the list result. Supported fields: creationTimestamp,publishTime - * @type {Array} - * @memberof UcContentHaloRunV1alpha1PostApiListMyPosts - */ - readonly sort?: Array; - - /** - * - * @type {Array} - * @memberof UcContentHaloRunV1alpha1PostApiListMyPosts - */ - readonly tag?: Array; - - /** - * - * @type {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} - * @memberof UcContentHaloRunV1alpha1PostApiListMyPosts - */ - readonly visible?: "PUBLIC" | "INTERNAL" | "PRIVATE"; -} - -/** - * Request parameters for updateMyPost operation in UcContentHaloRunV1alpha1PostApi. - * @export - * @interface UcContentHaloRunV1alpha1PostApiUpdateMyPostRequest - */ -export interface UcContentHaloRunV1alpha1PostApiUpdateMyPostRequest { - /** - * Post name - * @type {string} - * @memberof UcContentHaloRunV1alpha1PostApiUpdateMyPost - */ - readonly name: string; - - /** - * - * @type {Post} - * @memberof UcContentHaloRunV1alpha1PostApiUpdateMyPost - */ - readonly post?: Post; -} - -/** - * UcContentHaloRunV1alpha1PostApi - object-oriented interface - * @export - * @class UcContentHaloRunV1alpha1PostApi - * @extends {BaseAPI} - */ -export class UcContentHaloRunV1alpha1PostApi extends BaseAPI { - /** - * Create my post. If you want to create a post with content, please set annotation: \"content.halo.run/content-json\" into annotations and refer to PostRequestContent for corresponding data type. - * @param {UcContentHaloRunV1alpha1PostApiCreateMyPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UcContentHaloRunV1alpha1PostApi - */ - public createMyPost( - requestParameters: UcContentHaloRunV1alpha1PostApiCreateMyPostRequest = {}, - options?: AxiosRequestConfig - ) { - return UcContentHaloRunV1alpha1PostApiFp(this.configuration) - .createMyPost(requestParameters.post, options) - .then((request) => request(this.axios, this.basePath)); - } - - /** - * List posts owned by the current user. - * @param {UcContentHaloRunV1alpha1PostApiListMyPostsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UcContentHaloRunV1alpha1PostApi - */ - public listMyPosts( - requestParameters: UcContentHaloRunV1alpha1PostApiListMyPostsRequest = {}, - options?: AxiosRequestConfig - ) { - return UcContentHaloRunV1alpha1PostApiFp(this.configuration) - .listMyPosts( - requestParameters.category, - requestParameters.contributor, - requestParameters.fieldSelector, - requestParameters.keyword, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.publishPhase, - requestParameters.size, - requestParameters.sort, - requestParameters.tag, - requestParameters.visible, - options - ) - .then((request) => request(this.axios, this.basePath)); - } - - /** - * Update my post. If you want to update a post with content, please set annotation: \"content.halo.run/content-json\" into annotations and refer to PostRequestContent for corresponding data type. - * @param {UcContentHaloRunV1alpha1PostApiUpdateMyPostRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UcContentHaloRunV1alpha1PostApi - */ - public updateMyPost( - requestParameters: UcContentHaloRunV1alpha1PostApiUpdateMyPostRequest, - options?: AxiosRequestConfig - ) { - return UcContentHaloRunV1alpha1PostApiFp(this.configuration) - .updateMyPost(requestParameters.name, requestParameters.post, options) - .then((request) => request(this.axios, this.basePath)); - } -} diff --git a/ui/packages/api-client/src/api/v1alpha1-annotation-setting-api.ts b/ui/packages/api-client/src/api/v1alpha1-annotation-setting-api.ts index 1e9f73fa8..9bcc6db9a 100644 --- a/ui/packages/api-client/src/api/v1alpha1-annotation-setting-api.ts +++ b/ui/packages/api-client/src/api/v1alpha1-annotation-setting-api.ts @@ -5,608 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { AnnotationSetting } from "../models"; +import { AnnotationSetting } from '../models'; // @ts-ignore -import { AnnotationSettingList } from "../models"; +import { AnnotationSettingList } from '../models'; /** * V1alpha1AnnotationSettingApi - axios parameter creator * @export */ -export const V1alpha1AnnotationSettingApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create v1alpha1/AnnotationSetting - * @param {AnnotationSetting} [annotationSetting] Fresh annotationsetting - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createv1alpha1AnnotationSetting: async ( - annotationSetting?: AnnotationSetting, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/api/v1alpha1/annotationsettings`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const V1alpha1AnnotationSettingApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create v1alpha1/AnnotationSetting + * @param {AnnotationSetting} [annotationSetting] Fresh annotationsetting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createv1alpha1AnnotationSetting: async (annotationSetting?: AnnotationSetting, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1alpha1/annotationsettings`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - annotationSetting, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete v1alpha1/AnnotationSetting - * @param {string} name Name of annotationsetting - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletev1alpha1AnnotationSetting: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletev1alpha1AnnotationSetting", "name", name); - const localVarPath = `/api/v1alpha1/annotationsettings/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(annotationSetting, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete v1alpha1/AnnotationSetting + * @param {string} name Name of annotationsetting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletev1alpha1AnnotationSetting: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletev1alpha1AnnotationSetting', 'name', name) + const localVarPath = `/api/v1alpha1/annotationsettings/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get v1alpha1/AnnotationSetting - * @param {string} name Name of annotationsetting - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getv1alpha1AnnotationSetting: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getv1alpha1AnnotationSetting", "name", name); - const localVarPath = `/api/v1alpha1/annotationsettings/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get v1alpha1/AnnotationSetting + * @param {string} name Name of annotationsetting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getv1alpha1AnnotationSetting: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getv1alpha1AnnotationSetting', 'name', name) + const localVarPath = `/api/v1alpha1/annotationsettings/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List v1alpha1/AnnotationSetting - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listv1alpha1AnnotationSetting: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/api/v1alpha1/annotationsettings`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List v1alpha1/AnnotationSetting + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listv1alpha1AnnotationSetting: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1alpha1/annotationsettings`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update v1alpha1/AnnotationSetting - * @param {string} name Name of annotationsetting - * @param {AnnotationSetting} [annotationSetting] Updated annotationsetting - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatev1alpha1AnnotationSetting: async ( - name: string, - annotationSetting?: AnnotationSetting, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatev1alpha1AnnotationSetting", "name", name); - const localVarPath = `/api/v1alpha1/annotationsettings/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update v1alpha1/AnnotationSetting + * @param {string} name Name of annotationsetting + * @param {AnnotationSetting} [annotationSetting] Updated annotationsetting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatev1alpha1AnnotationSetting: async (name: string, annotationSetting?: AnnotationSetting, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatev1alpha1AnnotationSetting', 'name', name) + const localVarPath = `/api/v1alpha1/annotationsettings/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - annotationSetting, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(annotationSetting, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * V1alpha1AnnotationSettingApi - functional programming interface * @export */ -export const V1alpha1AnnotationSettingApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - V1alpha1AnnotationSettingApiAxiosParamCreator(configuration); - return { - /** - * Create v1alpha1/AnnotationSetting - * @param {AnnotationSetting} [annotationSetting] Fresh annotationsetting - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createv1alpha1AnnotationSetting( - annotationSetting?: AnnotationSetting, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createv1alpha1AnnotationSetting( - annotationSetting, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete v1alpha1/AnnotationSetting - * @param {string} name Name of annotationsetting - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletev1alpha1AnnotationSetting( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletev1alpha1AnnotationSetting( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get v1alpha1/AnnotationSetting - * @param {string} name Name of annotationsetting - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getv1alpha1AnnotationSetting( - name: string, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getv1alpha1AnnotationSetting( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List v1alpha1/AnnotationSetting - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listv1alpha1AnnotationSetting( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listv1alpha1AnnotationSetting( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update v1alpha1/AnnotationSetting - * @param {string} name Name of annotationsetting - * @param {AnnotationSetting} [annotationSetting] Updated annotationsetting - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatev1alpha1AnnotationSetting( - name: string, - annotationSetting?: AnnotationSetting, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatev1alpha1AnnotationSetting( - name, - annotationSetting, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const V1alpha1AnnotationSettingApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = V1alpha1AnnotationSettingApiAxiosParamCreator(configuration) + return { + /** + * Create v1alpha1/AnnotationSetting + * @param {AnnotationSetting} [annotationSetting] Fresh annotationsetting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createv1alpha1AnnotationSetting(annotationSetting?: AnnotationSetting, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1AnnotationSetting(annotationSetting, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1AnnotationSettingApi.createv1alpha1AnnotationSetting']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete v1alpha1/AnnotationSetting + * @param {string} name Name of annotationsetting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletev1alpha1AnnotationSetting(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1AnnotationSetting(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1AnnotationSettingApi.deletev1alpha1AnnotationSetting']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get v1alpha1/AnnotationSetting + * @param {string} name Name of annotationsetting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getv1alpha1AnnotationSetting(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1AnnotationSetting(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1AnnotationSettingApi.getv1alpha1AnnotationSetting']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List v1alpha1/AnnotationSetting + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listv1alpha1AnnotationSetting(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1AnnotationSetting(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1AnnotationSettingApi.listv1alpha1AnnotationSetting']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update v1alpha1/AnnotationSetting + * @param {string} name Name of annotationsetting + * @param {AnnotationSetting} [annotationSetting] Updated annotationsetting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatev1alpha1AnnotationSetting(name: string, annotationSetting?: AnnotationSetting, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1AnnotationSetting(name, annotationSetting, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1AnnotationSettingApi.updatev1alpha1AnnotationSetting']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * V1alpha1AnnotationSettingApi - factory interface * @export */ -export const V1alpha1AnnotationSettingApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = V1alpha1AnnotationSettingApiFp(configuration); - return { - /** - * Create v1alpha1/AnnotationSetting - * @param {V1alpha1AnnotationSettingApiCreatev1alpha1AnnotationSettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createv1alpha1AnnotationSetting( - requestParameters: V1alpha1AnnotationSettingApiCreatev1alpha1AnnotationSettingRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createv1alpha1AnnotationSetting( - requestParameters.annotationSetting, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Delete v1alpha1/AnnotationSetting - * @param {V1alpha1AnnotationSettingApiDeletev1alpha1AnnotationSettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletev1alpha1AnnotationSetting( - requestParameters: V1alpha1AnnotationSettingApiDeletev1alpha1AnnotationSettingRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletev1alpha1AnnotationSetting(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get v1alpha1/AnnotationSetting - * @param {V1alpha1AnnotationSettingApiGetv1alpha1AnnotationSettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getv1alpha1AnnotationSetting( - requestParameters: V1alpha1AnnotationSettingApiGetv1alpha1AnnotationSettingRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getv1alpha1AnnotationSetting(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List v1alpha1/AnnotationSetting - * @param {V1alpha1AnnotationSettingApiListv1alpha1AnnotationSettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listv1alpha1AnnotationSetting( - requestParameters: V1alpha1AnnotationSettingApiListv1alpha1AnnotationSettingRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listv1alpha1AnnotationSetting( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update v1alpha1/AnnotationSetting - * @param {V1alpha1AnnotationSettingApiUpdatev1alpha1AnnotationSettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatev1alpha1AnnotationSetting( - requestParameters: V1alpha1AnnotationSettingApiUpdatev1alpha1AnnotationSettingRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatev1alpha1AnnotationSetting( - requestParameters.name, - requestParameters.annotationSetting, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const V1alpha1AnnotationSettingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = V1alpha1AnnotationSettingApiFp(configuration) + return { + /** + * Create v1alpha1/AnnotationSetting + * @param {V1alpha1AnnotationSettingApiCreatev1alpha1AnnotationSettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createv1alpha1AnnotationSetting(requestParameters: V1alpha1AnnotationSettingApiCreatev1alpha1AnnotationSettingRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createv1alpha1AnnotationSetting(requestParameters.annotationSetting, options).then((request) => request(axios, basePath)); + }, + /** + * Delete v1alpha1/AnnotationSetting + * @param {V1alpha1AnnotationSettingApiDeletev1alpha1AnnotationSettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletev1alpha1AnnotationSetting(requestParameters: V1alpha1AnnotationSettingApiDeletev1alpha1AnnotationSettingRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletev1alpha1AnnotationSetting(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get v1alpha1/AnnotationSetting + * @param {V1alpha1AnnotationSettingApiGetv1alpha1AnnotationSettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getv1alpha1AnnotationSetting(requestParameters: V1alpha1AnnotationSettingApiGetv1alpha1AnnotationSettingRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getv1alpha1AnnotationSetting(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List v1alpha1/AnnotationSetting + * @param {V1alpha1AnnotationSettingApiListv1alpha1AnnotationSettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listv1alpha1AnnotationSetting(requestParameters: V1alpha1AnnotationSettingApiListv1alpha1AnnotationSettingRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listv1alpha1AnnotationSetting(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update v1alpha1/AnnotationSetting + * @param {V1alpha1AnnotationSettingApiUpdatev1alpha1AnnotationSettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatev1alpha1AnnotationSetting(requestParameters: V1alpha1AnnotationSettingApiUpdatev1alpha1AnnotationSettingRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatev1alpha1AnnotationSetting(requestParameters.name, requestParameters.annotationSetting, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -615,12 +400,12 @@ export const V1alpha1AnnotationSettingApiFactory = function ( * @interface V1alpha1AnnotationSettingApiCreatev1alpha1AnnotationSettingRequest */ export interface V1alpha1AnnotationSettingApiCreatev1alpha1AnnotationSettingRequest { - /** - * Fresh annotationsetting - * @type {AnnotationSetting} - * @memberof V1alpha1AnnotationSettingApiCreatev1alpha1AnnotationSetting - */ - readonly annotationSetting?: AnnotationSetting; + /** + * Fresh annotationsetting + * @type {AnnotationSetting} + * @memberof V1alpha1AnnotationSettingApiCreatev1alpha1AnnotationSetting + */ + readonly annotationSetting?: AnnotationSetting } /** @@ -629,12 +414,12 @@ export interface V1alpha1AnnotationSettingApiCreatev1alpha1AnnotationSettingRequ * @interface V1alpha1AnnotationSettingApiDeletev1alpha1AnnotationSettingRequest */ export interface V1alpha1AnnotationSettingApiDeletev1alpha1AnnotationSettingRequest { - /** - * Name of annotationsetting - * @type {string} - * @memberof V1alpha1AnnotationSettingApiDeletev1alpha1AnnotationSetting - */ - readonly name: string; + /** + * Name of annotationsetting + * @type {string} + * @memberof V1alpha1AnnotationSettingApiDeletev1alpha1AnnotationSetting + */ + readonly name: string } /** @@ -643,12 +428,12 @@ export interface V1alpha1AnnotationSettingApiDeletev1alpha1AnnotationSettingRequ * @interface V1alpha1AnnotationSettingApiGetv1alpha1AnnotationSettingRequest */ export interface V1alpha1AnnotationSettingApiGetv1alpha1AnnotationSettingRequest { - /** - * Name of annotationsetting - * @type {string} - * @memberof V1alpha1AnnotationSettingApiGetv1alpha1AnnotationSetting - */ - readonly name: string; + /** + * Name of annotationsetting + * @type {string} + * @memberof V1alpha1AnnotationSettingApiGetv1alpha1AnnotationSetting + */ + readonly name: string } /** @@ -657,40 +442,40 @@ export interface V1alpha1AnnotationSettingApiGetv1alpha1AnnotationSettingRequest * @interface V1alpha1AnnotationSettingApiListv1alpha1AnnotationSettingRequest */ export interface V1alpha1AnnotationSettingApiListv1alpha1AnnotationSettingRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting + */ + readonly sort?: Array } /** @@ -699,19 +484,19 @@ export interface V1alpha1AnnotationSettingApiListv1alpha1AnnotationSettingReques * @interface V1alpha1AnnotationSettingApiUpdatev1alpha1AnnotationSettingRequest */ export interface V1alpha1AnnotationSettingApiUpdatev1alpha1AnnotationSettingRequest { - /** - * Name of annotationsetting - * @type {string} - * @memberof V1alpha1AnnotationSettingApiUpdatev1alpha1AnnotationSetting - */ - readonly name: string; + /** + * Name of annotationsetting + * @type {string} + * @memberof V1alpha1AnnotationSettingApiUpdatev1alpha1AnnotationSetting + */ + readonly name: string - /** - * Updated annotationsetting - * @type {AnnotationSetting} - * @memberof V1alpha1AnnotationSettingApiUpdatev1alpha1AnnotationSetting - */ - readonly annotationSetting?: AnnotationSetting; + /** + * Updated annotationsetting + * @type {AnnotationSetting} + * @memberof V1alpha1AnnotationSettingApiUpdatev1alpha1AnnotationSetting + */ + readonly annotationSetting?: AnnotationSetting } /** @@ -721,97 +506,59 @@ export interface V1alpha1AnnotationSettingApiUpdatev1alpha1AnnotationSettingRequ * @extends {BaseAPI} */ export class V1alpha1AnnotationSettingApi extends BaseAPI { - /** - * Create v1alpha1/AnnotationSetting - * @param {V1alpha1AnnotationSettingApiCreatev1alpha1AnnotationSettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1AnnotationSettingApi - */ - public createv1alpha1AnnotationSetting( - requestParameters: V1alpha1AnnotationSettingApiCreatev1alpha1AnnotationSettingRequest = {}, - options?: AxiosRequestConfig - ) { - return V1alpha1AnnotationSettingApiFp(this.configuration) - .createv1alpha1AnnotationSetting( - requestParameters.annotationSetting, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create v1alpha1/AnnotationSetting + * @param {V1alpha1AnnotationSettingApiCreatev1alpha1AnnotationSettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1AnnotationSettingApi + */ + public createv1alpha1AnnotationSetting(requestParameters: V1alpha1AnnotationSettingApiCreatev1alpha1AnnotationSettingRequest = {}, options?: RawAxiosRequestConfig) { + return V1alpha1AnnotationSettingApiFp(this.configuration).createv1alpha1AnnotationSetting(requestParameters.annotationSetting, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete v1alpha1/AnnotationSetting - * @param {V1alpha1AnnotationSettingApiDeletev1alpha1AnnotationSettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1AnnotationSettingApi - */ - public deletev1alpha1AnnotationSetting( - requestParameters: V1alpha1AnnotationSettingApiDeletev1alpha1AnnotationSettingRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1AnnotationSettingApiFp(this.configuration) - .deletev1alpha1AnnotationSetting(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete v1alpha1/AnnotationSetting + * @param {V1alpha1AnnotationSettingApiDeletev1alpha1AnnotationSettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1AnnotationSettingApi + */ + public deletev1alpha1AnnotationSetting(requestParameters: V1alpha1AnnotationSettingApiDeletev1alpha1AnnotationSettingRequest, options?: RawAxiosRequestConfig) { + return V1alpha1AnnotationSettingApiFp(this.configuration).deletev1alpha1AnnotationSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get v1alpha1/AnnotationSetting - * @param {V1alpha1AnnotationSettingApiGetv1alpha1AnnotationSettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1AnnotationSettingApi - */ - public getv1alpha1AnnotationSetting( - requestParameters: V1alpha1AnnotationSettingApiGetv1alpha1AnnotationSettingRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1AnnotationSettingApiFp(this.configuration) - .getv1alpha1AnnotationSetting(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get v1alpha1/AnnotationSetting + * @param {V1alpha1AnnotationSettingApiGetv1alpha1AnnotationSettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1AnnotationSettingApi + */ + public getv1alpha1AnnotationSetting(requestParameters: V1alpha1AnnotationSettingApiGetv1alpha1AnnotationSettingRequest, options?: RawAxiosRequestConfig) { + return V1alpha1AnnotationSettingApiFp(this.configuration).getv1alpha1AnnotationSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List v1alpha1/AnnotationSetting - * @param {V1alpha1AnnotationSettingApiListv1alpha1AnnotationSettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1AnnotationSettingApi - */ - public listv1alpha1AnnotationSetting( - requestParameters: V1alpha1AnnotationSettingApiListv1alpha1AnnotationSettingRequest = {}, - options?: AxiosRequestConfig - ) { - return V1alpha1AnnotationSettingApiFp(this.configuration) - .listv1alpha1AnnotationSetting( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List v1alpha1/AnnotationSetting + * @param {V1alpha1AnnotationSettingApiListv1alpha1AnnotationSettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1AnnotationSettingApi + */ + public listv1alpha1AnnotationSetting(requestParameters: V1alpha1AnnotationSettingApiListv1alpha1AnnotationSettingRequest = {}, options?: RawAxiosRequestConfig) { + return V1alpha1AnnotationSettingApiFp(this.configuration).listv1alpha1AnnotationSetting(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update v1alpha1/AnnotationSetting - * @param {V1alpha1AnnotationSettingApiUpdatev1alpha1AnnotationSettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1AnnotationSettingApi - */ - public updatev1alpha1AnnotationSetting( - requestParameters: V1alpha1AnnotationSettingApiUpdatev1alpha1AnnotationSettingRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1AnnotationSettingApiFp(this.configuration) - .updatev1alpha1AnnotationSetting( - requestParameters.name, - requestParameters.annotationSetting, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update v1alpha1/AnnotationSetting + * @param {V1alpha1AnnotationSettingApiUpdatev1alpha1AnnotationSettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1AnnotationSettingApi + */ + public updatev1alpha1AnnotationSetting(requestParameters: V1alpha1AnnotationSettingApiUpdatev1alpha1AnnotationSettingRequest, options?: RawAxiosRequestConfig) { + return V1alpha1AnnotationSettingApiFp(this.configuration).updatev1alpha1AnnotationSetting(requestParameters.name, requestParameters.annotationSetting, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/v1alpha1-cache-api.ts b/ui/packages/api-client/src/api/v1alpha1-cache-api.ts index 670b20380..182b6bb89 100644 --- a/ui/packages/api-client/src/api/v1alpha1-cache-api.ts +++ b/ui/packages/api-client/src/api/v1alpha1-cache-api.ts @@ -5,163 +5,111 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; /** * V1alpha1CacheApi - axios parameter creator * @export */ -export const V1alpha1CacheApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Evict a cache. - * @param {string} name Cache name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - evictCache: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("evictCache", "name", name); - const localVarPath = - `/apis/api.console.halo.run/v1alpha1/caches/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const V1alpha1CacheApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Evict a cache. + * @param {string} name Cache name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + evictCache: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('evictCache', 'name', name) + const localVarPath = `/apis/api.console.halo.run/v1alpha1/caches/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * V1alpha1CacheApi - functional programming interface * @export */ -export const V1alpha1CacheApiFp = function (configuration?: Configuration) { - const localVarAxiosParamCreator = - V1alpha1CacheApiAxiosParamCreator(configuration); - return { - /** - * Evict a cache. - * @param {string} name Cache name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async evictCache( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.evictCache( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const V1alpha1CacheApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = V1alpha1CacheApiAxiosParamCreator(configuration) + return { + /** + * Evict a cache. + * @param {string} name Cache name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async evictCache(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.evictCache(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1CacheApi.evictCache']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * V1alpha1CacheApi - factory interface * @export */ -export const V1alpha1CacheApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = V1alpha1CacheApiFp(configuration); - return { - /** - * Evict a cache. - * @param {V1alpha1CacheApiEvictCacheRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - evictCache( - requestParameters: V1alpha1CacheApiEvictCacheRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .evictCache(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - }; +export const V1alpha1CacheApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = V1alpha1CacheApiFp(configuration) + return { + /** + * Evict a cache. + * @param {V1alpha1CacheApiEvictCacheRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + evictCache(requestParameters: V1alpha1CacheApiEvictCacheRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.evictCache(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -170,12 +118,12 @@ export const V1alpha1CacheApiFactory = function ( * @interface V1alpha1CacheApiEvictCacheRequest */ export interface V1alpha1CacheApiEvictCacheRequest { - /** - * Cache name - * @type {string} - * @memberof V1alpha1CacheApiEvictCache - */ - readonly name: string; + /** + * Cache name + * @type {string} + * @memberof V1alpha1CacheApiEvictCache + */ + readonly name: string } /** @@ -185,19 +133,15 @@ export interface V1alpha1CacheApiEvictCacheRequest { * @extends {BaseAPI} */ export class V1alpha1CacheApi extends BaseAPI { - /** - * Evict a cache. - * @param {V1alpha1CacheApiEvictCacheRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1CacheApi - */ - public evictCache( - requestParameters: V1alpha1CacheApiEvictCacheRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1CacheApiFp(this.configuration) - .evictCache(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Evict a cache. + * @param {V1alpha1CacheApiEvictCacheRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1CacheApi + */ + public evictCache(requestParameters: V1alpha1CacheApiEvictCacheRequest, options?: RawAxiosRequestConfig) { + return V1alpha1CacheApiFp(this.configuration).evictCache(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/v1alpha1-config-map-api.ts b/ui/packages/api-client/src/api/v1alpha1-config-map-api.ts index f82f519dc..2dd5b5456 100644 --- a/ui/packages/api-client/src/api/v1alpha1-config-map-api.ts +++ b/ui/packages/api-client/src/api/v1alpha1-config-map-api.ts @@ -5,585 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { ConfigMap } from "../models"; +import { ConfigMap } from '../models'; // @ts-ignore -import { ConfigMapList } from "../models"; +import { ConfigMapList } from '../models'; /** * V1alpha1ConfigMapApi - axios parameter creator * @export */ -export const V1alpha1ConfigMapApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create v1alpha1/ConfigMap - * @param {ConfigMap} [configMap] Fresh configmap - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createv1alpha1ConfigMap: async ( - configMap?: ConfigMap, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/api/v1alpha1/configmaps`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const V1alpha1ConfigMapApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create v1alpha1/ConfigMap + * @param {ConfigMap} [configMap] Fresh configmap + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createv1alpha1ConfigMap: async (configMap?: ConfigMap, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1alpha1/configmaps`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - configMap, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete v1alpha1/ConfigMap - * @param {string} name Name of configmap - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletev1alpha1ConfigMap: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletev1alpha1ConfigMap", "name", name); - const localVarPath = `/api/v1alpha1/configmaps/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(configMap, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete v1alpha1/ConfigMap + * @param {string} name Name of configmap + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletev1alpha1ConfigMap: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletev1alpha1ConfigMap', 'name', name) + const localVarPath = `/api/v1alpha1/configmaps/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get v1alpha1/ConfigMap - * @param {string} name Name of configmap - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getv1alpha1ConfigMap: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getv1alpha1ConfigMap", "name", name); - const localVarPath = `/api/v1alpha1/configmaps/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get v1alpha1/ConfigMap + * @param {string} name Name of configmap + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getv1alpha1ConfigMap: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getv1alpha1ConfigMap', 'name', name) + const localVarPath = `/api/v1alpha1/configmaps/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List v1alpha1/ConfigMap - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listv1alpha1ConfigMap: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/api/v1alpha1/configmaps`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List v1alpha1/ConfigMap + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listv1alpha1ConfigMap: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1alpha1/configmaps`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update v1alpha1/ConfigMap - * @param {string} name Name of configmap - * @param {ConfigMap} [configMap] Updated configmap - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatev1alpha1ConfigMap: async ( - name: string, - configMap?: ConfigMap, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatev1alpha1ConfigMap", "name", name); - const localVarPath = `/api/v1alpha1/configmaps/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update v1alpha1/ConfigMap + * @param {string} name Name of configmap + * @param {ConfigMap} [configMap] Updated configmap + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatev1alpha1ConfigMap: async (name: string, configMap?: ConfigMap, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatev1alpha1ConfigMap', 'name', name) + const localVarPath = `/api/v1alpha1/configmaps/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - configMap, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(configMap, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * V1alpha1ConfigMapApi - functional programming interface * @export */ -export const V1alpha1ConfigMapApiFp = function (configuration?: Configuration) { - const localVarAxiosParamCreator = - V1alpha1ConfigMapApiAxiosParamCreator(configuration); - return { - /** - * Create v1alpha1/ConfigMap - * @param {ConfigMap} [configMap] Fresh configmap - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createv1alpha1ConfigMap( - configMap?: ConfigMap, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createv1alpha1ConfigMap( - configMap, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete v1alpha1/ConfigMap - * @param {string} name Name of configmap - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletev1alpha1ConfigMap( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletev1alpha1ConfigMap(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get v1alpha1/ConfigMap - * @param {string} name Name of configmap - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getv1alpha1ConfigMap( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getv1alpha1ConfigMap(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List v1alpha1/ConfigMap - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listv1alpha1ConfigMap( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listv1alpha1ConfigMap( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update v1alpha1/ConfigMap - * @param {string} name Name of configmap - * @param {ConfigMap} [configMap] Updated configmap - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatev1alpha1ConfigMap( - name: string, - configMap?: ConfigMap, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatev1alpha1ConfigMap( - name, - configMap, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const V1alpha1ConfigMapApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = V1alpha1ConfigMapApiAxiosParamCreator(configuration) + return { + /** + * Create v1alpha1/ConfigMap + * @param {ConfigMap} [configMap] Fresh configmap + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createv1alpha1ConfigMap(configMap?: ConfigMap, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1ConfigMap(configMap, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1ConfigMapApi.createv1alpha1ConfigMap']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete v1alpha1/ConfigMap + * @param {string} name Name of configmap + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletev1alpha1ConfigMap(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1ConfigMap(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1ConfigMapApi.deletev1alpha1ConfigMap']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get v1alpha1/ConfigMap + * @param {string} name Name of configmap + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getv1alpha1ConfigMap(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1ConfigMap(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1ConfigMapApi.getv1alpha1ConfigMap']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List v1alpha1/ConfigMap + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listv1alpha1ConfigMap(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1ConfigMap(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1ConfigMapApi.listv1alpha1ConfigMap']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update v1alpha1/ConfigMap + * @param {string} name Name of configmap + * @param {ConfigMap} [configMap] Updated configmap + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatev1alpha1ConfigMap(name: string, configMap?: ConfigMap, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1ConfigMap(name, configMap, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1ConfigMapApi.updatev1alpha1ConfigMap']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * V1alpha1ConfigMapApi - factory interface * @export */ -export const V1alpha1ConfigMapApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = V1alpha1ConfigMapApiFp(configuration); - return { - /** - * Create v1alpha1/ConfigMap - * @param {V1alpha1ConfigMapApiCreatev1alpha1ConfigMapRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createv1alpha1ConfigMap( - requestParameters: V1alpha1ConfigMapApiCreatev1alpha1ConfigMapRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createv1alpha1ConfigMap(requestParameters.configMap, options) - .then((request) => request(axios, basePath)); - }, - /** - * Delete v1alpha1/ConfigMap - * @param {V1alpha1ConfigMapApiDeletev1alpha1ConfigMapRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletev1alpha1ConfigMap( - requestParameters: V1alpha1ConfigMapApiDeletev1alpha1ConfigMapRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletev1alpha1ConfigMap(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get v1alpha1/ConfigMap - * @param {V1alpha1ConfigMapApiGetv1alpha1ConfigMapRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getv1alpha1ConfigMap( - requestParameters: V1alpha1ConfigMapApiGetv1alpha1ConfigMapRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getv1alpha1ConfigMap(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List v1alpha1/ConfigMap - * @param {V1alpha1ConfigMapApiListv1alpha1ConfigMapRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listv1alpha1ConfigMap( - requestParameters: V1alpha1ConfigMapApiListv1alpha1ConfigMapRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listv1alpha1ConfigMap( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update v1alpha1/ConfigMap - * @param {V1alpha1ConfigMapApiUpdatev1alpha1ConfigMapRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatev1alpha1ConfigMap( - requestParameters: V1alpha1ConfigMapApiUpdatev1alpha1ConfigMapRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatev1alpha1ConfigMap( - requestParameters.name, - requestParameters.configMap, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const V1alpha1ConfigMapApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = V1alpha1ConfigMapApiFp(configuration) + return { + /** + * Create v1alpha1/ConfigMap + * @param {V1alpha1ConfigMapApiCreatev1alpha1ConfigMapRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createv1alpha1ConfigMap(requestParameters: V1alpha1ConfigMapApiCreatev1alpha1ConfigMapRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createv1alpha1ConfigMap(requestParameters.configMap, options).then((request) => request(axios, basePath)); + }, + /** + * Delete v1alpha1/ConfigMap + * @param {V1alpha1ConfigMapApiDeletev1alpha1ConfigMapRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletev1alpha1ConfigMap(requestParameters: V1alpha1ConfigMapApiDeletev1alpha1ConfigMapRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletev1alpha1ConfigMap(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get v1alpha1/ConfigMap + * @param {V1alpha1ConfigMapApiGetv1alpha1ConfigMapRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getv1alpha1ConfigMap(requestParameters: V1alpha1ConfigMapApiGetv1alpha1ConfigMapRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getv1alpha1ConfigMap(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List v1alpha1/ConfigMap + * @param {V1alpha1ConfigMapApiListv1alpha1ConfigMapRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listv1alpha1ConfigMap(requestParameters: V1alpha1ConfigMapApiListv1alpha1ConfigMapRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listv1alpha1ConfigMap(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update v1alpha1/ConfigMap + * @param {V1alpha1ConfigMapApiUpdatev1alpha1ConfigMapRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatev1alpha1ConfigMap(requestParameters: V1alpha1ConfigMapApiUpdatev1alpha1ConfigMapRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatev1alpha1ConfigMap(requestParameters.name, requestParameters.configMap, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -592,12 +400,12 @@ export const V1alpha1ConfigMapApiFactory = function ( * @interface V1alpha1ConfigMapApiCreatev1alpha1ConfigMapRequest */ export interface V1alpha1ConfigMapApiCreatev1alpha1ConfigMapRequest { - /** - * Fresh configmap - * @type {ConfigMap} - * @memberof V1alpha1ConfigMapApiCreatev1alpha1ConfigMap - */ - readonly configMap?: ConfigMap; + /** + * Fresh configmap + * @type {ConfigMap} + * @memberof V1alpha1ConfigMapApiCreatev1alpha1ConfigMap + */ + readonly configMap?: ConfigMap } /** @@ -606,12 +414,12 @@ export interface V1alpha1ConfigMapApiCreatev1alpha1ConfigMapRequest { * @interface V1alpha1ConfigMapApiDeletev1alpha1ConfigMapRequest */ export interface V1alpha1ConfigMapApiDeletev1alpha1ConfigMapRequest { - /** - * Name of configmap - * @type {string} - * @memberof V1alpha1ConfigMapApiDeletev1alpha1ConfigMap - */ - readonly name: string; + /** + * Name of configmap + * @type {string} + * @memberof V1alpha1ConfigMapApiDeletev1alpha1ConfigMap + */ + readonly name: string } /** @@ -620,12 +428,12 @@ export interface V1alpha1ConfigMapApiDeletev1alpha1ConfigMapRequest { * @interface V1alpha1ConfigMapApiGetv1alpha1ConfigMapRequest */ export interface V1alpha1ConfigMapApiGetv1alpha1ConfigMapRequest { - /** - * Name of configmap - * @type {string} - * @memberof V1alpha1ConfigMapApiGetv1alpha1ConfigMap - */ - readonly name: string; + /** + * Name of configmap + * @type {string} + * @memberof V1alpha1ConfigMapApiGetv1alpha1ConfigMap + */ + readonly name: string } /** @@ -634,40 +442,40 @@ export interface V1alpha1ConfigMapApiGetv1alpha1ConfigMapRequest { * @interface V1alpha1ConfigMapApiListv1alpha1ConfigMapRequest */ export interface V1alpha1ConfigMapApiListv1alpha1ConfigMapRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap + */ + readonly sort?: Array } /** @@ -676,19 +484,19 @@ export interface V1alpha1ConfigMapApiListv1alpha1ConfigMapRequest { * @interface V1alpha1ConfigMapApiUpdatev1alpha1ConfigMapRequest */ export interface V1alpha1ConfigMapApiUpdatev1alpha1ConfigMapRequest { - /** - * Name of configmap - * @type {string} - * @memberof V1alpha1ConfigMapApiUpdatev1alpha1ConfigMap - */ - readonly name: string; + /** + * Name of configmap + * @type {string} + * @memberof V1alpha1ConfigMapApiUpdatev1alpha1ConfigMap + */ + readonly name: string - /** - * Updated configmap - * @type {ConfigMap} - * @memberof V1alpha1ConfigMapApiUpdatev1alpha1ConfigMap - */ - readonly configMap?: ConfigMap; + /** + * Updated configmap + * @type {ConfigMap} + * @memberof V1alpha1ConfigMapApiUpdatev1alpha1ConfigMap + */ + readonly configMap?: ConfigMap } /** @@ -698,94 +506,59 @@ export interface V1alpha1ConfigMapApiUpdatev1alpha1ConfigMapRequest { * @extends {BaseAPI} */ export class V1alpha1ConfigMapApi extends BaseAPI { - /** - * Create v1alpha1/ConfigMap - * @param {V1alpha1ConfigMapApiCreatev1alpha1ConfigMapRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1ConfigMapApi - */ - public createv1alpha1ConfigMap( - requestParameters: V1alpha1ConfigMapApiCreatev1alpha1ConfigMapRequest = {}, - options?: AxiosRequestConfig - ) { - return V1alpha1ConfigMapApiFp(this.configuration) - .createv1alpha1ConfigMap(requestParameters.configMap, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create v1alpha1/ConfigMap + * @param {V1alpha1ConfigMapApiCreatev1alpha1ConfigMapRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1ConfigMapApi + */ + public createv1alpha1ConfigMap(requestParameters: V1alpha1ConfigMapApiCreatev1alpha1ConfigMapRequest = {}, options?: RawAxiosRequestConfig) { + return V1alpha1ConfigMapApiFp(this.configuration).createv1alpha1ConfigMap(requestParameters.configMap, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete v1alpha1/ConfigMap - * @param {V1alpha1ConfigMapApiDeletev1alpha1ConfigMapRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1ConfigMapApi - */ - public deletev1alpha1ConfigMap( - requestParameters: V1alpha1ConfigMapApiDeletev1alpha1ConfigMapRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1ConfigMapApiFp(this.configuration) - .deletev1alpha1ConfigMap(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete v1alpha1/ConfigMap + * @param {V1alpha1ConfigMapApiDeletev1alpha1ConfigMapRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1ConfigMapApi + */ + public deletev1alpha1ConfigMap(requestParameters: V1alpha1ConfigMapApiDeletev1alpha1ConfigMapRequest, options?: RawAxiosRequestConfig) { + return V1alpha1ConfigMapApiFp(this.configuration).deletev1alpha1ConfigMap(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get v1alpha1/ConfigMap - * @param {V1alpha1ConfigMapApiGetv1alpha1ConfigMapRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1ConfigMapApi - */ - public getv1alpha1ConfigMap( - requestParameters: V1alpha1ConfigMapApiGetv1alpha1ConfigMapRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1ConfigMapApiFp(this.configuration) - .getv1alpha1ConfigMap(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get v1alpha1/ConfigMap + * @param {V1alpha1ConfigMapApiGetv1alpha1ConfigMapRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1ConfigMapApi + */ + public getv1alpha1ConfigMap(requestParameters: V1alpha1ConfigMapApiGetv1alpha1ConfigMapRequest, options?: RawAxiosRequestConfig) { + return V1alpha1ConfigMapApiFp(this.configuration).getv1alpha1ConfigMap(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List v1alpha1/ConfigMap - * @param {V1alpha1ConfigMapApiListv1alpha1ConfigMapRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1ConfigMapApi - */ - public listv1alpha1ConfigMap( - requestParameters: V1alpha1ConfigMapApiListv1alpha1ConfigMapRequest = {}, - options?: AxiosRequestConfig - ) { - return V1alpha1ConfigMapApiFp(this.configuration) - .listv1alpha1ConfigMap( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List v1alpha1/ConfigMap + * @param {V1alpha1ConfigMapApiListv1alpha1ConfigMapRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1ConfigMapApi + */ + public listv1alpha1ConfigMap(requestParameters: V1alpha1ConfigMapApiListv1alpha1ConfigMapRequest = {}, options?: RawAxiosRequestConfig) { + return V1alpha1ConfigMapApiFp(this.configuration).listv1alpha1ConfigMap(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update v1alpha1/ConfigMap - * @param {V1alpha1ConfigMapApiUpdatev1alpha1ConfigMapRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1ConfigMapApi - */ - public updatev1alpha1ConfigMap( - requestParameters: V1alpha1ConfigMapApiUpdatev1alpha1ConfigMapRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1ConfigMapApiFp(this.configuration) - .updatev1alpha1ConfigMap( - requestParameters.name, - requestParameters.configMap, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update v1alpha1/ConfigMap + * @param {V1alpha1ConfigMapApiUpdatev1alpha1ConfigMapRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1ConfigMapApi + */ + public updatev1alpha1ConfigMap(requestParameters: V1alpha1ConfigMapApiUpdatev1alpha1ConfigMapRequest, options?: RawAxiosRequestConfig) { + return V1alpha1ConfigMapApiFp(this.configuration).updatev1alpha1ConfigMap(requestParameters.name, requestParameters.configMap, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/v1alpha1-menu-api.ts b/ui/packages/api-client/src/api/v1alpha1-menu-api.ts index f50396345..b94cb9aae 100644 --- a/ui/packages/api-client/src/api/v1alpha1-menu-api.ts +++ b/ui/packages/api-client/src/api/v1alpha1-menu-api.ts @@ -5,580 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Menu } from "../models"; +import { Menu } from '../models'; // @ts-ignore -import { MenuList } from "../models"; +import { MenuList } from '../models'; /** * V1alpha1MenuApi - axios parameter creator * @export */ -export const V1alpha1MenuApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create v1alpha1/Menu - * @param {Menu} [menu] Fresh menu - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createv1alpha1Menu: async ( - menu?: Menu, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/api/v1alpha1/menus`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const V1alpha1MenuApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create v1alpha1/Menu + * @param {Menu} [menu] Fresh menu + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createv1alpha1Menu: async (menu?: Menu, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1alpha1/menus`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - menu, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete v1alpha1/Menu - * @param {string} name Name of menu - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletev1alpha1Menu: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletev1alpha1Menu", "name", name); - const localVarPath = `/api/v1alpha1/menus/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(menu, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete v1alpha1/Menu + * @param {string} name Name of menu + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletev1alpha1Menu: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletev1alpha1Menu', 'name', name) + const localVarPath = `/api/v1alpha1/menus/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get v1alpha1/Menu - * @param {string} name Name of menu - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getv1alpha1Menu: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getv1alpha1Menu", "name", name); - const localVarPath = `/api/v1alpha1/menus/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get v1alpha1/Menu + * @param {string} name Name of menu + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getv1alpha1Menu: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getv1alpha1Menu', 'name', name) + const localVarPath = `/api/v1alpha1/menus/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List v1alpha1/Menu - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listv1alpha1Menu: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/api/v1alpha1/menus`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List v1alpha1/Menu + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listv1alpha1Menu: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1alpha1/menus`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update v1alpha1/Menu - * @param {string} name Name of menu - * @param {Menu} [menu] Updated menu - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatev1alpha1Menu: async ( - name: string, - menu?: Menu, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatev1alpha1Menu", "name", name); - const localVarPath = `/api/v1alpha1/menus/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update v1alpha1/Menu + * @param {string} name Name of menu + * @param {Menu} [menu] Updated menu + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatev1alpha1Menu: async (name: string, menu?: Menu, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatev1alpha1Menu', 'name', name) + const localVarPath = `/api/v1alpha1/menus/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - menu, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(menu, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * V1alpha1MenuApi - functional programming interface * @export */ -export const V1alpha1MenuApiFp = function (configuration?: Configuration) { - const localVarAxiosParamCreator = - V1alpha1MenuApiAxiosParamCreator(configuration); - return { - /** - * Create v1alpha1/Menu - * @param {Menu} [menu] Fresh menu - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createv1alpha1Menu( - menu?: Menu, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createv1alpha1Menu(menu, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete v1alpha1/Menu - * @param {string} name Name of menu - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletev1alpha1Menu( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletev1alpha1Menu(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get v1alpha1/Menu - * @param {string} name Name of menu - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getv1alpha1Menu( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1Menu( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List v1alpha1/Menu - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listv1alpha1Menu( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listv1alpha1Menu( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update v1alpha1/Menu - * @param {string} name Name of menu - * @param {Menu} [menu] Updated menu - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatev1alpha1Menu( - name: string, - menu?: Menu, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatev1alpha1Menu(name, menu, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const V1alpha1MenuApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = V1alpha1MenuApiAxiosParamCreator(configuration) + return { + /** + * Create v1alpha1/Menu + * @param {Menu} [menu] Fresh menu + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createv1alpha1Menu(menu?: Menu, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1Menu(menu, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1MenuApi.createv1alpha1Menu']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete v1alpha1/Menu + * @param {string} name Name of menu + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletev1alpha1Menu(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1Menu(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1MenuApi.deletev1alpha1Menu']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get v1alpha1/Menu + * @param {string} name Name of menu + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getv1alpha1Menu(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1Menu(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1MenuApi.getv1alpha1Menu']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List v1alpha1/Menu + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listv1alpha1Menu(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1Menu(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1MenuApi.listv1alpha1Menu']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update v1alpha1/Menu + * @param {string} name Name of menu + * @param {Menu} [menu] Updated menu + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatev1alpha1Menu(name: string, menu?: Menu, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1Menu(name, menu, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1MenuApi.updatev1alpha1Menu']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * V1alpha1MenuApi - factory interface * @export */ -export const V1alpha1MenuApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = V1alpha1MenuApiFp(configuration); - return { - /** - * Create v1alpha1/Menu - * @param {V1alpha1MenuApiCreatev1alpha1MenuRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createv1alpha1Menu( - requestParameters: V1alpha1MenuApiCreatev1alpha1MenuRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createv1alpha1Menu(requestParameters.menu, options) - .then((request) => request(axios, basePath)); - }, - /** - * Delete v1alpha1/Menu - * @param {V1alpha1MenuApiDeletev1alpha1MenuRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletev1alpha1Menu( - requestParameters: V1alpha1MenuApiDeletev1alpha1MenuRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletev1alpha1Menu(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get v1alpha1/Menu - * @param {V1alpha1MenuApiGetv1alpha1MenuRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getv1alpha1Menu( - requestParameters: V1alpha1MenuApiGetv1alpha1MenuRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getv1alpha1Menu(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List v1alpha1/Menu - * @param {V1alpha1MenuApiListv1alpha1MenuRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listv1alpha1Menu( - requestParameters: V1alpha1MenuApiListv1alpha1MenuRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listv1alpha1Menu( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update v1alpha1/Menu - * @param {V1alpha1MenuApiUpdatev1alpha1MenuRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatev1alpha1Menu( - requestParameters: V1alpha1MenuApiUpdatev1alpha1MenuRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatev1alpha1Menu( - requestParameters.name, - requestParameters.menu, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const V1alpha1MenuApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = V1alpha1MenuApiFp(configuration) + return { + /** + * Create v1alpha1/Menu + * @param {V1alpha1MenuApiCreatev1alpha1MenuRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createv1alpha1Menu(requestParameters: V1alpha1MenuApiCreatev1alpha1MenuRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createv1alpha1Menu(requestParameters.menu, options).then((request) => request(axios, basePath)); + }, + /** + * Delete v1alpha1/Menu + * @param {V1alpha1MenuApiDeletev1alpha1MenuRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletev1alpha1Menu(requestParameters: V1alpha1MenuApiDeletev1alpha1MenuRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletev1alpha1Menu(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get v1alpha1/Menu + * @param {V1alpha1MenuApiGetv1alpha1MenuRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getv1alpha1Menu(requestParameters: V1alpha1MenuApiGetv1alpha1MenuRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getv1alpha1Menu(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List v1alpha1/Menu + * @param {V1alpha1MenuApiListv1alpha1MenuRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listv1alpha1Menu(requestParameters: V1alpha1MenuApiListv1alpha1MenuRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listv1alpha1Menu(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update v1alpha1/Menu + * @param {V1alpha1MenuApiUpdatev1alpha1MenuRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatev1alpha1Menu(requestParameters: V1alpha1MenuApiUpdatev1alpha1MenuRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatev1alpha1Menu(requestParameters.name, requestParameters.menu, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -587,12 +400,12 @@ export const V1alpha1MenuApiFactory = function ( * @interface V1alpha1MenuApiCreatev1alpha1MenuRequest */ export interface V1alpha1MenuApiCreatev1alpha1MenuRequest { - /** - * Fresh menu - * @type {Menu} - * @memberof V1alpha1MenuApiCreatev1alpha1Menu - */ - readonly menu?: Menu; + /** + * Fresh menu + * @type {Menu} + * @memberof V1alpha1MenuApiCreatev1alpha1Menu + */ + readonly menu?: Menu } /** @@ -601,12 +414,12 @@ export interface V1alpha1MenuApiCreatev1alpha1MenuRequest { * @interface V1alpha1MenuApiDeletev1alpha1MenuRequest */ export interface V1alpha1MenuApiDeletev1alpha1MenuRequest { - /** - * Name of menu - * @type {string} - * @memberof V1alpha1MenuApiDeletev1alpha1Menu - */ - readonly name: string; + /** + * Name of menu + * @type {string} + * @memberof V1alpha1MenuApiDeletev1alpha1Menu + */ + readonly name: string } /** @@ -615,12 +428,12 @@ export interface V1alpha1MenuApiDeletev1alpha1MenuRequest { * @interface V1alpha1MenuApiGetv1alpha1MenuRequest */ export interface V1alpha1MenuApiGetv1alpha1MenuRequest { - /** - * Name of menu - * @type {string} - * @memberof V1alpha1MenuApiGetv1alpha1Menu - */ - readonly name: string; + /** + * Name of menu + * @type {string} + * @memberof V1alpha1MenuApiGetv1alpha1Menu + */ + readonly name: string } /** @@ -629,40 +442,40 @@ export interface V1alpha1MenuApiGetv1alpha1MenuRequest { * @interface V1alpha1MenuApiListv1alpha1MenuRequest */ export interface V1alpha1MenuApiListv1alpha1MenuRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof V1alpha1MenuApiListv1alpha1Menu - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof V1alpha1MenuApiListv1alpha1Menu + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof V1alpha1MenuApiListv1alpha1Menu - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof V1alpha1MenuApiListv1alpha1Menu + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof V1alpha1MenuApiListv1alpha1Menu - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof V1alpha1MenuApiListv1alpha1Menu + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof V1alpha1MenuApiListv1alpha1Menu - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof V1alpha1MenuApiListv1alpha1Menu + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof V1alpha1MenuApiListv1alpha1Menu - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof V1alpha1MenuApiListv1alpha1Menu + */ + readonly sort?: Array } /** @@ -671,19 +484,19 @@ export interface V1alpha1MenuApiListv1alpha1MenuRequest { * @interface V1alpha1MenuApiUpdatev1alpha1MenuRequest */ export interface V1alpha1MenuApiUpdatev1alpha1MenuRequest { - /** - * Name of menu - * @type {string} - * @memberof V1alpha1MenuApiUpdatev1alpha1Menu - */ - readonly name: string; + /** + * Name of menu + * @type {string} + * @memberof V1alpha1MenuApiUpdatev1alpha1Menu + */ + readonly name: string - /** - * Updated menu - * @type {Menu} - * @memberof V1alpha1MenuApiUpdatev1alpha1Menu - */ - readonly menu?: Menu; + /** + * Updated menu + * @type {Menu} + * @memberof V1alpha1MenuApiUpdatev1alpha1Menu + */ + readonly menu?: Menu } /** @@ -693,94 +506,59 @@ export interface V1alpha1MenuApiUpdatev1alpha1MenuRequest { * @extends {BaseAPI} */ export class V1alpha1MenuApi extends BaseAPI { - /** - * Create v1alpha1/Menu - * @param {V1alpha1MenuApiCreatev1alpha1MenuRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1MenuApi - */ - public createv1alpha1Menu( - requestParameters: V1alpha1MenuApiCreatev1alpha1MenuRequest = {}, - options?: AxiosRequestConfig - ) { - return V1alpha1MenuApiFp(this.configuration) - .createv1alpha1Menu(requestParameters.menu, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create v1alpha1/Menu + * @param {V1alpha1MenuApiCreatev1alpha1MenuRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1MenuApi + */ + public createv1alpha1Menu(requestParameters: V1alpha1MenuApiCreatev1alpha1MenuRequest = {}, options?: RawAxiosRequestConfig) { + return V1alpha1MenuApiFp(this.configuration).createv1alpha1Menu(requestParameters.menu, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete v1alpha1/Menu - * @param {V1alpha1MenuApiDeletev1alpha1MenuRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1MenuApi - */ - public deletev1alpha1Menu( - requestParameters: V1alpha1MenuApiDeletev1alpha1MenuRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1MenuApiFp(this.configuration) - .deletev1alpha1Menu(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete v1alpha1/Menu + * @param {V1alpha1MenuApiDeletev1alpha1MenuRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1MenuApi + */ + public deletev1alpha1Menu(requestParameters: V1alpha1MenuApiDeletev1alpha1MenuRequest, options?: RawAxiosRequestConfig) { + return V1alpha1MenuApiFp(this.configuration).deletev1alpha1Menu(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get v1alpha1/Menu - * @param {V1alpha1MenuApiGetv1alpha1MenuRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1MenuApi - */ - public getv1alpha1Menu( - requestParameters: V1alpha1MenuApiGetv1alpha1MenuRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1MenuApiFp(this.configuration) - .getv1alpha1Menu(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get v1alpha1/Menu + * @param {V1alpha1MenuApiGetv1alpha1MenuRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1MenuApi + */ + public getv1alpha1Menu(requestParameters: V1alpha1MenuApiGetv1alpha1MenuRequest, options?: RawAxiosRequestConfig) { + return V1alpha1MenuApiFp(this.configuration).getv1alpha1Menu(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List v1alpha1/Menu - * @param {V1alpha1MenuApiListv1alpha1MenuRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1MenuApi - */ - public listv1alpha1Menu( - requestParameters: V1alpha1MenuApiListv1alpha1MenuRequest = {}, - options?: AxiosRequestConfig - ) { - return V1alpha1MenuApiFp(this.configuration) - .listv1alpha1Menu( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List v1alpha1/Menu + * @param {V1alpha1MenuApiListv1alpha1MenuRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1MenuApi + */ + public listv1alpha1Menu(requestParameters: V1alpha1MenuApiListv1alpha1MenuRequest = {}, options?: RawAxiosRequestConfig) { + return V1alpha1MenuApiFp(this.configuration).listv1alpha1Menu(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update v1alpha1/Menu - * @param {V1alpha1MenuApiUpdatev1alpha1MenuRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1MenuApi - */ - public updatev1alpha1Menu( - requestParameters: V1alpha1MenuApiUpdatev1alpha1MenuRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1MenuApiFp(this.configuration) - .updatev1alpha1Menu( - requestParameters.name, - requestParameters.menu, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update v1alpha1/Menu + * @param {V1alpha1MenuApiUpdatev1alpha1MenuRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1MenuApi + */ + public updatev1alpha1Menu(requestParameters: V1alpha1MenuApiUpdatev1alpha1MenuRequest, options?: RawAxiosRequestConfig) { + return V1alpha1MenuApiFp(this.configuration).updatev1alpha1Menu(requestParameters.name, requestParameters.menu, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/v1alpha1-menu-item-api.ts b/ui/packages/api-client/src/api/v1alpha1-menu-item-api.ts index 5f1a3459f..39076f486 100644 --- a/ui/packages/api-client/src/api/v1alpha1-menu-item-api.ts +++ b/ui/packages/api-client/src/api/v1alpha1-menu-item-api.ts @@ -5,585 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { MenuItem } from "../models"; +import { MenuItem } from '../models'; // @ts-ignore -import { MenuItemList } from "../models"; +import { MenuItemList } from '../models'; /** * V1alpha1MenuItemApi - axios parameter creator * @export */ -export const V1alpha1MenuItemApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create v1alpha1/MenuItem - * @param {MenuItem} [menuItem] Fresh menuitem - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createv1alpha1MenuItem: async ( - menuItem?: MenuItem, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/api/v1alpha1/menuitems`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const V1alpha1MenuItemApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create v1alpha1/MenuItem + * @param {MenuItem} [menuItem] Fresh menuitem + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createv1alpha1MenuItem: async (menuItem?: MenuItem, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1alpha1/menuitems`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - menuItem, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete v1alpha1/MenuItem - * @param {string} name Name of menuitem - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletev1alpha1MenuItem: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletev1alpha1MenuItem", "name", name); - const localVarPath = `/api/v1alpha1/menuitems/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(menuItem, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete v1alpha1/MenuItem + * @param {string} name Name of menuitem + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletev1alpha1MenuItem: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletev1alpha1MenuItem', 'name', name) + const localVarPath = `/api/v1alpha1/menuitems/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get v1alpha1/MenuItem - * @param {string} name Name of menuitem - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getv1alpha1MenuItem: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getv1alpha1MenuItem", "name", name); - const localVarPath = `/api/v1alpha1/menuitems/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get v1alpha1/MenuItem + * @param {string} name Name of menuitem + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getv1alpha1MenuItem: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getv1alpha1MenuItem', 'name', name) + const localVarPath = `/api/v1alpha1/menuitems/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List v1alpha1/MenuItem - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listv1alpha1MenuItem: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/api/v1alpha1/menuitems`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List v1alpha1/MenuItem + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listv1alpha1MenuItem: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1alpha1/menuitems`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update v1alpha1/MenuItem - * @param {string} name Name of menuitem - * @param {MenuItem} [menuItem] Updated menuitem - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatev1alpha1MenuItem: async ( - name: string, - menuItem?: MenuItem, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatev1alpha1MenuItem", "name", name); - const localVarPath = `/api/v1alpha1/menuitems/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update v1alpha1/MenuItem + * @param {string} name Name of menuitem + * @param {MenuItem} [menuItem] Updated menuitem + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatev1alpha1MenuItem: async (name: string, menuItem?: MenuItem, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatev1alpha1MenuItem', 'name', name) + const localVarPath = `/api/v1alpha1/menuitems/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - menuItem, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(menuItem, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * V1alpha1MenuItemApi - functional programming interface * @export */ -export const V1alpha1MenuItemApiFp = function (configuration?: Configuration) { - const localVarAxiosParamCreator = - V1alpha1MenuItemApiAxiosParamCreator(configuration); - return { - /** - * Create v1alpha1/MenuItem - * @param {MenuItem} [menuItem] Fresh menuitem - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createv1alpha1MenuItem( - menuItem?: MenuItem, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createv1alpha1MenuItem( - menuItem, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete v1alpha1/MenuItem - * @param {string} name Name of menuitem - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletev1alpha1MenuItem( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletev1alpha1MenuItem(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get v1alpha1/MenuItem - * @param {string} name Name of menuitem - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getv1alpha1MenuItem( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getv1alpha1MenuItem(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List v1alpha1/MenuItem - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listv1alpha1MenuItem( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listv1alpha1MenuItem( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update v1alpha1/MenuItem - * @param {string} name Name of menuitem - * @param {MenuItem} [menuItem] Updated menuitem - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatev1alpha1MenuItem( - name: string, - menuItem?: MenuItem, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatev1alpha1MenuItem( - name, - menuItem, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const V1alpha1MenuItemApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = V1alpha1MenuItemApiAxiosParamCreator(configuration) + return { + /** + * Create v1alpha1/MenuItem + * @param {MenuItem} [menuItem] Fresh menuitem + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createv1alpha1MenuItem(menuItem?: MenuItem, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1MenuItem(menuItem, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1MenuItemApi.createv1alpha1MenuItem']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete v1alpha1/MenuItem + * @param {string} name Name of menuitem + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletev1alpha1MenuItem(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1MenuItem(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1MenuItemApi.deletev1alpha1MenuItem']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get v1alpha1/MenuItem + * @param {string} name Name of menuitem + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getv1alpha1MenuItem(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1MenuItem(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1MenuItemApi.getv1alpha1MenuItem']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List v1alpha1/MenuItem + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listv1alpha1MenuItem(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1MenuItem(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1MenuItemApi.listv1alpha1MenuItem']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update v1alpha1/MenuItem + * @param {string} name Name of menuitem + * @param {MenuItem} [menuItem] Updated menuitem + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatev1alpha1MenuItem(name: string, menuItem?: MenuItem, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1MenuItem(name, menuItem, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1MenuItemApi.updatev1alpha1MenuItem']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * V1alpha1MenuItemApi - factory interface * @export */ -export const V1alpha1MenuItemApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = V1alpha1MenuItemApiFp(configuration); - return { - /** - * Create v1alpha1/MenuItem - * @param {V1alpha1MenuItemApiCreatev1alpha1MenuItemRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createv1alpha1MenuItem( - requestParameters: V1alpha1MenuItemApiCreatev1alpha1MenuItemRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createv1alpha1MenuItem(requestParameters.menuItem, options) - .then((request) => request(axios, basePath)); - }, - /** - * Delete v1alpha1/MenuItem - * @param {V1alpha1MenuItemApiDeletev1alpha1MenuItemRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletev1alpha1MenuItem( - requestParameters: V1alpha1MenuItemApiDeletev1alpha1MenuItemRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletev1alpha1MenuItem(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get v1alpha1/MenuItem - * @param {V1alpha1MenuItemApiGetv1alpha1MenuItemRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getv1alpha1MenuItem( - requestParameters: V1alpha1MenuItemApiGetv1alpha1MenuItemRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getv1alpha1MenuItem(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List v1alpha1/MenuItem - * @param {V1alpha1MenuItemApiListv1alpha1MenuItemRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listv1alpha1MenuItem( - requestParameters: V1alpha1MenuItemApiListv1alpha1MenuItemRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listv1alpha1MenuItem( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update v1alpha1/MenuItem - * @param {V1alpha1MenuItemApiUpdatev1alpha1MenuItemRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatev1alpha1MenuItem( - requestParameters: V1alpha1MenuItemApiUpdatev1alpha1MenuItemRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatev1alpha1MenuItem( - requestParameters.name, - requestParameters.menuItem, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const V1alpha1MenuItemApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = V1alpha1MenuItemApiFp(configuration) + return { + /** + * Create v1alpha1/MenuItem + * @param {V1alpha1MenuItemApiCreatev1alpha1MenuItemRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createv1alpha1MenuItem(requestParameters: V1alpha1MenuItemApiCreatev1alpha1MenuItemRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createv1alpha1MenuItem(requestParameters.menuItem, options).then((request) => request(axios, basePath)); + }, + /** + * Delete v1alpha1/MenuItem + * @param {V1alpha1MenuItemApiDeletev1alpha1MenuItemRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletev1alpha1MenuItem(requestParameters: V1alpha1MenuItemApiDeletev1alpha1MenuItemRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletev1alpha1MenuItem(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get v1alpha1/MenuItem + * @param {V1alpha1MenuItemApiGetv1alpha1MenuItemRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getv1alpha1MenuItem(requestParameters: V1alpha1MenuItemApiGetv1alpha1MenuItemRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getv1alpha1MenuItem(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List v1alpha1/MenuItem + * @param {V1alpha1MenuItemApiListv1alpha1MenuItemRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listv1alpha1MenuItem(requestParameters: V1alpha1MenuItemApiListv1alpha1MenuItemRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listv1alpha1MenuItem(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update v1alpha1/MenuItem + * @param {V1alpha1MenuItemApiUpdatev1alpha1MenuItemRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatev1alpha1MenuItem(requestParameters: V1alpha1MenuItemApiUpdatev1alpha1MenuItemRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatev1alpha1MenuItem(requestParameters.name, requestParameters.menuItem, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -592,12 +400,12 @@ export const V1alpha1MenuItemApiFactory = function ( * @interface V1alpha1MenuItemApiCreatev1alpha1MenuItemRequest */ export interface V1alpha1MenuItemApiCreatev1alpha1MenuItemRequest { - /** - * Fresh menuitem - * @type {MenuItem} - * @memberof V1alpha1MenuItemApiCreatev1alpha1MenuItem - */ - readonly menuItem?: MenuItem; + /** + * Fresh menuitem + * @type {MenuItem} + * @memberof V1alpha1MenuItemApiCreatev1alpha1MenuItem + */ + readonly menuItem?: MenuItem } /** @@ -606,12 +414,12 @@ export interface V1alpha1MenuItemApiCreatev1alpha1MenuItemRequest { * @interface V1alpha1MenuItemApiDeletev1alpha1MenuItemRequest */ export interface V1alpha1MenuItemApiDeletev1alpha1MenuItemRequest { - /** - * Name of menuitem - * @type {string} - * @memberof V1alpha1MenuItemApiDeletev1alpha1MenuItem - */ - readonly name: string; + /** + * Name of menuitem + * @type {string} + * @memberof V1alpha1MenuItemApiDeletev1alpha1MenuItem + */ + readonly name: string } /** @@ -620,12 +428,12 @@ export interface V1alpha1MenuItemApiDeletev1alpha1MenuItemRequest { * @interface V1alpha1MenuItemApiGetv1alpha1MenuItemRequest */ export interface V1alpha1MenuItemApiGetv1alpha1MenuItemRequest { - /** - * Name of menuitem - * @type {string} - * @memberof V1alpha1MenuItemApiGetv1alpha1MenuItem - */ - readonly name: string; + /** + * Name of menuitem + * @type {string} + * @memberof V1alpha1MenuItemApiGetv1alpha1MenuItem + */ + readonly name: string } /** @@ -634,40 +442,40 @@ export interface V1alpha1MenuItemApiGetv1alpha1MenuItemRequest { * @interface V1alpha1MenuItemApiListv1alpha1MenuItemRequest */ export interface V1alpha1MenuItemApiListv1alpha1MenuItemRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof V1alpha1MenuItemApiListv1alpha1MenuItem - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof V1alpha1MenuItemApiListv1alpha1MenuItem + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof V1alpha1MenuItemApiListv1alpha1MenuItem - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof V1alpha1MenuItemApiListv1alpha1MenuItem + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof V1alpha1MenuItemApiListv1alpha1MenuItem - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof V1alpha1MenuItemApiListv1alpha1MenuItem + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof V1alpha1MenuItemApiListv1alpha1MenuItem - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof V1alpha1MenuItemApiListv1alpha1MenuItem + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof V1alpha1MenuItemApiListv1alpha1MenuItem - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof V1alpha1MenuItemApiListv1alpha1MenuItem + */ + readonly sort?: Array } /** @@ -676,19 +484,19 @@ export interface V1alpha1MenuItemApiListv1alpha1MenuItemRequest { * @interface V1alpha1MenuItemApiUpdatev1alpha1MenuItemRequest */ export interface V1alpha1MenuItemApiUpdatev1alpha1MenuItemRequest { - /** - * Name of menuitem - * @type {string} - * @memberof V1alpha1MenuItemApiUpdatev1alpha1MenuItem - */ - readonly name: string; + /** + * Name of menuitem + * @type {string} + * @memberof V1alpha1MenuItemApiUpdatev1alpha1MenuItem + */ + readonly name: string - /** - * Updated menuitem - * @type {MenuItem} - * @memberof V1alpha1MenuItemApiUpdatev1alpha1MenuItem - */ - readonly menuItem?: MenuItem; + /** + * Updated menuitem + * @type {MenuItem} + * @memberof V1alpha1MenuItemApiUpdatev1alpha1MenuItem + */ + readonly menuItem?: MenuItem } /** @@ -698,94 +506,59 @@ export interface V1alpha1MenuItemApiUpdatev1alpha1MenuItemRequest { * @extends {BaseAPI} */ export class V1alpha1MenuItemApi extends BaseAPI { - /** - * Create v1alpha1/MenuItem - * @param {V1alpha1MenuItemApiCreatev1alpha1MenuItemRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1MenuItemApi - */ - public createv1alpha1MenuItem( - requestParameters: V1alpha1MenuItemApiCreatev1alpha1MenuItemRequest = {}, - options?: AxiosRequestConfig - ) { - return V1alpha1MenuItemApiFp(this.configuration) - .createv1alpha1MenuItem(requestParameters.menuItem, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create v1alpha1/MenuItem + * @param {V1alpha1MenuItemApiCreatev1alpha1MenuItemRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1MenuItemApi + */ + public createv1alpha1MenuItem(requestParameters: V1alpha1MenuItemApiCreatev1alpha1MenuItemRequest = {}, options?: RawAxiosRequestConfig) { + return V1alpha1MenuItemApiFp(this.configuration).createv1alpha1MenuItem(requestParameters.menuItem, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete v1alpha1/MenuItem - * @param {V1alpha1MenuItemApiDeletev1alpha1MenuItemRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1MenuItemApi - */ - public deletev1alpha1MenuItem( - requestParameters: V1alpha1MenuItemApiDeletev1alpha1MenuItemRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1MenuItemApiFp(this.configuration) - .deletev1alpha1MenuItem(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete v1alpha1/MenuItem + * @param {V1alpha1MenuItemApiDeletev1alpha1MenuItemRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1MenuItemApi + */ + public deletev1alpha1MenuItem(requestParameters: V1alpha1MenuItemApiDeletev1alpha1MenuItemRequest, options?: RawAxiosRequestConfig) { + return V1alpha1MenuItemApiFp(this.configuration).deletev1alpha1MenuItem(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get v1alpha1/MenuItem - * @param {V1alpha1MenuItemApiGetv1alpha1MenuItemRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1MenuItemApi - */ - public getv1alpha1MenuItem( - requestParameters: V1alpha1MenuItemApiGetv1alpha1MenuItemRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1MenuItemApiFp(this.configuration) - .getv1alpha1MenuItem(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get v1alpha1/MenuItem + * @param {V1alpha1MenuItemApiGetv1alpha1MenuItemRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1MenuItemApi + */ + public getv1alpha1MenuItem(requestParameters: V1alpha1MenuItemApiGetv1alpha1MenuItemRequest, options?: RawAxiosRequestConfig) { + return V1alpha1MenuItemApiFp(this.configuration).getv1alpha1MenuItem(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List v1alpha1/MenuItem - * @param {V1alpha1MenuItemApiListv1alpha1MenuItemRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1MenuItemApi - */ - public listv1alpha1MenuItem( - requestParameters: V1alpha1MenuItemApiListv1alpha1MenuItemRequest = {}, - options?: AxiosRequestConfig - ) { - return V1alpha1MenuItemApiFp(this.configuration) - .listv1alpha1MenuItem( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List v1alpha1/MenuItem + * @param {V1alpha1MenuItemApiListv1alpha1MenuItemRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1MenuItemApi + */ + public listv1alpha1MenuItem(requestParameters: V1alpha1MenuItemApiListv1alpha1MenuItemRequest = {}, options?: RawAxiosRequestConfig) { + return V1alpha1MenuItemApiFp(this.configuration).listv1alpha1MenuItem(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update v1alpha1/MenuItem - * @param {V1alpha1MenuItemApiUpdatev1alpha1MenuItemRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1MenuItemApi - */ - public updatev1alpha1MenuItem( - requestParameters: V1alpha1MenuItemApiUpdatev1alpha1MenuItemRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1MenuItemApiFp(this.configuration) - .updatev1alpha1MenuItem( - requestParameters.name, - requestParameters.menuItem, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update v1alpha1/MenuItem + * @param {V1alpha1MenuItemApiUpdatev1alpha1MenuItemRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1MenuItemApi + */ + public updatev1alpha1MenuItem(requestParameters: V1alpha1MenuItemApiUpdatev1alpha1MenuItemRequest, options?: RawAxiosRequestConfig) { + return V1alpha1MenuItemApiFp(this.configuration).updatev1alpha1MenuItem(requestParameters.name, requestParameters.menuItem, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/v1alpha1-personal-access-token-api.ts b/ui/packages/api-client/src/api/v1alpha1-personal-access-token-api.ts deleted file mode 100644 index ad0db22c1..000000000 --- a/ui/packages/api-client/src/api/v1alpha1-personal-access-token-api.ts +++ /dev/null @@ -1,817 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Halo Next API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; -// Some imports not used depending on template conditions -// @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; -// @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; -// @ts-ignore -import { PersonalAccessToken } from "../models"; -// @ts-ignore -import { PersonalAccessTokenList } from "../models"; -/** - * V1alpha1PersonalAccessTokenApi - axios parameter creator - * @export - */ -export const V1alpha1PersonalAccessTokenApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create v1alpha1/PersonalAccessToken - * @param {PersonalAccessToken} [personalAccessToken] Fresh personalaccesstoken - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createv1alpha1PersonalAccessToken: async ( - personalAccessToken?: PersonalAccessToken, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/api/v1alpha1/personalaccesstokens`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - localVarHeaderParameter["Content-Type"] = "application/json"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - personalAccessToken, - localVarRequestOptions, - configuration - ); - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete v1alpha1/PersonalAccessToken - * @param {string} name Name of personalaccesstoken - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletev1alpha1PersonalAccessToken: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletev1alpha1PersonalAccessToken", "name", name); - const localVarPath = `/api/v1alpha1/personalaccesstokens/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get v1alpha1/PersonalAccessToken - * @param {string} name Name of personalaccesstoken - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getv1alpha1PersonalAccessToken: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getv1alpha1PersonalAccessToken", "name", name); - const localVarPath = `/api/v1alpha1/personalaccesstokens/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List v1alpha1/PersonalAccessToken - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listv1alpha1PersonalAccessToken: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/api/v1alpha1/personalaccesstokens`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } - - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } - - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } - - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } - - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update v1alpha1/PersonalAccessToken - * @param {string} name Name of personalaccesstoken - * @param {PersonalAccessToken} [personalAccessToken] Updated personalaccesstoken - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatev1alpha1PersonalAccessToken: async ( - name: string, - personalAccessToken?: PersonalAccessToken, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatev1alpha1PersonalAccessToken", "name", name); - const localVarPath = `/api/v1alpha1/personalaccesstokens/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); - - localVarHeaderParameter["Content-Type"] = "application/json"; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - personalAccessToken, - localVarRequestOptions, - configuration - ); - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; -}; - -/** - * V1alpha1PersonalAccessTokenApi - functional programming interface - * @export - */ -export const V1alpha1PersonalAccessTokenApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - V1alpha1PersonalAccessTokenApiAxiosParamCreator(configuration); - return { - /** - * Create v1alpha1/PersonalAccessToken - * @param {PersonalAccessToken} [personalAccessToken] Fresh personalaccesstoken - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createv1alpha1PersonalAccessToken( - personalAccessToken?: PersonalAccessToken, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createv1alpha1PersonalAccessToken( - personalAccessToken, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete v1alpha1/PersonalAccessToken - * @param {string} name Name of personalaccesstoken - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletev1alpha1PersonalAccessToken( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletev1alpha1PersonalAccessToken( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get v1alpha1/PersonalAccessToken - * @param {string} name Name of personalaccesstoken - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getv1alpha1PersonalAccessToken( - name: string, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getv1alpha1PersonalAccessToken( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List v1alpha1/PersonalAccessToken - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listv1alpha1PersonalAccessToken( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listv1alpha1PersonalAccessToken( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update v1alpha1/PersonalAccessToken - * @param {string} name Name of personalaccesstoken - * @param {PersonalAccessToken} [personalAccessToken] Updated personalaccesstoken - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatev1alpha1PersonalAccessToken( - name: string, - personalAccessToken?: PersonalAccessToken, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatev1alpha1PersonalAccessToken( - name, - personalAccessToken, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; -}; - -/** - * V1alpha1PersonalAccessTokenApi - factory interface - * @export - */ -export const V1alpha1PersonalAccessTokenApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = V1alpha1PersonalAccessTokenApiFp(configuration); - return { - /** - * Create v1alpha1/PersonalAccessToken - * @param {V1alpha1PersonalAccessTokenApiCreatev1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createv1alpha1PersonalAccessToken( - requestParameters: V1alpha1PersonalAccessTokenApiCreatev1alpha1PersonalAccessTokenRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createv1alpha1PersonalAccessToken( - requestParameters.personalAccessToken, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Delete v1alpha1/PersonalAccessToken - * @param {V1alpha1PersonalAccessTokenApiDeletev1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletev1alpha1PersonalAccessToken( - requestParameters: V1alpha1PersonalAccessTokenApiDeletev1alpha1PersonalAccessTokenRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletev1alpha1PersonalAccessToken(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get v1alpha1/PersonalAccessToken - * @param {V1alpha1PersonalAccessTokenApiGetv1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getv1alpha1PersonalAccessToken( - requestParameters: V1alpha1PersonalAccessTokenApiGetv1alpha1PersonalAccessTokenRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getv1alpha1PersonalAccessToken(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List v1alpha1/PersonalAccessToken - * @param {V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listv1alpha1PersonalAccessToken( - requestParameters: V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessTokenRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listv1alpha1PersonalAccessToken( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update v1alpha1/PersonalAccessToken - * @param {V1alpha1PersonalAccessTokenApiUpdatev1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatev1alpha1PersonalAccessToken( - requestParameters: V1alpha1PersonalAccessTokenApiUpdatev1alpha1PersonalAccessTokenRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatev1alpha1PersonalAccessToken( - requestParameters.name, - requestParameters.personalAccessToken, - options - ) - .then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for createv1alpha1PersonalAccessToken operation in V1alpha1PersonalAccessTokenApi. - * @export - * @interface V1alpha1PersonalAccessTokenApiCreatev1alpha1PersonalAccessTokenRequest - */ -export interface V1alpha1PersonalAccessTokenApiCreatev1alpha1PersonalAccessTokenRequest { - /** - * Fresh personalaccesstoken - * @type {PersonalAccessToken} - * @memberof V1alpha1PersonalAccessTokenApiCreatev1alpha1PersonalAccessToken - */ - readonly personalAccessToken?: PersonalAccessToken; -} - -/** - * Request parameters for deletev1alpha1PersonalAccessToken operation in V1alpha1PersonalAccessTokenApi. - * @export - * @interface V1alpha1PersonalAccessTokenApiDeletev1alpha1PersonalAccessTokenRequest - */ -export interface V1alpha1PersonalAccessTokenApiDeletev1alpha1PersonalAccessTokenRequest { - /** - * Name of personalaccesstoken - * @type {string} - * @memberof V1alpha1PersonalAccessTokenApiDeletev1alpha1PersonalAccessToken - */ - readonly name: string; -} - -/** - * Request parameters for getv1alpha1PersonalAccessToken operation in V1alpha1PersonalAccessTokenApi. - * @export - * @interface V1alpha1PersonalAccessTokenApiGetv1alpha1PersonalAccessTokenRequest - */ -export interface V1alpha1PersonalAccessTokenApiGetv1alpha1PersonalAccessTokenRequest { - /** - * Name of personalaccesstoken - * @type {string} - * @memberof V1alpha1PersonalAccessTokenApiGetv1alpha1PersonalAccessToken - */ - readonly name: string; -} - -/** - * Request parameters for listv1alpha1PersonalAccessToken operation in V1alpha1PersonalAccessTokenApi. - * @export - * @interface V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessTokenRequest - */ -export interface V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessTokenRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessToken - */ - readonly fieldSelector?: Array; - - /** - * Label selector for filtering. - * @type {Array} - * @memberof V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessToken - */ - readonly labelSelector?: Array; - - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessToken - */ - readonly page?: number; - - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessToken - */ - readonly size?: number; - - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessToken - */ - readonly sort?: Array; -} - -/** - * Request parameters for updatev1alpha1PersonalAccessToken operation in V1alpha1PersonalAccessTokenApi. - * @export - * @interface V1alpha1PersonalAccessTokenApiUpdatev1alpha1PersonalAccessTokenRequest - */ -export interface V1alpha1PersonalAccessTokenApiUpdatev1alpha1PersonalAccessTokenRequest { - /** - * Name of personalaccesstoken - * @type {string} - * @memberof V1alpha1PersonalAccessTokenApiUpdatev1alpha1PersonalAccessToken - */ - readonly name: string; - - /** - * Updated personalaccesstoken - * @type {PersonalAccessToken} - * @memberof V1alpha1PersonalAccessTokenApiUpdatev1alpha1PersonalAccessToken - */ - readonly personalAccessToken?: PersonalAccessToken; -} - -/** - * V1alpha1PersonalAccessTokenApi - object-oriented interface - * @export - * @class V1alpha1PersonalAccessTokenApi - * @extends {BaseAPI} - */ -export class V1alpha1PersonalAccessTokenApi extends BaseAPI { - /** - * Create v1alpha1/PersonalAccessToken - * @param {V1alpha1PersonalAccessTokenApiCreatev1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1PersonalAccessTokenApi - */ - public createv1alpha1PersonalAccessToken( - requestParameters: V1alpha1PersonalAccessTokenApiCreatev1alpha1PersonalAccessTokenRequest = {}, - options?: AxiosRequestConfig - ) { - return V1alpha1PersonalAccessTokenApiFp(this.configuration) - .createv1alpha1PersonalAccessToken( - requestParameters.personalAccessToken, - options - ) - .then((request) => request(this.axios, this.basePath)); - } - - /** - * Delete v1alpha1/PersonalAccessToken - * @param {V1alpha1PersonalAccessTokenApiDeletev1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1PersonalAccessTokenApi - */ - public deletev1alpha1PersonalAccessToken( - requestParameters: V1alpha1PersonalAccessTokenApiDeletev1alpha1PersonalAccessTokenRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1PersonalAccessTokenApiFp(this.configuration) - .deletev1alpha1PersonalAccessToken(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } - - /** - * Get v1alpha1/PersonalAccessToken - * @param {V1alpha1PersonalAccessTokenApiGetv1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1PersonalAccessTokenApi - */ - public getv1alpha1PersonalAccessToken( - requestParameters: V1alpha1PersonalAccessTokenApiGetv1alpha1PersonalAccessTokenRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1PersonalAccessTokenApiFp(this.configuration) - .getv1alpha1PersonalAccessToken(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } - - /** - * List v1alpha1/PersonalAccessToken - * @param {V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1PersonalAccessTokenApi - */ - public listv1alpha1PersonalAccessToken( - requestParameters: V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessTokenRequest = {}, - options?: AxiosRequestConfig - ) { - return V1alpha1PersonalAccessTokenApiFp(this.configuration) - .listv1alpha1PersonalAccessToken( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } - - /** - * Update v1alpha1/PersonalAccessToken - * @param {V1alpha1PersonalAccessTokenApiUpdatev1alpha1PersonalAccessTokenRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1PersonalAccessTokenApi - */ - public updatev1alpha1PersonalAccessToken( - requestParameters: V1alpha1PersonalAccessTokenApiUpdatev1alpha1PersonalAccessTokenRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1PersonalAccessTokenApiFp(this.configuration) - .updatev1alpha1PersonalAccessToken( - requestParameters.name, - requestParameters.personalAccessToken, - options - ) - .then((request) => request(this.axios, this.basePath)); - } -} diff --git a/ui/packages/api-client/src/api/v1alpha1-role-api.ts b/ui/packages/api-client/src/api/v1alpha1-role-api.ts index fe37c9ede..c1ce4e0f3 100644 --- a/ui/packages/api-client/src/api/v1alpha1-role-api.ts +++ b/ui/packages/api-client/src/api/v1alpha1-role-api.ts @@ -5,580 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Role } from "../models"; +import { Role } from '../models'; // @ts-ignore -import { RoleList } from "../models"; +import { RoleList } from '../models'; /** * V1alpha1RoleApi - axios parameter creator * @export */ -export const V1alpha1RoleApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create v1alpha1/Role - * @param {Role} [role] Fresh role - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createv1alpha1Role: async ( - role?: Role, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/api/v1alpha1/roles`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const V1alpha1RoleApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create v1alpha1/Role + * @param {Role} [role] Fresh role + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createv1alpha1Role: async (role?: Role, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1alpha1/roles`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - role, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete v1alpha1/Role - * @param {string} name Name of role - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletev1alpha1Role: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletev1alpha1Role", "name", name); - const localVarPath = `/api/v1alpha1/roles/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(role, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete v1alpha1/Role + * @param {string} name Name of role + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletev1alpha1Role: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletev1alpha1Role', 'name', name) + const localVarPath = `/api/v1alpha1/roles/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get v1alpha1/Role - * @param {string} name Name of role - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getv1alpha1Role: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getv1alpha1Role", "name", name); - const localVarPath = `/api/v1alpha1/roles/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get v1alpha1/Role + * @param {string} name Name of role + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getv1alpha1Role: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getv1alpha1Role', 'name', name) + const localVarPath = `/api/v1alpha1/roles/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List v1alpha1/Role - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listv1alpha1Role: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/api/v1alpha1/roles`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List v1alpha1/Role + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listv1alpha1Role: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1alpha1/roles`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update v1alpha1/Role - * @param {string} name Name of role - * @param {Role} [role] Updated role - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatev1alpha1Role: async ( - name: string, - role?: Role, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatev1alpha1Role", "name", name); - const localVarPath = `/api/v1alpha1/roles/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update v1alpha1/Role + * @param {string} name Name of role + * @param {Role} [role] Updated role + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatev1alpha1Role: async (name: string, role?: Role, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatev1alpha1Role', 'name', name) + const localVarPath = `/api/v1alpha1/roles/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - role, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(role, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * V1alpha1RoleApi - functional programming interface * @export */ -export const V1alpha1RoleApiFp = function (configuration?: Configuration) { - const localVarAxiosParamCreator = - V1alpha1RoleApiAxiosParamCreator(configuration); - return { - /** - * Create v1alpha1/Role - * @param {Role} [role] Fresh role - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createv1alpha1Role( - role?: Role, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createv1alpha1Role(role, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete v1alpha1/Role - * @param {string} name Name of role - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletev1alpha1Role( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletev1alpha1Role(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get v1alpha1/Role - * @param {string} name Name of role - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getv1alpha1Role( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1Role( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List v1alpha1/Role - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listv1alpha1Role( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listv1alpha1Role( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update v1alpha1/Role - * @param {string} name Name of role - * @param {Role} [role] Updated role - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatev1alpha1Role( - name: string, - role?: Role, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatev1alpha1Role(name, role, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const V1alpha1RoleApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = V1alpha1RoleApiAxiosParamCreator(configuration) + return { + /** + * Create v1alpha1/Role + * @param {Role} [role] Fresh role + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createv1alpha1Role(role?: Role, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1Role(role, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1RoleApi.createv1alpha1Role']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete v1alpha1/Role + * @param {string} name Name of role + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletev1alpha1Role(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1Role(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1RoleApi.deletev1alpha1Role']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get v1alpha1/Role + * @param {string} name Name of role + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getv1alpha1Role(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1Role(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1RoleApi.getv1alpha1Role']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List v1alpha1/Role + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listv1alpha1Role(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1Role(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1RoleApi.listv1alpha1Role']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update v1alpha1/Role + * @param {string} name Name of role + * @param {Role} [role] Updated role + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatev1alpha1Role(name: string, role?: Role, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1Role(name, role, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1RoleApi.updatev1alpha1Role']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * V1alpha1RoleApi - factory interface * @export */ -export const V1alpha1RoleApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = V1alpha1RoleApiFp(configuration); - return { - /** - * Create v1alpha1/Role - * @param {V1alpha1RoleApiCreatev1alpha1RoleRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createv1alpha1Role( - requestParameters: V1alpha1RoleApiCreatev1alpha1RoleRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createv1alpha1Role(requestParameters.role, options) - .then((request) => request(axios, basePath)); - }, - /** - * Delete v1alpha1/Role - * @param {V1alpha1RoleApiDeletev1alpha1RoleRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletev1alpha1Role( - requestParameters: V1alpha1RoleApiDeletev1alpha1RoleRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletev1alpha1Role(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get v1alpha1/Role - * @param {V1alpha1RoleApiGetv1alpha1RoleRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getv1alpha1Role( - requestParameters: V1alpha1RoleApiGetv1alpha1RoleRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getv1alpha1Role(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List v1alpha1/Role - * @param {V1alpha1RoleApiListv1alpha1RoleRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listv1alpha1Role( - requestParameters: V1alpha1RoleApiListv1alpha1RoleRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listv1alpha1Role( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update v1alpha1/Role - * @param {V1alpha1RoleApiUpdatev1alpha1RoleRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatev1alpha1Role( - requestParameters: V1alpha1RoleApiUpdatev1alpha1RoleRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatev1alpha1Role( - requestParameters.name, - requestParameters.role, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const V1alpha1RoleApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = V1alpha1RoleApiFp(configuration) + return { + /** + * Create v1alpha1/Role + * @param {V1alpha1RoleApiCreatev1alpha1RoleRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createv1alpha1Role(requestParameters: V1alpha1RoleApiCreatev1alpha1RoleRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createv1alpha1Role(requestParameters.role, options).then((request) => request(axios, basePath)); + }, + /** + * Delete v1alpha1/Role + * @param {V1alpha1RoleApiDeletev1alpha1RoleRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletev1alpha1Role(requestParameters: V1alpha1RoleApiDeletev1alpha1RoleRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletev1alpha1Role(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get v1alpha1/Role + * @param {V1alpha1RoleApiGetv1alpha1RoleRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getv1alpha1Role(requestParameters: V1alpha1RoleApiGetv1alpha1RoleRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getv1alpha1Role(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List v1alpha1/Role + * @param {V1alpha1RoleApiListv1alpha1RoleRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listv1alpha1Role(requestParameters: V1alpha1RoleApiListv1alpha1RoleRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listv1alpha1Role(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update v1alpha1/Role + * @param {V1alpha1RoleApiUpdatev1alpha1RoleRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatev1alpha1Role(requestParameters: V1alpha1RoleApiUpdatev1alpha1RoleRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatev1alpha1Role(requestParameters.name, requestParameters.role, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -587,12 +400,12 @@ export const V1alpha1RoleApiFactory = function ( * @interface V1alpha1RoleApiCreatev1alpha1RoleRequest */ export interface V1alpha1RoleApiCreatev1alpha1RoleRequest { - /** - * Fresh role - * @type {Role} - * @memberof V1alpha1RoleApiCreatev1alpha1Role - */ - readonly role?: Role; + /** + * Fresh role + * @type {Role} + * @memberof V1alpha1RoleApiCreatev1alpha1Role + */ + readonly role?: Role } /** @@ -601,12 +414,12 @@ export interface V1alpha1RoleApiCreatev1alpha1RoleRequest { * @interface V1alpha1RoleApiDeletev1alpha1RoleRequest */ export interface V1alpha1RoleApiDeletev1alpha1RoleRequest { - /** - * Name of role - * @type {string} - * @memberof V1alpha1RoleApiDeletev1alpha1Role - */ - readonly name: string; + /** + * Name of role + * @type {string} + * @memberof V1alpha1RoleApiDeletev1alpha1Role + */ + readonly name: string } /** @@ -615,12 +428,12 @@ export interface V1alpha1RoleApiDeletev1alpha1RoleRequest { * @interface V1alpha1RoleApiGetv1alpha1RoleRequest */ export interface V1alpha1RoleApiGetv1alpha1RoleRequest { - /** - * Name of role - * @type {string} - * @memberof V1alpha1RoleApiGetv1alpha1Role - */ - readonly name: string; + /** + * Name of role + * @type {string} + * @memberof V1alpha1RoleApiGetv1alpha1Role + */ + readonly name: string } /** @@ -629,40 +442,40 @@ export interface V1alpha1RoleApiGetv1alpha1RoleRequest { * @interface V1alpha1RoleApiListv1alpha1RoleRequest */ export interface V1alpha1RoleApiListv1alpha1RoleRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof V1alpha1RoleApiListv1alpha1Role - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof V1alpha1RoleApiListv1alpha1Role + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof V1alpha1RoleApiListv1alpha1Role - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof V1alpha1RoleApiListv1alpha1Role + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof V1alpha1RoleApiListv1alpha1Role - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof V1alpha1RoleApiListv1alpha1Role + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof V1alpha1RoleApiListv1alpha1Role - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof V1alpha1RoleApiListv1alpha1Role + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof V1alpha1RoleApiListv1alpha1Role - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof V1alpha1RoleApiListv1alpha1Role + */ + readonly sort?: Array } /** @@ -671,19 +484,19 @@ export interface V1alpha1RoleApiListv1alpha1RoleRequest { * @interface V1alpha1RoleApiUpdatev1alpha1RoleRequest */ export interface V1alpha1RoleApiUpdatev1alpha1RoleRequest { - /** - * Name of role - * @type {string} - * @memberof V1alpha1RoleApiUpdatev1alpha1Role - */ - readonly name: string; + /** + * Name of role + * @type {string} + * @memberof V1alpha1RoleApiUpdatev1alpha1Role + */ + readonly name: string - /** - * Updated role - * @type {Role} - * @memberof V1alpha1RoleApiUpdatev1alpha1Role - */ - readonly role?: Role; + /** + * Updated role + * @type {Role} + * @memberof V1alpha1RoleApiUpdatev1alpha1Role + */ + readonly role?: Role } /** @@ -693,94 +506,59 @@ export interface V1alpha1RoleApiUpdatev1alpha1RoleRequest { * @extends {BaseAPI} */ export class V1alpha1RoleApi extends BaseAPI { - /** - * Create v1alpha1/Role - * @param {V1alpha1RoleApiCreatev1alpha1RoleRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1RoleApi - */ - public createv1alpha1Role( - requestParameters: V1alpha1RoleApiCreatev1alpha1RoleRequest = {}, - options?: AxiosRequestConfig - ) { - return V1alpha1RoleApiFp(this.configuration) - .createv1alpha1Role(requestParameters.role, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create v1alpha1/Role + * @param {V1alpha1RoleApiCreatev1alpha1RoleRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1RoleApi + */ + public createv1alpha1Role(requestParameters: V1alpha1RoleApiCreatev1alpha1RoleRequest = {}, options?: RawAxiosRequestConfig) { + return V1alpha1RoleApiFp(this.configuration).createv1alpha1Role(requestParameters.role, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete v1alpha1/Role - * @param {V1alpha1RoleApiDeletev1alpha1RoleRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1RoleApi - */ - public deletev1alpha1Role( - requestParameters: V1alpha1RoleApiDeletev1alpha1RoleRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1RoleApiFp(this.configuration) - .deletev1alpha1Role(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete v1alpha1/Role + * @param {V1alpha1RoleApiDeletev1alpha1RoleRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1RoleApi + */ + public deletev1alpha1Role(requestParameters: V1alpha1RoleApiDeletev1alpha1RoleRequest, options?: RawAxiosRequestConfig) { + return V1alpha1RoleApiFp(this.configuration).deletev1alpha1Role(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get v1alpha1/Role - * @param {V1alpha1RoleApiGetv1alpha1RoleRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1RoleApi - */ - public getv1alpha1Role( - requestParameters: V1alpha1RoleApiGetv1alpha1RoleRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1RoleApiFp(this.configuration) - .getv1alpha1Role(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get v1alpha1/Role + * @param {V1alpha1RoleApiGetv1alpha1RoleRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1RoleApi + */ + public getv1alpha1Role(requestParameters: V1alpha1RoleApiGetv1alpha1RoleRequest, options?: RawAxiosRequestConfig) { + return V1alpha1RoleApiFp(this.configuration).getv1alpha1Role(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List v1alpha1/Role - * @param {V1alpha1RoleApiListv1alpha1RoleRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1RoleApi - */ - public listv1alpha1Role( - requestParameters: V1alpha1RoleApiListv1alpha1RoleRequest = {}, - options?: AxiosRequestConfig - ) { - return V1alpha1RoleApiFp(this.configuration) - .listv1alpha1Role( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List v1alpha1/Role + * @param {V1alpha1RoleApiListv1alpha1RoleRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1RoleApi + */ + public listv1alpha1Role(requestParameters: V1alpha1RoleApiListv1alpha1RoleRequest = {}, options?: RawAxiosRequestConfig) { + return V1alpha1RoleApiFp(this.configuration).listv1alpha1Role(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update v1alpha1/Role - * @param {V1alpha1RoleApiUpdatev1alpha1RoleRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1RoleApi - */ - public updatev1alpha1Role( - requestParameters: V1alpha1RoleApiUpdatev1alpha1RoleRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1RoleApiFp(this.configuration) - .updatev1alpha1Role( - requestParameters.name, - requestParameters.role, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update v1alpha1/Role + * @param {V1alpha1RoleApiUpdatev1alpha1RoleRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1RoleApi + */ + public updatev1alpha1Role(requestParameters: V1alpha1RoleApiUpdatev1alpha1RoleRequest, options?: RawAxiosRequestConfig) { + return V1alpha1RoleApiFp(this.configuration).updatev1alpha1Role(requestParameters.name, requestParameters.role, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/v1alpha1-role-binding-api.ts b/ui/packages/api-client/src/api/v1alpha1-role-binding-api.ts index 99d14b899..b14921339 100644 --- a/ui/packages/api-client/src/api/v1alpha1-role-binding-api.ts +++ b/ui/packages/api-client/src/api/v1alpha1-role-binding-api.ts @@ -5,593 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { RoleBinding } from "../models"; +import { RoleBinding } from '../models'; // @ts-ignore -import { RoleBindingList } from "../models"; +import { RoleBindingList } from '../models'; /** * V1alpha1RoleBindingApi - axios parameter creator * @export */ -export const V1alpha1RoleBindingApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create v1alpha1/RoleBinding - * @param {RoleBinding} [roleBinding] Fresh rolebinding - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createv1alpha1RoleBinding: async ( - roleBinding?: RoleBinding, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/api/v1alpha1/rolebindings`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const V1alpha1RoleBindingApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create v1alpha1/RoleBinding + * @param {RoleBinding} [roleBinding] Fresh rolebinding + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createv1alpha1RoleBinding: async (roleBinding?: RoleBinding, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1alpha1/rolebindings`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - roleBinding, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete v1alpha1/RoleBinding - * @param {string} name Name of rolebinding - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletev1alpha1RoleBinding: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletev1alpha1RoleBinding", "name", name); - const localVarPath = `/api/v1alpha1/rolebindings/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(roleBinding, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete v1alpha1/RoleBinding + * @param {string} name Name of rolebinding + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletev1alpha1RoleBinding: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletev1alpha1RoleBinding', 'name', name) + const localVarPath = `/api/v1alpha1/rolebindings/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get v1alpha1/RoleBinding - * @param {string} name Name of rolebinding - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getv1alpha1RoleBinding: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getv1alpha1RoleBinding", "name", name); - const localVarPath = `/api/v1alpha1/rolebindings/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get v1alpha1/RoleBinding + * @param {string} name Name of rolebinding + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getv1alpha1RoleBinding: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getv1alpha1RoleBinding', 'name', name) + const localVarPath = `/api/v1alpha1/rolebindings/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List v1alpha1/RoleBinding - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listv1alpha1RoleBinding: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/api/v1alpha1/rolebindings`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List v1alpha1/RoleBinding + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listv1alpha1RoleBinding: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1alpha1/rolebindings`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update v1alpha1/RoleBinding - * @param {string} name Name of rolebinding - * @param {RoleBinding} [roleBinding] Updated rolebinding - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatev1alpha1RoleBinding: async ( - name: string, - roleBinding?: RoleBinding, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatev1alpha1RoleBinding", "name", name); - const localVarPath = `/api/v1alpha1/rolebindings/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update v1alpha1/RoleBinding + * @param {string} name Name of rolebinding + * @param {RoleBinding} [roleBinding] Updated rolebinding + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatev1alpha1RoleBinding: async (name: string, roleBinding?: RoleBinding, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatev1alpha1RoleBinding', 'name', name) + const localVarPath = `/api/v1alpha1/rolebindings/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - roleBinding, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(roleBinding, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * V1alpha1RoleBindingApi - functional programming interface * @export */ -export const V1alpha1RoleBindingApiFp = function ( - configuration?: Configuration -) { - const localVarAxiosParamCreator = - V1alpha1RoleBindingApiAxiosParamCreator(configuration); - return { - /** - * Create v1alpha1/RoleBinding - * @param {RoleBinding} [roleBinding] Fresh rolebinding - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createv1alpha1RoleBinding( - roleBinding?: RoleBinding, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createv1alpha1RoleBinding( - roleBinding, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete v1alpha1/RoleBinding - * @param {string} name Name of rolebinding - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletev1alpha1RoleBinding( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletev1alpha1RoleBinding( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get v1alpha1/RoleBinding - * @param {string} name Name of rolebinding - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getv1alpha1RoleBinding( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getv1alpha1RoleBinding(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List v1alpha1/RoleBinding - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listv1alpha1RoleBinding( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - ( - axios?: AxiosInstance, - basePath?: string - ) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listv1alpha1RoleBinding( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update v1alpha1/RoleBinding - * @param {string} name Name of rolebinding - * @param {RoleBinding} [roleBinding] Updated rolebinding - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatev1alpha1RoleBinding( - name: string, - roleBinding?: RoleBinding, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatev1alpha1RoleBinding( - name, - roleBinding, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const V1alpha1RoleBindingApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = V1alpha1RoleBindingApiAxiosParamCreator(configuration) + return { + /** + * Create v1alpha1/RoleBinding + * @param {RoleBinding} [roleBinding] Fresh rolebinding + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createv1alpha1RoleBinding(roleBinding?: RoleBinding, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1RoleBinding(roleBinding, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1RoleBindingApi.createv1alpha1RoleBinding']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete v1alpha1/RoleBinding + * @param {string} name Name of rolebinding + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletev1alpha1RoleBinding(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1RoleBinding(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1RoleBindingApi.deletev1alpha1RoleBinding']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get v1alpha1/RoleBinding + * @param {string} name Name of rolebinding + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getv1alpha1RoleBinding(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1RoleBinding(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1RoleBindingApi.getv1alpha1RoleBinding']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List v1alpha1/RoleBinding + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listv1alpha1RoleBinding(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1RoleBinding(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1RoleBindingApi.listv1alpha1RoleBinding']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update v1alpha1/RoleBinding + * @param {string} name Name of rolebinding + * @param {RoleBinding} [roleBinding] Updated rolebinding + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatev1alpha1RoleBinding(name: string, roleBinding?: RoleBinding, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1RoleBinding(name, roleBinding, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1RoleBindingApi.updatev1alpha1RoleBinding']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * V1alpha1RoleBindingApi - factory interface * @export */ -export const V1alpha1RoleBindingApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = V1alpha1RoleBindingApiFp(configuration); - return { - /** - * Create v1alpha1/RoleBinding - * @param {V1alpha1RoleBindingApiCreatev1alpha1RoleBindingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createv1alpha1RoleBinding( - requestParameters: V1alpha1RoleBindingApiCreatev1alpha1RoleBindingRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createv1alpha1RoleBinding(requestParameters.roleBinding, options) - .then((request) => request(axios, basePath)); - }, - /** - * Delete v1alpha1/RoleBinding - * @param {V1alpha1RoleBindingApiDeletev1alpha1RoleBindingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletev1alpha1RoleBinding( - requestParameters: V1alpha1RoleBindingApiDeletev1alpha1RoleBindingRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletev1alpha1RoleBinding(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get v1alpha1/RoleBinding - * @param {V1alpha1RoleBindingApiGetv1alpha1RoleBindingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getv1alpha1RoleBinding( - requestParameters: V1alpha1RoleBindingApiGetv1alpha1RoleBindingRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getv1alpha1RoleBinding(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List v1alpha1/RoleBinding - * @param {V1alpha1RoleBindingApiListv1alpha1RoleBindingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listv1alpha1RoleBinding( - requestParameters: V1alpha1RoleBindingApiListv1alpha1RoleBindingRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listv1alpha1RoleBinding( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update v1alpha1/RoleBinding - * @param {V1alpha1RoleBindingApiUpdatev1alpha1RoleBindingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatev1alpha1RoleBinding( - requestParameters: V1alpha1RoleBindingApiUpdatev1alpha1RoleBindingRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatev1alpha1RoleBinding( - requestParameters.name, - requestParameters.roleBinding, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const V1alpha1RoleBindingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = V1alpha1RoleBindingApiFp(configuration) + return { + /** + * Create v1alpha1/RoleBinding + * @param {V1alpha1RoleBindingApiCreatev1alpha1RoleBindingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createv1alpha1RoleBinding(requestParameters: V1alpha1RoleBindingApiCreatev1alpha1RoleBindingRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createv1alpha1RoleBinding(requestParameters.roleBinding, options).then((request) => request(axios, basePath)); + }, + /** + * Delete v1alpha1/RoleBinding + * @param {V1alpha1RoleBindingApiDeletev1alpha1RoleBindingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletev1alpha1RoleBinding(requestParameters: V1alpha1RoleBindingApiDeletev1alpha1RoleBindingRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletev1alpha1RoleBinding(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get v1alpha1/RoleBinding + * @param {V1alpha1RoleBindingApiGetv1alpha1RoleBindingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getv1alpha1RoleBinding(requestParameters: V1alpha1RoleBindingApiGetv1alpha1RoleBindingRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getv1alpha1RoleBinding(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List v1alpha1/RoleBinding + * @param {V1alpha1RoleBindingApiListv1alpha1RoleBindingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listv1alpha1RoleBinding(requestParameters: V1alpha1RoleBindingApiListv1alpha1RoleBindingRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listv1alpha1RoleBinding(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update v1alpha1/RoleBinding + * @param {V1alpha1RoleBindingApiUpdatev1alpha1RoleBindingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatev1alpha1RoleBinding(requestParameters: V1alpha1RoleBindingApiUpdatev1alpha1RoleBindingRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatev1alpha1RoleBinding(requestParameters.name, requestParameters.roleBinding, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -600,12 +400,12 @@ export const V1alpha1RoleBindingApiFactory = function ( * @interface V1alpha1RoleBindingApiCreatev1alpha1RoleBindingRequest */ export interface V1alpha1RoleBindingApiCreatev1alpha1RoleBindingRequest { - /** - * Fresh rolebinding - * @type {RoleBinding} - * @memberof V1alpha1RoleBindingApiCreatev1alpha1RoleBinding - */ - readonly roleBinding?: RoleBinding; + /** + * Fresh rolebinding + * @type {RoleBinding} + * @memberof V1alpha1RoleBindingApiCreatev1alpha1RoleBinding + */ + readonly roleBinding?: RoleBinding } /** @@ -614,12 +414,12 @@ export interface V1alpha1RoleBindingApiCreatev1alpha1RoleBindingRequest { * @interface V1alpha1RoleBindingApiDeletev1alpha1RoleBindingRequest */ export interface V1alpha1RoleBindingApiDeletev1alpha1RoleBindingRequest { - /** - * Name of rolebinding - * @type {string} - * @memberof V1alpha1RoleBindingApiDeletev1alpha1RoleBinding - */ - readonly name: string; + /** + * Name of rolebinding + * @type {string} + * @memberof V1alpha1RoleBindingApiDeletev1alpha1RoleBinding + */ + readonly name: string } /** @@ -628,12 +428,12 @@ export interface V1alpha1RoleBindingApiDeletev1alpha1RoleBindingRequest { * @interface V1alpha1RoleBindingApiGetv1alpha1RoleBindingRequest */ export interface V1alpha1RoleBindingApiGetv1alpha1RoleBindingRequest { - /** - * Name of rolebinding - * @type {string} - * @memberof V1alpha1RoleBindingApiGetv1alpha1RoleBinding - */ - readonly name: string; + /** + * Name of rolebinding + * @type {string} + * @memberof V1alpha1RoleBindingApiGetv1alpha1RoleBinding + */ + readonly name: string } /** @@ -642,40 +442,40 @@ export interface V1alpha1RoleBindingApiGetv1alpha1RoleBindingRequest { * @interface V1alpha1RoleBindingApiListv1alpha1RoleBindingRequest */ export interface V1alpha1RoleBindingApiListv1alpha1RoleBindingRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding + */ + readonly sort?: Array } /** @@ -684,19 +484,19 @@ export interface V1alpha1RoleBindingApiListv1alpha1RoleBindingRequest { * @interface V1alpha1RoleBindingApiUpdatev1alpha1RoleBindingRequest */ export interface V1alpha1RoleBindingApiUpdatev1alpha1RoleBindingRequest { - /** - * Name of rolebinding - * @type {string} - * @memberof V1alpha1RoleBindingApiUpdatev1alpha1RoleBinding - */ - readonly name: string; + /** + * Name of rolebinding + * @type {string} + * @memberof V1alpha1RoleBindingApiUpdatev1alpha1RoleBinding + */ + readonly name: string - /** - * Updated rolebinding - * @type {RoleBinding} - * @memberof V1alpha1RoleBindingApiUpdatev1alpha1RoleBinding - */ - readonly roleBinding?: RoleBinding; + /** + * Updated rolebinding + * @type {RoleBinding} + * @memberof V1alpha1RoleBindingApiUpdatev1alpha1RoleBinding + */ + readonly roleBinding?: RoleBinding } /** @@ -706,94 +506,59 @@ export interface V1alpha1RoleBindingApiUpdatev1alpha1RoleBindingRequest { * @extends {BaseAPI} */ export class V1alpha1RoleBindingApi extends BaseAPI { - /** - * Create v1alpha1/RoleBinding - * @param {V1alpha1RoleBindingApiCreatev1alpha1RoleBindingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1RoleBindingApi - */ - public createv1alpha1RoleBinding( - requestParameters: V1alpha1RoleBindingApiCreatev1alpha1RoleBindingRequest = {}, - options?: AxiosRequestConfig - ) { - return V1alpha1RoleBindingApiFp(this.configuration) - .createv1alpha1RoleBinding(requestParameters.roleBinding, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create v1alpha1/RoleBinding + * @param {V1alpha1RoleBindingApiCreatev1alpha1RoleBindingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1RoleBindingApi + */ + public createv1alpha1RoleBinding(requestParameters: V1alpha1RoleBindingApiCreatev1alpha1RoleBindingRequest = {}, options?: RawAxiosRequestConfig) { + return V1alpha1RoleBindingApiFp(this.configuration).createv1alpha1RoleBinding(requestParameters.roleBinding, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete v1alpha1/RoleBinding - * @param {V1alpha1RoleBindingApiDeletev1alpha1RoleBindingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1RoleBindingApi - */ - public deletev1alpha1RoleBinding( - requestParameters: V1alpha1RoleBindingApiDeletev1alpha1RoleBindingRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1RoleBindingApiFp(this.configuration) - .deletev1alpha1RoleBinding(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete v1alpha1/RoleBinding + * @param {V1alpha1RoleBindingApiDeletev1alpha1RoleBindingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1RoleBindingApi + */ + public deletev1alpha1RoleBinding(requestParameters: V1alpha1RoleBindingApiDeletev1alpha1RoleBindingRequest, options?: RawAxiosRequestConfig) { + return V1alpha1RoleBindingApiFp(this.configuration).deletev1alpha1RoleBinding(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get v1alpha1/RoleBinding - * @param {V1alpha1RoleBindingApiGetv1alpha1RoleBindingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1RoleBindingApi - */ - public getv1alpha1RoleBinding( - requestParameters: V1alpha1RoleBindingApiGetv1alpha1RoleBindingRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1RoleBindingApiFp(this.configuration) - .getv1alpha1RoleBinding(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get v1alpha1/RoleBinding + * @param {V1alpha1RoleBindingApiGetv1alpha1RoleBindingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1RoleBindingApi + */ + public getv1alpha1RoleBinding(requestParameters: V1alpha1RoleBindingApiGetv1alpha1RoleBindingRequest, options?: RawAxiosRequestConfig) { + return V1alpha1RoleBindingApiFp(this.configuration).getv1alpha1RoleBinding(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List v1alpha1/RoleBinding - * @param {V1alpha1RoleBindingApiListv1alpha1RoleBindingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1RoleBindingApi - */ - public listv1alpha1RoleBinding( - requestParameters: V1alpha1RoleBindingApiListv1alpha1RoleBindingRequest = {}, - options?: AxiosRequestConfig - ) { - return V1alpha1RoleBindingApiFp(this.configuration) - .listv1alpha1RoleBinding( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List v1alpha1/RoleBinding + * @param {V1alpha1RoleBindingApiListv1alpha1RoleBindingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1RoleBindingApi + */ + public listv1alpha1RoleBinding(requestParameters: V1alpha1RoleBindingApiListv1alpha1RoleBindingRequest = {}, options?: RawAxiosRequestConfig) { + return V1alpha1RoleBindingApiFp(this.configuration).listv1alpha1RoleBinding(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update v1alpha1/RoleBinding - * @param {V1alpha1RoleBindingApiUpdatev1alpha1RoleBindingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1RoleBindingApi - */ - public updatev1alpha1RoleBinding( - requestParameters: V1alpha1RoleBindingApiUpdatev1alpha1RoleBindingRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1RoleBindingApiFp(this.configuration) - .updatev1alpha1RoleBinding( - requestParameters.name, - requestParameters.roleBinding, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update v1alpha1/RoleBinding + * @param {V1alpha1RoleBindingApiUpdatev1alpha1RoleBindingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1RoleBindingApi + */ + public updatev1alpha1RoleBinding(requestParameters: V1alpha1RoleBindingApiUpdatev1alpha1RoleBindingRequest, options?: RawAxiosRequestConfig) { + return V1alpha1RoleBindingApiFp(this.configuration).updatev1alpha1RoleBinding(requestParameters.name, requestParameters.roleBinding, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/v1alpha1-secret-api.ts b/ui/packages/api-client/src/api/v1alpha1-secret-api.ts index 37dad7204..38d0f7931 100644 --- a/ui/packages/api-client/src/api/v1alpha1-secret-api.ts +++ b/ui/packages/api-client/src/api/v1alpha1-secret-api.ts @@ -5,582 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Secret } from "../models"; +import { Secret } from '../models'; // @ts-ignore -import { SecretList } from "../models"; +import { SecretList } from '../models'; /** * V1alpha1SecretApi - axios parameter creator * @export */ -export const V1alpha1SecretApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create v1alpha1/Secret - * @param {Secret} [secret] Fresh secret - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createv1alpha1Secret: async ( - secret?: Secret, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/api/v1alpha1/secrets`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const V1alpha1SecretApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create v1alpha1/Secret + * @param {Secret} [secret] Fresh secret + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createv1alpha1Secret: async (secret?: Secret, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1alpha1/secrets`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - secret, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete v1alpha1/Secret - * @param {string} name Name of secret - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletev1alpha1Secret: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletev1alpha1Secret", "name", name); - const localVarPath = `/api/v1alpha1/secrets/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(secret, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete v1alpha1/Secret + * @param {string} name Name of secret + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletev1alpha1Secret: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletev1alpha1Secret', 'name', name) + const localVarPath = `/api/v1alpha1/secrets/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get v1alpha1/Secret - * @param {string} name Name of secret - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getv1alpha1Secret: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getv1alpha1Secret", "name", name); - const localVarPath = `/api/v1alpha1/secrets/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get v1alpha1/Secret + * @param {string} name Name of secret + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getv1alpha1Secret: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getv1alpha1Secret', 'name', name) + const localVarPath = `/api/v1alpha1/secrets/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List v1alpha1/Secret - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listv1alpha1Secret: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/api/v1alpha1/secrets`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List v1alpha1/Secret + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listv1alpha1Secret: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1alpha1/secrets`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update v1alpha1/Secret - * @param {string} name Name of secret - * @param {Secret} [secret] Updated secret - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatev1alpha1Secret: async ( - name: string, - secret?: Secret, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatev1alpha1Secret", "name", name); - const localVarPath = `/api/v1alpha1/secrets/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update v1alpha1/Secret + * @param {string} name Name of secret + * @param {Secret} [secret] Updated secret + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatev1alpha1Secret: async (name: string, secret?: Secret, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatev1alpha1Secret', 'name', name) + const localVarPath = `/api/v1alpha1/secrets/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - secret, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(secret, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * V1alpha1SecretApi - functional programming interface * @export */ -export const V1alpha1SecretApiFp = function (configuration?: Configuration) { - const localVarAxiosParamCreator = - V1alpha1SecretApiAxiosParamCreator(configuration); - return { - /** - * Create v1alpha1/Secret - * @param {Secret} [secret] Fresh secret - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createv1alpha1Secret( - secret?: Secret, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createv1alpha1Secret(secret, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete v1alpha1/Secret - * @param {string} name Name of secret - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletev1alpha1Secret( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletev1alpha1Secret(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get v1alpha1/Secret - * @param {string} name Name of secret - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getv1alpha1Secret( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getv1alpha1Secret(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List v1alpha1/Secret - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listv1alpha1Secret( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listv1alpha1Secret( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update v1alpha1/Secret - * @param {string} name Name of secret - * @param {Secret} [secret] Updated secret - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatev1alpha1Secret( - name: string, - secret?: Secret, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatev1alpha1Secret( - name, - secret, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const V1alpha1SecretApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = V1alpha1SecretApiAxiosParamCreator(configuration) + return { + /** + * Create v1alpha1/Secret + * @param {Secret} [secret] Fresh secret + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createv1alpha1Secret(secret?: Secret, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1Secret(secret, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1SecretApi.createv1alpha1Secret']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete v1alpha1/Secret + * @param {string} name Name of secret + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletev1alpha1Secret(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1Secret(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1SecretApi.deletev1alpha1Secret']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get v1alpha1/Secret + * @param {string} name Name of secret + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getv1alpha1Secret(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1Secret(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1SecretApi.getv1alpha1Secret']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List v1alpha1/Secret + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listv1alpha1Secret(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1Secret(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1SecretApi.listv1alpha1Secret']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update v1alpha1/Secret + * @param {string} name Name of secret + * @param {Secret} [secret] Updated secret + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatev1alpha1Secret(name: string, secret?: Secret, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1Secret(name, secret, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1SecretApi.updatev1alpha1Secret']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * V1alpha1SecretApi - factory interface * @export */ -export const V1alpha1SecretApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = V1alpha1SecretApiFp(configuration); - return { - /** - * Create v1alpha1/Secret - * @param {V1alpha1SecretApiCreatev1alpha1SecretRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createv1alpha1Secret( - requestParameters: V1alpha1SecretApiCreatev1alpha1SecretRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createv1alpha1Secret(requestParameters.secret, options) - .then((request) => request(axios, basePath)); - }, - /** - * Delete v1alpha1/Secret - * @param {V1alpha1SecretApiDeletev1alpha1SecretRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletev1alpha1Secret( - requestParameters: V1alpha1SecretApiDeletev1alpha1SecretRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletev1alpha1Secret(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get v1alpha1/Secret - * @param {V1alpha1SecretApiGetv1alpha1SecretRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getv1alpha1Secret( - requestParameters: V1alpha1SecretApiGetv1alpha1SecretRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getv1alpha1Secret(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List v1alpha1/Secret - * @param {V1alpha1SecretApiListv1alpha1SecretRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listv1alpha1Secret( - requestParameters: V1alpha1SecretApiListv1alpha1SecretRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listv1alpha1Secret( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update v1alpha1/Secret - * @param {V1alpha1SecretApiUpdatev1alpha1SecretRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatev1alpha1Secret( - requestParameters: V1alpha1SecretApiUpdatev1alpha1SecretRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatev1alpha1Secret( - requestParameters.name, - requestParameters.secret, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const V1alpha1SecretApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = V1alpha1SecretApiFp(configuration) + return { + /** + * Create v1alpha1/Secret + * @param {V1alpha1SecretApiCreatev1alpha1SecretRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createv1alpha1Secret(requestParameters: V1alpha1SecretApiCreatev1alpha1SecretRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createv1alpha1Secret(requestParameters.secret, options).then((request) => request(axios, basePath)); + }, + /** + * Delete v1alpha1/Secret + * @param {V1alpha1SecretApiDeletev1alpha1SecretRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletev1alpha1Secret(requestParameters: V1alpha1SecretApiDeletev1alpha1SecretRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletev1alpha1Secret(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get v1alpha1/Secret + * @param {V1alpha1SecretApiGetv1alpha1SecretRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getv1alpha1Secret(requestParameters: V1alpha1SecretApiGetv1alpha1SecretRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getv1alpha1Secret(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List v1alpha1/Secret + * @param {V1alpha1SecretApiListv1alpha1SecretRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listv1alpha1Secret(requestParameters: V1alpha1SecretApiListv1alpha1SecretRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listv1alpha1Secret(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update v1alpha1/Secret + * @param {V1alpha1SecretApiUpdatev1alpha1SecretRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatev1alpha1Secret(requestParameters: V1alpha1SecretApiUpdatev1alpha1SecretRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatev1alpha1Secret(requestParameters.name, requestParameters.secret, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -589,12 +400,12 @@ export const V1alpha1SecretApiFactory = function ( * @interface V1alpha1SecretApiCreatev1alpha1SecretRequest */ export interface V1alpha1SecretApiCreatev1alpha1SecretRequest { - /** - * Fresh secret - * @type {Secret} - * @memberof V1alpha1SecretApiCreatev1alpha1Secret - */ - readonly secret?: Secret; + /** + * Fresh secret + * @type {Secret} + * @memberof V1alpha1SecretApiCreatev1alpha1Secret + */ + readonly secret?: Secret } /** @@ -603,12 +414,12 @@ export interface V1alpha1SecretApiCreatev1alpha1SecretRequest { * @interface V1alpha1SecretApiDeletev1alpha1SecretRequest */ export interface V1alpha1SecretApiDeletev1alpha1SecretRequest { - /** - * Name of secret - * @type {string} - * @memberof V1alpha1SecretApiDeletev1alpha1Secret - */ - readonly name: string; + /** + * Name of secret + * @type {string} + * @memberof V1alpha1SecretApiDeletev1alpha1Secret + */ + readonly name: string } /** @@ -617,12 +428,12 @@ export interface V1alpha1SecretApiDeletev1alpha1SecretRequest { * @interface V1alpha1SecretApiGetv1alpha1SecretRequest */ export interface V1alpha1SecretApiGetv1alpha1SecretRequest { - /** - * Name of secret - * @type {string} - * @memberof V1alpha1SecretApiGetv1alpha1Secret - */ - readonly name: string; + /** + * Name of secret + * @type {string} + * @memberof V1alpha1SecretApiGetv1alpha1Secret + */ + readonly name: string } /** @@ -631,40 +442,40 @@ export interface V1alpha1SecretApiGetv1alpha1SecretRequest { * @interface V1alpha1SecretApiListv1alpha1SecretRequest */ export interface V1alpha1SecretApiListv1alpha1SecretRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof V1alpha1SecretApiListv1alpha1Secret - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof V1alpha1SecretApiListv1alpha1Secret + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof V1alpha1SecretApiListv1alpha1Secret - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof V1alpha1SecretApiListv1alpha1Secret + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof V1alpha1SecretApiListv1alpha1Secret - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof V1alpha1SecretApiListv1alpha1Secret + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof V1alpha1SecretApiListv1alpha1Secret - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof V1alpha1SecretApiListv1alpha1Secret + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof V1alpha1SecretApiListv1alpha1Secret - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof V1alpha1SecretApiListv1alpha1Secret + */ + readonly sort?: Array } /** @@ -673,19 +484,19 @@ export interface V1alpha1SecretApiListv1alpha1SecretRequest { * @interface V1alpha1SecretApiUpdatev1alpha1SecretRequest */ export interface V1alpha1SecretApiUpdatev1alpha1SecretRequest { - /** - * Name of secret - * @type {string} - * @memberof V1alpha1SecretApiUpdatev1alpha1Secret - */ - readonly name: string; + /** + * Name of secret + * @type {string} + * @memberof V1alpha1SecretApiUpdatev1alpha1Secret + */ + readonly name: string - /** - * Updated secret - * @type {Secret} - * @memberof V1alpha1SecretApiUpdatev1alpha1Secret - */ - readonly secret?: Secret; + /** + * Updated secret + * @type {Secret} + * @memberof V1alpha1SecretApiUpdatev1alpha1Secret + */ + readonly secret?: Secret } /** @@ -695,94 +506,59 @@ export interface V1alpha1SecretApiUpdatev1alpha1SecretRequest { * @extends {BaseAPI} */ export class V1alpha1SecretApi extends BaseAPI { - /** - * Create v1alpha1/Secret - * @param {V1alpha1SecretApiCreatev1alpha1SecretRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1SecretApi - */ - public createv1alpha1Secret( - requestParameters: V1alpha1SecretApiCreatev1alpha1SecretRequest = {}, - options?: AxiosRequestConfig - ) { - return V1alpha1SecretApiFp(this.configuration) - .createv1alpha1Secret(requestParameters.secret, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create v1alpha1/Secret + * @param {V1alpha1SecretApiCreatev1alpha1SecretRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1SecretApi + */ + public createv1alpha1Secret(requestParameters: V1alpha1SecretApiCreatev1alpha1SecretRequest = {}, options?: RawAxiosRequestConfig) { + return V1alpha1SecretApiFp(this.configuration).createv1alpha1Secret(requestParameters.secret, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete v1alpha1/Secret - * @param {V1alpha1SecretApiDeletev1alpha1SecretRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1SecretApi - */ - public deletev1alpha1Secret( - requestParameters: V1alpha1SecretApiDeletev1alpha1SecretRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1SecretApiFp(this.configuration) - .deletev1alpha1Secret(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete v1alpha1/Secret + * @param {V1alpha1SecretApiDeletev1alpha1SecretRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1SecretApi + */ + public deletev1alpha1Secret(requestParameters: V1alpha1SecretApiDeletev1alpha1SecretRequest, options?: RawAxiosRequestConfig) { + return V1alpha1SecretApiFp(this.configuration).deletev1alpha1Secret(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get v1alpha1/Secret - * @param {V1alpha1SecretApiGetv1alpha1SecretRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1SecretApi - */ - public getv1alpha1Secret( - requestParameters: V1alpha1SecretApiGetv1alpha1SecretRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1SecretApiFp(this.configuration) - .getv1alpha1Secret(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get v1alpha1/Secret + * @param {V1alpha1SecretApiGetv1alpha1SecretRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1SecretApi + */ + public getv1alpha1Secret(requestParameters: V1alpha1SecretApiGetv1alpha1SecretRequest, options?: RawAxiosRequestConfig) { + return V1alpha1SecretApiFp(this.configuration).getv1alpha1Secret(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List v1alpha1/Secret - * @param {V1alpha1SecretApiListv1alpha1SecretRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1SecretApi - */ - public listv1alpha1Secret( - requestParameters: V1alpha1SecretApiListv1alpha1SecretRequest = {}, - options?: AxiosRequestConfig - ) { - return V1alpha1SecretApiFp(this.configuration) - .listv1alpha1Secret( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List v1alpha1/Secret + * @param {V1alpha1SecretApiListv1alpha1SecretRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1SecretApi + */ + public listv1alpha1Secret(requestParameters: V1alpha1SecretApiListv1alpha1SecretRequest = {}, options?: RawAxiosRequestConfig) { + return V1alpha1SecretApiFp(this.configuration).listv1alpha1Secret(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update v1alpha1/Secret - * @param {V1alpha1SecretApiUpdatev1alpha1SecretRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1SecretApi - */ - public updatev1alpha1Secret( - requestParameters: V1alpha1SecretApiUpdatev1alpha1SecretRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1SecretApiFp(this.configuration) - .updatev1alpha1Secret( - requestParameters.name, - requestParameters.secret, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update v1alpha1/Secret + * @param {V1alpha1SecretApiUpdatev1alpha1SecretRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1SecretApi + */ + public updatev1alpha1Secret(requestParameters: V1alpha1SecretApiUpdatev1alpha1SecretRequest, options?: RawAxiosRequestConfig) { + return V1alpha1SecretApiFp(this.configuration).updatev1alpha1Secret(requestParameters.name, requestParameters.secret, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/v1alpha1-setting-api.ts b/ui/packages/api-client/src/api/v1alpha1-setting-api.ts index ee7dd9313..a21278f47 100644 --- a/ui/packages/api-client/src/api/v1alpha1-setting-api.ts +++ b/ui/packages/api-client/src/api/v1alpha1-setting-api.ts @@ -5,582 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { Setting } from "../models"; +import { Setting } from '../models'; // @ts-ignore -import { SettingList } from "../models"; +import { SettingList } from '../models'; /** * V1alpha1SettingApi - axios parameter creator * @export */ -export const V1alpha1SettingApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create v1alpha1/Setting - * @param {Setting} [setting] Fresh setting - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createv1alpha1Setting: async ( - setting?: Setting, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/api/v1alpha1/settings`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const V1alpha1SettingApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create v1alpha1/Setting + * @param {Setting} [setting] Fresh setting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createv1alpha1Setting: async (setting?: Setting, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1alpha1/settings`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - setting, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete v1alpha1/Setting - * @param {string} name Name of setting - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletev1alpha1Setting: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletev1alpha1Setting", "name", name); - const localVarPath = `/api/v1alpha1/settings/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(setting, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete v1alpha1/Setting + * @param {string} name Name of setting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletev1alpha1Setting: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletev1alpha1Setting', 'name', name) + const localVarPath = `/api/v1alpha1/settings/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get v1alpha1/Setting - * @param {string} name Name of setting - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getv1alpha1Setting: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getv1alpha1Setting", "name", name); - const localVarPath = `/api/v1alpha1/settings/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get v1alpha1/Setting + * @param {string} name Name of setting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getv1alpha1Setting: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getv1alpha1Setting', 'name', name) + const localVarPath = `/api/v1alpha1/settings/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List v1alpha1/Setting - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listv1alpha1Setting: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/api/v1alpha1/settings`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List v1alpha1/Setting + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listv1alpha1Setting: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1alpha1/settings`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update v1alpha1/Setting - * @param {string} name Name of setting - * @param {Setting} [setting] Updated setting - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatev1alpha1Setting: async ( - name: string, - setting?: Setting, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatev1alpha1Setting", "name", name); - const localVarPath = `/api/v1alpha1/settings/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update v1alpha1/Setting + * @param {string} name Name of setting + * @param {Setting} [setting] Updated setting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatev1alpha1Setting: async (name: string, setting?: Setting, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatev1alpha1Setting', 'name', name) + const localVarPath = `/api/v1alpha1/settings/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - setting, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(setting, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * V1alpha1SettingApi - functional programming interface * @export */ -export const V1alpha1SettingApiFp = function (configuration?: Configuration) { - const localVarAxiosParamCreator = - V1alpha1SettingApiAxiosParamCreator(configuration); - return { - /** - * Create v1alpha1/Setting - * @param {Setting} [setting] Fresh setting - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createv1alpha1Setting( - setting?: Setting, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createv1alpha1Setting(setting, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete v1alpha1/Setting - * @param {string} name Name of setting - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletev1alpha1Setting( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletev1alpha1Setting(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get v1alpha1/Setting - * @param {string} name Name of setting - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getv1alpha1Setting( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.getv1alpha1Setting(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List v1alpha1/Setting - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listv1alpha1Setting( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listv1alpha1Setting( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update v1alpha1/Setting - * @param {string} name Name of setting - * @param {Setting} [setting] Updated setting - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatev1alpha1Setting( - name: string, - setting?: Setting, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatev1alpha1Setting( - name, - setting, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const V1alpha1SettingApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = V1alpha1SettingApiAxiosParamCreator(configuration) + return { + /** + * Create v1alpha1/Setting + * @param {Setting} [setting] Fresh setting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createv1alpha1Setting(setting?: Setting, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1Setting(setting, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1SettingApi.createv1alpha1Setting']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete v1alpha1/Setting + * @param {string} name Name of setting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletev1alpha1Setting(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1Setting(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1SettingApi.deletev1alpha1Setting']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get v1alpha1/Setting + * @param {string} name Name of setting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getv1alpha1Setting(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1Setting(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1SettingApi.getv1alpha1Setting']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List v1alpha1/Setting + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listv1alpha1Setting(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1Setting(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1SettingApi.listv1alpha1Setting']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update v1alpha1/Setting + * @param {string} name Name of setting + * @param {Setting} [setting] Updated setting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatev1alpha1Setting(name: string, setting?: Setting, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1Setting(name, setting, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1SettingApi.updatev1alpha1Setting']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * V1alpha1SettingApi - factory interface * @export */ -export const V1alpha1SettingApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = V1alpha1SettingApiFp(configuration); - return { - /** - * Create v1alpha1/Setting - * @param {V1alpha1SettingApiCreatev1alpha1SettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createv1alpha1Setting( - requestParameters: V1alpha1SettingApiCreatev1alpha1SettingRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createv1alpha1Setting(requestParameters.setting, options) - .then((request) => request(axios, basePath)); - }, - /** - * Delete v1alpha1/Setting - * @param {V1alpha1SettingApiDeletev1alpha1SettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletev1alpha1Setting( - requestParameters: V1alpha1SettingApiDeletev1alpha1SettingRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletev1alpha1Setting(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get v1alpha1/Setting - * @param {V1alpha1SettingApiGetv1alpha1SettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getv1alpha1Setting( - requestParameters: V1alpha1SettingApiGetv1alpha1SettingRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getv1alpha1Setting(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List v1alpha1/Setting - * @param {V1alpha1SettingApiListv1alpha1SettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listv1alpha1Setting( - requestParameters: V1alpha1SettingApiListv1alpha1SettingRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listv1alpha1Setting( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update v1alpha1/Setting - * @param {V1alpha1SettingApiUpdatev1alpha1SettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatev1alpha1Setting( - requestParameters: V1alpha1SettingApiUpdatev1alpha1SettingRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatev1alpha1Setting( - requestParameters.name, - requestParameters.setting, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const V1alpha1SettingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = V1alpha1SettingApiFp(configuration) + return { + /** + * Create v1alpha1/Setting + * @param {V1alpha1SettingApiCreatev1alpha1SettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createv1alpha1Setting(requestParameters: V1alpha1SettingApiCreatev1alpha1SettingRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createv1alpha1Setting(requestParameters.setting, options).then((request) => request(axios, basePath)); + }, + /** + * Delete v1alpha1/Setting + * @param {V1alpha1SettingApiDeletev1alpha1SettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletev1alpha1Setting(requestParameters: V1alpha1SettingApiDeletev1alpha1SettingRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletev1alpha1Setting(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get v1alpha1/Setting + * @param {V1alpha1SettingApiGetv1alpha1SettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getv1alpha1Setting(requestParameters: V1alpha1SettingApiGetv1alpha1SettingRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getv1alpha1Setting(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List v1alpha1/Setting + * @param {V1alpha1SettingApiListv1alpha1SettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listv1alpha1Setting(requestParameters: V1alpha1SettingApiListv1alpha1SettingRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listv1alpha1Setting(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update v1alpha1/Setting + * @param {V1alpha1SettingApiUpdatev1alpha1SettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatev1alpha1Setting(requestParameters: V1alpha1SettingApiUpdatev1alpha1SettingRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatev1alpha1Setting(requestParameters.name, requestParameters.setting, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -589,12 +400,12 @@ export const V1alpha1SettingApiFactory = function ( * @interface V1alpha1SettingApiCreatev1alpha1SettingRequest */ export interface V1alpha1SettingApiCreatev1alpha1SettingRequest { - /** - * Fresh setting - * @type {Setting} - * @memberof V1alpha1SettingApiCreatev1alpha1Setting - */ - readonly setting?: Setting; + /** + * Fresh setting + * @type {Setting} + * @memberof V1alpha1SettingApiCreatev1alpha1Setting + */ + readonly setting?: Setting } /** @@ -603,12 +414,12 @@ export interface V1alpha1SettingApiCreatev1alpha1SettingRequest { * @interface V1alpha1SettingApiDeletev1alpha1SettingRequest */ export interface V1alpha1SettingApiDeletev1alpha1SettingRequest { - /** - * Name of setting - * @type {string} - * @memberof V1alpha1SettingApiDeletev1alpha1Setting - */ - readonly name: string; + /** + * Name of setting + * @type {string} + * @memberof V1alpha1SettingApiDeletev1alpha1Setting + */ + readonly name: string } /** @@ -617,12 +428,12 @@ export interface V1alpha1SettingApiDeletev1alpha1SettingRequest { * @interface V1alpha1SettingApiGetv1alpha1SettingRequest */ export interface V1alpha1SettingApiGetv1alpha1SettingRequest { - /** - * Name of setting - * @type {string} - * @memberof V1alpha1SettingApiGetv1alpha1Setting - */ - readonly name: string; + /** + * Name of setting + * @type {string} + * @memberof V1alpha1SettingApiGetv1alpha1Setting + */ + readonly name: string } /** @@ -631,40 +442,40 @@ export interface V1alpha1SettingApiGetv1alpha1SettingRequest { * @interface V1alpha1SettingApiListv1alpha1SettingRequest */ export interface V1alpha1SettingApiListv1alpha1SettingRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof V1alpha1SettingApiListv1alpha1Setting - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof V1alpha1SettingApiListv1alpha1Setting + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof V1alpha1SettingApiListv1alpha1Setting - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof V1alpha1SettingApiListv1alpha1Setting + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof V1alpha1SettingApiListv1alpha1Setting - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof V1alpha1SettingApiListv1alpha1Setting + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof V1alpha1SettingApiListv1alpha1Setting - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof V1alpha1SettingApiListv1alpha1Setting + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof V1alpha1SettingApiListv1alpha1Setting - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof V1alpha1SettingApiListv1alpha1Setting + */ + readonly sort?: Array } /** @@ -673,19 +484,19 @@ export interface V1alpha1SettingApiListv1alpha1SettingRequest { * @interface V1alpha1SettingApiUpdatev1alpha1SettingRequest */ export interface V1alpha1SettingApiUpdatev1alpha1SettingRequest { - /** - * Name of setting - * @type {string} - * @memberof V1alpha1SettingApiUpdatev1alpha1Setting - */ - readonly name: string; + /** + * Name of setting + * @type {string} + * @memberof V1alpha1SettingApiUpdatev1alpha1Setting + */ + readonly name: string - /** - * Updated setting - * @type {Setting} - * @memberof V1alpha1SettingApiUpdatev1alpha1Setting - */ - readonly setting?: Setting; + /** + * Updated setting + * @type {Setting} + * @memberof V1alpha1SettingApiUpdatev1alpha1Setting + */ + readonly setting?: Setting } /** @@ -695,94 +506,59 @@ export interface V1alpha1SettingApiUpdatev1alpha1SettingRequest { * @extends {BaseAPI} */ export class V1alpha1SettingApi extends BaseAPI { - /** - * Create v1alpha1/Setting - * @param {V1alpha1SettingApiCreatev1alpha1SettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1SettingApi - */ - public createv1alpha1Setting( - requestParameters: V1alpha1SettingApiCreatev1alpha1SettingRequest = {}, - options?: AxiosRequestConfig - ) { - return V1alpha1SettingApiFp(this.configuration) - .createv1alpha1Setting(requestParameters.setting, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create v1alpha1/Setting + * @param {V1alpha1SettingApiCreatev1alpha1SettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1SettingApi + */ + public createv1alpha1Setting(requestParameters: V1alpha1SettingApiCreatev1alpha1SettingRequest = {}, options?: RawAxiosRequestConfig) { + return V1alpha1SettingApiFp(this.configuration).createv1alpha1Setting(requestParameters.setting, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete v1alpha1/Setting - * @param {V1alpha1SettingApiDeletev1alpha1SettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1SettingApi - */ - public deletev1alpha1Setting( - requestParameters: V1alpha1SettingApiDeletev1alpha1SettingRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1SettingApiFp(this.configuration) - .deletev1alpha1Setting(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete v1alpha1/Setting + * @param {V1alpha1SettingApiDeletev1alpha1SettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1SettingApi + */ + public deletev1alpha1Setting(requestParameters: V1alpha1SettingApiDeletev1alpha1SettingRequest, options?: RawAxiosRequestConfig) { + return V1alpha1SettingApiFp(this.configuration).deletev1alpha1Setting(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get v1alpha1/Setting - * @param {V1alpha1SettingApiGetv1alpha1SettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1SettingApi - */ - public getv1alpha1Setting( - requestParameters: V1alpha1SettingApiGetv1alpha1SettingRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1SettingApiFp(this.configuration) - .getv1alpha1Setting(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get v1alpha1/Setting + * @param {V1alpha1SettingApiGetv1alpha1SettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1SettingApi + */ + public getv1alpha1Setting(requestParameters: V1alpha1SettingApiGetv1alpha1SettingRequest, options?: RawAxiosRequestConfig) { + return V1alpha1SettingApiFp(this.configuration).getv1alpha1Setting(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List v1alpha1/Setting - * @param {V1alpha1SettingApiListv1alpha1SettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1SettingApi - */ - public listv1alpha1Setting( - requestParameters: V1alpha1SettingApiListv1alpha1SettingRequest = {}, - options?: AxiosRequestConfig - ) { - return V1alpha1SettingApiFp(this.configuration) - .listv1alpha1Setting( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List v1alpha1/Setting + * @param {V1alpha1SettingApiListv1alpha1SettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1SettingApi + */ + public listv1alpha1Setting(requestParameters: V1alpha1SettingApiListv1alpha1SettingRequest = {}, options?: RawAxiosRequestConfig) { + return V1alpha1SettingApiFp(this.configuration).listv1alpha1Setting(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update v1alpha1/Setting - * @param {V1alpha1SettingApiUpdatev1alpha1SettingRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1SettingApi - */ - public updatev1alpha1Setting( - requestParameters: V1alpha1SettingApiUpdatev1alpha1SettingRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1SettingApiFp(this.configuration) - .updatev1alpha1Setting( - requestParameters.name, - requestParameters.setting, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update v1alpha1/Setting + * @param {V1alpha1SettingApiUpdatev1alpha1SettingRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1SettingApi + */ + public updatev1alpha1Setting(requestParameters: V1alpha1SettingApiUpdatev1alpha1SettingRequest, options?: RawAxiosRequestConfig) { + return V1alpha1SettingApiFp(this.configuration).updatev1alpha1Setting(requestParameters.name, requestParameters.setting, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/api/v1alpha1-user-api.ts b/ui/packages/api-client/src/api/v1alpha1-user-api.ts index 6ca28a1e2..e2f6f03e3 100644 --- a/ui/packages/api-client/src/api/v1alpha1-user-api.ts +++ b/ui/packages/api-client/src/api/v1alpha1-user-api.ts @@ -5,580 +5,393 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "../configuration"; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { - DUMMY_BASE_URL, - assertParamExists, - setApiKeyToObject, - setBasicAuthToObject, - setBearerAuthToObject, - setOAuthToObject, - setSearchParams, - serializeDataIfNeeded, - toPathString, - createRequestFunction, -} from "../common"; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore -import { - BASE_PATH, - COLLECTION_FORMATS, - RequestArgs, - BaseAPI, - RequiredError, -} from "../base"; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { User } from "../models"; +import { User } from '../models'; // @ts-ignore -import { UserList } from "../models"; +import { UserList } from '../models'; /** * V1alpha1UserApi - axios parameter creator * @export */ -export const V1alpha1UserApiAxiosParamCreator = function ( - configuration?: Configuration -) { - return { - /** - * Create v1alpha1/User - * @param {User} [user] Fresh user - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createv1alpha1User: async ( - user?: User, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/api/v1alpha1/users`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } +export const V1alpha1UserApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create v1alpha1/User + * @param {User} [user] Fresh user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createv1alpha1User: async (user?: User, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1alpha1/users`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - const localVarRequestOptions = { - method: "POST", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - localVarHeaderParameter["Content-Type"] = "application/json"; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - user, - localVarRequestOptions, - configuration - ); + + localVarHeaderParameter['Content-Type'] = 'application/json'; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete v1alpha1/User - * @param {string} name Name of user - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletev1alpha1User: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("deletev1alpha1User", "name", name); - const localVarPath = `/api/v1alpha1/users/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(user, localVarRequestOptions, configuration) - const localVarRequestOptions = { - method: "DELETE", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete v1alpha1/User + * @param {string} name Name of user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletev1alpha1User: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('deletev1alpha1User', 'name', name) + const localVarPath = `/api/v1alpha1/users/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get v1alpha1/User - * @param {string} name Name of user - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getv1alpha1User: async ( - name: string, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("getv1alpha1User", "name", name); - const localVarPath = `/api/v1alpha1/users/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get v1alpha1/User + * @param {string} name Name of user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getv1alpha1User: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getv1alpha1User', 'name', name) + const localVarPath = `/api/v1alpha1/users/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List v1alpha1/User - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listv1alpha1User: async ( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options: AxiosRequestConfig = {} - ): Promise => { - const localVarPath = `/api/v1alpha1/users`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - const localVarRequestOptions = { - method: "GET", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List v1alpha1/User + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listv1alpha1User: async (page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/v1alpha1/users`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - if (fieldSelector) { - localVarQueryParameter["fieldSelector"] = fieldSelector; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - if (labelSelector) { - localVarQueryParameter["labelSelector"] = labelSelector; - } + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) - if (page !== undefined) { - localVarQueryParameter["page"] = page; - } + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) - if (size !== undefined) { - localVarQueryParameter["size"] = size; - } + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } - if (sort) { - localVarQueryParameter["sort"] = Array.from(sort); - } + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; + if (labelSelector) { + localVarQueryParameter['labelSelector'] = labelSelector; + } - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update v1alpha1/User - * @param {string} name Name of user - * @param {User} [user] Updated user - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatev1alpha1User: async ( - name: string, - user?: User, - options: AxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists("updatev1alpha1User", "name", name); - const localVarPath = `/api/v1alpha1/users/{name}`.replace( - `{${"name"}}`, - encodeURIComponent(String(name)) - ); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } + if (fieldSelector) { + localVarQueryParameter['fieldSelector'] = fieldSelector; + } - const localVarRequestOptions = { - method: "PUT", - ...baseOptions, - ...options, - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (sort) { + localVarQueryParameter['sort'] = sort; + } - // authentication BasicAuth required - // http basic authentication required - setBasicAuthToObject(localVarRequestOptions, configuration); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarHeaderParameter["Content-Type"] = "application/json"; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update v1alpha1/User + * @param {string} name Name of user + * @param {User} [user] Updated user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatev1alpha1User: async (name: string, user?: User, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('updatev1alpha1User', 'name', name) + const localVarPath = `/api/v1alpha1/users/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = - baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { - ...localVarHeaderParameter, - ...headersFromBaseOptions, - ...options.headers, - }; - localVarRequestOptions.data = serializeDataIfNeeded( - user, - localVarRequestOptions, - configuration - ); + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - }; + // authentication BasicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(user, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } }; /** * V1alpha1UserApi - functional programming interface * @export */ -export const V1alpha1UserApiFp = function (configuration?: Configuration) { - const localVarAxiosParamCreator = - V1alpha1UserApiAxiosParamCreator(configuration); - return { - /** - * Create v1alpha1/User - * @param {User} [user] Fresh user - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createv1alpha1User( - user?: User, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.createv1alpha1User(user, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Delete v1alpha1/User - * @param {string} name Name of user - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletev1alpha1User( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.deletev1alpha1User(name, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Get v1alpha1/User - * @param {string} name Name of user - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getv1alpha1User( - name: string, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1User( - name, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * List v1alpha1/User - * @param {Array} [fieldSelector] Field selector for filtering. - * @param {Array} [labelSelector] Label selector for filtering. - * @param {number} [page] The page number. Zero indicates no page. - * @param {number} [size] Size of one page. Zero indicates no limit. - * @param {Array} [sort] Sort property and direction of the list result. Support sorting based on attribute name path. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listv1alpha1User( - fieldSelector?: Array, - labelSelector?: Array, - page?: number, - size?: number, - sort?: Array, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.listv1alpha1User( - fieldSelector, - labelSelector, - page, - size, - sort, - options - ); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - /** - * Update v1alpha1/User - * @param {string} name Name of user - * @param {User} [user] Updated user - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatev1alpha1User( - name: string, - user?: User, - options?: AxiosRequestConfig - ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise - > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.updatev1alpha1User(name, user, options); - return createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - ); - }, - }; +export const V1alpha1UserApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = V1alpha1UserApiAxiosParamCreator(configuration) + return { + /** + * Create v1alpha1/User + * @param {User} [user] Fresh user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createv1alpha1User(user?: User, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1User(user, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1UserApi.createv1alpha1User']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Delete v1alpha1/User + * @param {string} name Name of user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletev1alpha1User(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1User(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1UserApi.deletev1alpha1User']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get v1alpha1/User + * @param {string} name Name of user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getv1alpha1User(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1User(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1UserApi.getv1alpha1User']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * List v1alpha1/User + * @param {number} [page] Page number. Default is 0. + * @param {number} [size] Size number. Default is 0. + * @param {Array} [labelSelector] Label selector. e.g.: hidden!=true + * @param {Array} [fieldSelector] Field selector. e.g.: metadata.name==halo + * @param {Array} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listv1alpha1User(page?: number, size?: number, labelSelector?: Array, fieldSelector?: Array, sort?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1User(page, size, labelSelector, fieldSelector, sort, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1UserApi.listv1alpha1User']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update v1alpha1/User + * @param {string} name Name of user + * @param {User} [user] Updated user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatev1alpha1User(name: string, user?: User, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1User(name, user, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['V1alpha1UserApi.updatev1alpha1User']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } }; /** * V1alpha1UserApi - factory interface * @export */ -export const V1alpha1UserApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = V1alpha1UserApiFp(configuration); - return { - /** - * Create v1alpha1/User - * @param {V1alpha1UserApiCreatev1alpha1UserRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createv1alpha1User( - requestParameters: V1alpha1UserApiCreatev1alpha1UserRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .createv1alpha1User(requestParameters.user, options) - .then((request) => request(axios, basePath)); - }, - /** - * Delete v1alpha1/User - * @param {V1alpha1UserApiDeletev1alpha1UserRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletev1alpha1User( - requestParameters: V1alpha1UserApiDeletev1alpha1UserRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .deletev1alpha1User(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * Get v1alpha1/User - * @param {V1alpha1UserApiGetv1alpha1UserRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getv1alpha1User( - requestParameters: V1alpha1UserApiGetv1alpha1UserRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .getv1alpha1User(requestParameters.name, options) - .then((request) => request(axios, basePath)); - }, - /** - * List v1alpha1/User - * @param {V1alpha1UserApiListv1alpha1UserRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listv1alpha1User( - requestParameters: V1alpha1UserApiListv1alpha1UserRequest = {}, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .listv1alpha1User( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(axios, basePath)); - }, - /** - * Update v1alpha1/User - * @param {V1alpha1UserApiUpdatev1alpha1UserRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatev1alpha1User( - requestParameters: V1alpha1UserApiUpdatev1alpha1UserRequest, - options?: AxiosRequestConfig - ): AxiosPromise { - return localVarFp - .updatev1alpha1User( - requestParameters.name, - requestParameters.user, - options - ) - .then((request) => request(axios, basePath)); - }, - }; +export const V1alpha1UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = V1alpha1UserApiFp(configuration) + return { + /** + * Create v1alpha1/User + * @param {V1alpha1UserApiCreatev1alpha1UserRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createv1alpha1User(requestParameters: V1alpha1UserApiCreatev1alpha1UserRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createv1alpha1User(requestParameters.user, options).then((request) => request(axios, basePath)); + }, + /** + * Delete v1alpha1/User + * @param {V1alpha1UserApiDeletev1alpha1UserRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletev1alpha1User(requestParameters: V1alpha1UserApiDeletev1alpha1UserRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deletev1alpha1User(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * Get v1alpha1/User + * @param {V1alpha1UserApiGetv1alpha1UserRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getv1alpha1User(requestParameters: V1alpha1UserApiGetv1alpha1UserRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getv1alpha1User(requestParameters.name, options).then((request) => request(axios, basePath)); + }, + /** + * List v1alpha1/User + * @param {V1alpha1UserApiListv1alpha1UserRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listv1alpha1User(requestParameters: V1alpha1UserApiListv1alpha1UserRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listv1alpha1User(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath)); + }, + /** + * Update v1alpha1/User + * @param {V1alpha1UserApiUpdatev1alpha1UserRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatev1alpha1User(requestParameters: V1alpha1UserApiUpdatev1alpha1UserRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updatev1alpha1User(requestParameters.name, requestParameters.user, options).then((request) => request(axios, basePath)); + }, + }; }; /** @@ -587,12 +400,12 @@ export const V1alpha1UserApiFactory = function ( * @interface V1alpha1UserApiCreatev1alpha1UserRequest */ export interface V1alpha1UserApiCreatev1alpha1UserRequest { - /** - * Fresh user - * @type {User} - * @memberof V1alpha1UserApiCreatev1alpha1User - */ - readonly user?: User; + /** + * Fresh user + * @type {User} + * @memberof V1alpha1UserApiCreatev1alpha1User + */ + readonly user?: User } /** @@ -601,12 +414,12 @@ export interface V1alpha1UserApiCreatev1alpha1UserRequest { * @interface V1alpha1UserApiDeletev1alpha1UserRequest */ export interface V1alpha1UserApiDeletev1alpha1UserRequest { - /** - * Name of user - * @type {string} - * @memberof V1alpha1UserApiDeletev1alpha1User - */ - readonly name: string; + /** + * Name of user + * @type {string} + * @memberof V1alpha1UserApiDeletev1alpha1User + */ + readonly name: string } /** @@ -615,12 +428,12 @@ export interface V1alpha1UserApiDeletev1alpha1UserRequest { * @interface V1alpha1UserApiGetv1alpha1UserRequest */ export interface V1alpha1UserApiGetv1alpha1UserRequest { - /** - * Name of user - * @type {string} - * @memberof V1alpha1UserApiGetv1alpha1User - */ - readonly name: string; + /** + * Name of user + * @type {string} + * @memberof V1alpha1UserApiGetv1alpha1User + */ + readonly name: string } /** @@ -629,40 +442,40 @@ export interface V1alpha1UserApiGetv1alpha1UserRequest { * @interface V1alpha1UserApiListv1alpha1UserRequest */ export interface V1alpha1UserApiListv1alpha1UserRequest { - /** - * Field selector for filtering. - * @type {Array} - * @memberof V1alpha1UserApiListv1alpha1User - */ - readonly fieldSelector?: Array; + /** + * Page number. Default is 0. + * @type {number} + * @memberof V1alpha1UserApiListv1alpha1User + */ + readonly page?: number - /** - * Label selector for filtering. - * @type {Array} - * @memberof V1alpha1UserApiListv1alpha1User - */ - readonly labelSelector?: Array; + /** + * Size number. Default is 0. + * @type {number} + * @memberof V1alpha1UserApiListv1alpha1User + */ + readonly size?: number - /** - * The page number. Zero indicates no page. - * @type {number} - * @memberof V1alpha1UserApiListv1alpha1User - */ - readonly page?: number; + /** + * Label selector. e.g.: hidden!=true + * @type {Array} + * @memberof V1alpha1UserApiListv1alpha1User + */ + readonly labelSelector?: Array - /** - * Size of one page. Zero indicates no limit. - * @type {number} - * @memberof V1alpha1UserApiListv1alpha1User - */ - readonly size?: number; + /** + * Field selector. e.g.: metadata.name==halo + * @type {Array} + * @memberof V1alpha1UserApiListv1alpha1User + */ + readonly fieldSelector?: Array - /** - * Sort property and direction of the list result. Support sorting based on attribute name path. - * @type {Array} - * @memberof V1alpha1UserApiListv1alpha1User - */ - readonly sort?: Array; + /** + * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. + * @type {Array} + * @memberof V1alpha1UserApiListv1alpha1User + */ + readonly sort?: Array } /** @@ -671,19 +484,19 @@ export interface V1alpha1UserApiListv1alpha1UserRequest { * @interface V1alpha1UserApiUpdatev1alpha1UserRequest */ export interface V1alpha1UserApiUpdatev1alpha1UserRequest { - /** - * Name of user - * @type {string} - * @memberof V1alpha1UserApiUpdatev1alpha1User - */ - readonly name: string; + /** + * Name of user + * @type {string} + * @memberof V1alpha1UserApiUpdatev1alpha1User + */ + readonly name: string - /** - * Updated user - * @type {User} - * @memberof V1alpha1UserApiUpdatev1alpha1User - */ - readonly user?: User; + /** + * Updated user + * @type {User} + * @memberof V1alpha1UserApiUpdatev1alpha1User + */ + readonly user?: User } /** @@ -693,94 +506,59 @@ export interface V1alpha1UserApiUpdatev1alpha1UserRequest { * @extends {BaseAPI} */ export class V1alpha1UserApi extends BaseAPI { - /** - * Create v1alpha1/User - * @param {V1alpha1UserApiCreatev1alpha1UserRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1UserApi - */ - public createv1alpha1User( - requestParameters: V1alpha1UserApiCreatev1alpha1UserRequest = {}, - options?: AxiosRequestConfig - ) { - return V1alpha1UserApiFp(this.configuration) - .createv1alpha1User(requestParameters.user, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Create v1alpha1/User + * @param {V1alpha1UserApiCreatev1alpha1UserRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1UserApi + */ + public createv1alpha1User(requestParameters: V1alpha1UserApiCreatev1alpha1UserRequest = {}, options?: RawAxiosRequestConfig) { + return V1alpha1UserApiFp(this.configuration).createv1alpha1User(requestParameters.user, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Delete v1alpha1/User - * @param {V1alpha1UserApiDeletev1alpha1UserRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1UserApi - */ - public deletev1alpha1User( - requestParameters: V1alpha1UserApiDeletev1alpha1UserRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1UserApiFp(this.configuration) - .deletev1alpha1User(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Delete v1alpha1/User + * @param {V1alpha1UserApiDeletev1alpha1UserRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1UserApi + */ + public deletev1alpha1User(requestParameters: V1alpha1UserApiDeletev1alpha1UserRequest, options?: RawAxiosRequestConfig) { + return V1alpha1UserApiFp(this.configuration).deletev1alpha1User(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Get v1alpha1/User - * @param {V1alpha1UserApiGetv1alpha1UserRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1UserApi - */ - public getv1alpha1User( - requestParameters: V1alpha1UserApiGetv1alpha1UserRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1UserApiFp(this.configuration) - .getv1alpha1User(requestParameters.name, options) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Get v1alpha1/User + * @param {V1alpha1UserApiGetv1alpha1UserRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1UserApi + */ + public getv1alpha1User(requestParameters: V1alpha1UserApiGetv1alpha1UserRequest, options?: RawAxiosRequestConfig) { + return V1alpha1UserApiFp(this.configuration).getv1alpha1User(requestParameters.name, options).then((request) => request(this.axios, this.basePath)); + } - /** - * List v1alpha1/User - * @param {V1alpha1UserApiListv1alpha1UserRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1UserApi - */ - public listv1alpha1User( - requestParameters: V1alpha1UserApiListv1alpha1UserRequest = {}, - options?: AxiosRequestConfig - ) { - return V1alpha1UserApiFp(this.configuration) - .listv1alpha1User( - requestParameters.fieldSelector, - requestParameters.labelSelector, - requestParameters.page, - requestParameters.size, - requestParameters.sort, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * List v1alpha1/User + * @param {V1alpha1UserApiListv1alpha1UserRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1UserApi + */ + public listv1alpha1User(requestParameters: V1alpha1UserApiListv1alpha1UserRequest = {}, options?: RawAxiosRequestConfig) { + return V1alpha1UserApiFp(this.configuration).listv1alpha1User(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath)); + } - /** - * Update v1alpha1/User - * @param {V1alpha1UserApiUpdatev1alpha1UserRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof V1alpha1UserApi - */ - public updatev1alpha1User( - requestParameters: V1alpha1UserApiUpdatev1alpha1UserRequest, - options?: AxiosRequestConfig - ) { - return V1alpha1UserApiFp(this.configuration) - .updatev1alpha1User( - requestParameters.name, - requestParameters.user, - options - ) - .then((request) => request(this.axios, this.basePath)); - } + /** + * Update v1alpha1/User + * @param {V1alpha1UserApiUpdatev1alpha1UserRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof V1alpha1UserApi + */ + public updatev1alpha1User(requestParameters: V1alpha1UserApiUpdatev1alpha1UserRequest, options?: RawAxiosRequestConfig) { + return V1alpha1UserApiFp(this.configuration).updatev1alpha1User(requestParameters.name, requestParameters.user, options).then((request) => request(this.axios, this.basePath)); + } } + diff --git a/ui/packages/api-client/src/base.ts b/ui/packages/api-client/src/base.ts index 1159a2889..2a558cea4 100644 --- a/ui/packages/api-client/src/base.ts +++ b/ui/packages/api-client/src/base.ts @@ -5,30 +5,31 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Configuration } from "./configuration"; + +import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios"; -import globalAxios from "axios"; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; -export const BASE_PATH = "http://localhost:8090".replace(/\/+$/, ""); +export const BASE_PATH = "http://localhost:8091".replace(/\/+$/, ""); /** * * @export */ export const COLLECTION_FORMATS = { - csv: ",", - ssv: " ", - tsv: "\t", - pipes: "|", + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", }; /** @@ -37,8 +38,8 @@ export const COLLECTION_FORMATS = { * @interface RequestArgs */ export interface RequestArgs { - url: string; - options: AxiosRequestConfig; + url: string; + options: RawAxiosRequestConfig; } /** @@ -47,19 +48,15 @@ export interface RequestArgs { * @class BaseAPI */ export class BaseAPI { - protected configuration: Configuration | undefined; + protected configuration: Configuration | undefined; - constructor( - configuration?: Configuration, - protected basePath: string = BASE_PATH, - protected axios: AxiosInstance = globalAxios - ) { - if (configuration) { - this.configuration = configuration; - this.basePath = configuration.basePath || this.basePath; + constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { + if (configuration) { + this.configuration = configuration; + this.basePath = configuration.basePath ?? basePath; + } } - } -} +}; /** * @@ -68,8 +65,22 @@ export class BaseAPI { * @extends {Error} */ export class RequiredError extends Error { - constructor(public field: string, msg?: string) { - super(msg); - this.name = "RequiredError"; - } + constructor(public field: string, msg?: string) { + super(msg); + this.name = "RequiredError" + } +} + +interface ServerMap { + [key: string]: { + url: string, + description: string, + }[]; +} + +/** + * + * @export + */ +export const operationServerMap: ServerMap = { } diff --git a/ui/packages/api-client/src/common.ts b/ui/packages/api-client/src/common.ts index 87a9920b8..ea67b2774 100644 --- a/ui/packages/api-client/src/common.ts +++ b/ui/packages/api-client/src/common.ts @@ -5,139 +5,105 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + import type { Configuration } from "./configuration"; import type { RequestArgs } from "./base"; -import type { AxiosInstance, AxiosResponse } from "axios"; +import type { AxiosInstance, AxiosResponse } from 'axios'; import { RequiredError } from "./base"; /** * * @export */ -export const DUMMY_BASE_URL = "https://example.com"; +export const DUMMY_BASE_URL = 'https://example.com' /** * * @throws {RequiredError} * @export */ -export const assertParamExists = function ( - functionName: string, - paramName: string, - paramValue: unknown -) { - if (paramValue === null || paramValue === undefined) { - throw new RequiredError( - paramName, - `Required parameter ${paramName} was null or undefined when calling ${functionName}.` - ); - } -}; - -/** - * - * @export - */ -export const setApiKeyToObject = async function ( - object: any, - keyParamName: string, - configuration?: Configuration -) { - if (configuration && configuration.apiKey) { - const localVarApiKeyValue = - typeof configuration.apiKey === "function" - ? await configuration.apiKey(keyParamName) - : await configuration.apiKey; - object[keyParamName] = localVarApiKeyValue; - } -}; - -/** - * - * @export - */ -export const setBasicAuthToObject = function ( - object: any, - configuration?: Configuration -) { - if (configuration && (configuration.username || configuration.password)) { - object["auth"] = { - username: configuration.username, - password: configuration.password, - }; - } -}; - -/** - * - * @export - */ -export const setBearerAuthToObject = async function ( - object: any, - configuration?: Configuration -) { - if (configuration && configuration.accessToken) { - const accessToken = - typeof configuration.accessToken === "function" - ? await configuration.accessToken() - : await configuration.accessToken; - object["Authorization"] = "Bearer " + accessToken; - } -}; - -/** - * - * @export - */ -export const setOAuthToObject = async function ( - object: any, - name: string, - scopes: string[], - configuration?: Configuration -) { - if (configuration && configuration.accessToken) { - const localVarAccessTokenValue = - typeof configuration.accessToken === "function" - ? await configuration.accessToken(name, scopes) - : await configuration.accessToken; - object["Authorization"] = "Bearer " + localVarAccessTokenValue; - } -}; - -function setFlattenedQueryParams( - urlSearchParams: URLSearchParams, - parameter: any, - key: string = "" -): void { - if (parameter == null) return; - if (typeof parameter === "object") { - if (Array.isArray(parameter)) { - (parameter as any[]).forEach((item) => - setFlattenedQueryParams(urlSearchParams, item, key) - ); - } else { - Object.keys(parameter).forEach((currentKey) => - setFlattenedQueryParams( - urlSearchParams, - parameter[currentKey], - `${key}${key !== "" ? "." : ""}${currentKey}` - ) - ); +export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) { + if (paramValue === null || paramValue === undefined) { + throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); } - } else { - if (urlSearchParams.has(key)) { - urlSearchParams.append(key, parameter); - } else { - urlSearchParams.set(key, parameter); +} + +/** + * + * @export + */ +export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) { + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? await configuration.apiKey(keyParamName) + : await configuration.apiKey; + object[keyParamName] = localVarApiKeyValue; + } +} + +/** + * + * @export + */ +export const setBasicAuthToObject = function (object: any, configuration?: Configuration) { + if (configuration && (configuration.username || configuration.password)) { + object["auth"] = { username: configuration.username, password: configuration.password }; + } +} + +/** + * + * @export + */ +export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) { + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + object["Authorization"] = "Bearer " + accessToken; + } +} + +/** + * + * @export + */ +export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) { + if (configuration && configuration.accessToken) { + const localVarAccessTokenValue = typeof configuration.accessToken === 'function' + ? await configuration.accessToken(name, scopes) + : await configuration.accessToken; + object["Authorization"] = "Bearer " + localVarAccessTokenValue; + } +} + +function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void { + if (parameter == null) return; + if (typeof parameter === "object") { + if (Array.isArray(parameter)) { + (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key)); + } + else { + Object.keys(parameter).forEach(currentKey => + setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`) + ); + } + } + else { + if (urlSearchParams.has(key)) { + urlSearchParams.append(key, parameter); + } + else { + urlSearchParams.set(key, parameter); + } } - } } /** @@ -145,56 +111,40 @@ function setFlattenedQueryParams( * @export */ export const setSearchParams = function (url: URL, ...objects: any[]) { - const searchParams = new URLSearchParams(url.search); - setFlattenedQueryParams(searchParams, objects); - url.search = searchParams.toString(); -}; + const searchParams = new URLSearchParams(url.search); + setFlattenedQueryParams(searchParams, objects); + url.search = searchParams.toString(); +} /** * * @export */ -export const serializeDataIfNeeded = function ( - value: any, - requestOptions: any, - configuration?: Configuration -) { - const nonString = typeof value !== "string"; - const needsSerialization = - nonString && configuration && configuration.isJsonMime - ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) - : nonString; - return needsSerialization - ? JSON.stringify(value !== undefined ? value : {}) - : value || ""; -}; +export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) { + const nonString = typeof value !== 'string'; + const needsSerialization = nonString && configuration && configuration.isJsonMime + ? configuration.isJsonMime(requestOptions.headers['Content-Type']) + : nonString; + return needsSerialization + ? JSON.stringify(value !== undefined ? value : {}) + : (value || ""); +} /** * * @export */ export const toPathString = function (url: URL) { - return url.pathname + url.search + url.hash; -}; + return url.pathname + url.search + url.hash +} /** * * @export */ -export const createRequestFunction = function ( - axiosArgs: RequestArgs, - globalAxios: AxiosInstance, - BASE_PATH: string, - configuration?: Configuration -) { - return >( - axios: AxiosInstance = globalAxios, - basePath: string = BASE_PATH - ) => { - const axiosRequestArgs = { - ...axiosArgs.options, - url: (configuration?.basePath || basePath) + axiosArgs.url, +export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) { + return >(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url}; + return axios.request(axiosRequestArgs); }; - return axios.request(axiosRequestArgs); - }; -}; +} diff --git a/ui/packages/api-client/src/configuration.ts b/ui/packages/api-client/src/configuration.ts index e93a3074a..0a3d1285a 100644 --- a/ui/packages/api-client/src/configuration.ts +++ b/ui/packages/api-client/src/configuration.ts @@ -5,119 +5,106 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + export interface ConfigurationParameters { - apiKey?: - | string - | Promise - | ((name: string) => string) - | ((name: string) => Promise); - username?: string; - password?: string; - accessToken?: - | string - | Promise - | ((name?: string, scopes?: string[]) => string) - | ((name?: string, scopes?: string[]) => Promise); - basePath?: string; - baseOptions?: any; - formDataCtor?: new () => any; + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + username?: string; + password?: string; + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + basePath?: string; + serverIndex?: number; + baseOptions?: any; + formDataCtor?: new () => any; } export class Configuration { - /** - * parameter for apiKey security - * @param name security name - * @memberof Configuration - */ - apiKey?: - | string - | Promise - | ((name: string) => string) - | ((name: string) => Promise); - /** - * parameter for basic security - * - * @type {string} - * @memberof Configuration - */ - username?: string; - /** - * parameter for basic security - * - * @type {string} - * @memberof Configuration - */ - password?: string; - /** - * parameter for oauth2 security - * @param name security name - * @param scopes oauth2 scope - * @memberof Configuration - */ - accessToken?: - | string - | Promise - | ((name?: string, scopes?: string[]) => string) - | ((name?: string, scopes?: string[]) => Promise); - /** - * override base path - * - * @type {string} - * @memberof Configuration - */ - basePath?: string; - /** - * base options for axios calls - * - * @type {any} - * @memberof Configuration - */ - baseOptions?: any; - /** - * The FormData constructor that will be used to create multipart form data - * requests. You can inject this here so that execution environments that - * do not support the FormData class can still run the generated client. - * - * @type {new () => FormData} - */ - formDataCtor?: new () => any; + /** + * parameter for apiKey security + * @param name security name + * @memberof Configuration + */ + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + username?: string; + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + password?: string; + /** + * parameter for oauth2 security + * @param name security name + * @param scopes oauth2 scope + * @memberof Configuration + */ + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + /** + * override base path + * + * @type {string} + * @memberof Configuration + */ + basePath?: string; + /** + * override server index + * + * @type {number} + * @memberof Configuration + */ + serverIndex?: number; + /** + * base options for axios calls + * + * @type {any} + * @memberof Configuration + */ + baseOptions?: any; + /** + * The FormData constructor that will be used to create multipart form data + * requests. You can inject this here so that execution environments that + * do not support the FormData class can still run the generated client. + * + * @type {new () => FormData} + */ + formDataCtor?: new () => any; - constructor(param: ConfigurationParameters = {}) { - this.apiKey = param.apiKey; - this.username = param.username; - this.password = param.password; - this.accessToken = param.accessToken; - this.basePath = param.basePath; - this.baseOptions = param.baseOptions; - this.formDataCtor = param.formDataCtor; - } + constructor(param: ConfigurationParameters = {}) { + this.apiKey = param.apiKey; + this.username = param.username; + this.password = param.password; + this.accessToken = param.accessToken; + this.basePath = param.basePath; + this.serverIndex = param.serverIndex; + this.baseOptions = param.baseOptions; + this.formDataCtor = param.formDataCtor; + } - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - public isJsonMime(mime: string): boolean { - const jsonMime: RegExp = new RegExp( - "^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$", - "i" - ); - return ( - mime !== null && - (jsonMime.test(mime) || - mime.toLowerCase() === "application/json-patch+json") - ); - } + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public isJsonMime(mime: string): boolean { + const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); + return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); + } } diff --git a/ui/packages/api-client/src/index.ts b/ui/packages/api-client/src/index.ts index f123c45f9..32ac3d55c 100644 --- a/ui/packages/api-client/src/index.ts +++ b/ui/packages/api-client/src/index.ts @@ -5,13 +5,14 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + export * from "./api"; export * from "./configuration"; export * from "./models"; diff --git a/ui/packages/api-client/src/models/annotation-setting-list.ts b/ui/packages/api-client/src/models/annotation-setting-list.ts index 8ed2649b4..0f6e5d17f 100644 --- a/ui/packages/api-client/src/models/annotation-setting-list.ts +++ b/ui/packages/api-client/src/models/annotation-setting-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { AnnotationSetting } from "./annotation-setting"; +import { AnnotationSetting } from './annotation-setting'; /** - * + * * @export * @interface AnnotationSettingList */ export interface AnnotationSettingList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof AnnotationSettingList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof AnnotationSettingList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof AnnotationSettingList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof AnnotationSettingList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof AnnotationSettingList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof AnnotationSettingList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof AnnotationSettingList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof AnnotationSettingList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof AnnotationSettingList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof AnnotationSettingList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof AnnotationSettingList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof AnnotationSettingList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof AnnotationSettingList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof AnnotationSettingList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof AnnotationSettingList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof AnnotationSettingList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof AnnotationSettingList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof AnnotationSettingList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/annotation-setting-spec.ts b/ui/packages/api-client/src/models/annotation-setting-spec.ts index a8c4afff2..06c754820 100644 --- a/ui/packages/api-client/src/models/annotation-setting-spec.ts +++ b/ui/packages/api-client/src/models/annotation-setting-spec.ts @@ -5,33 +5,35 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { GroupKind } from "./group-kind"; +import { GroupKind } from './group-kind'; /** - * + * * @export * @interface AnnotationSettingSpec */ export interface AnnotationSettingSpec { - /** - * - * @type {Array} - * @memberof AnnotationSettingSpec - */ - formSchema: Array; - /** - * - * @type {GroupKind} - * @memberof AnnotationSettingSpec - */ - targetRef: GroupKind; + /** + * + * @type {Array} + * @memberof AnnotationSettingSpec + */ + 'formSchema': Array; + /** + * + * @type {GroupKind} + * @memberof AnnotationSettingSpec + */ + 'targetRef': GroupKind; } + diff --git a/ui/packages/api-client/src/models/annotation-setting.ts b/ui/packages/api-client/src/models/annotation-setting.ts index 98f509626..31b0ad114 100644 --- a/ui/packages/api-client/src/models/annotation-setting.ts +++ b/ui/packages/api-client/src/models/annotation-setting.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { AnnotationSettingSpec } from "./annotation-setting-spec"; +import { AnnotationSettingSpec } from './annotation-setting-spec'; // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; /** - * + * * @export * @interface AnnotationSetting */ export interface AnnotationSetting { - /** - * - * @type {string} - * @memberof AnnotationSetting - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof AnnotationSetting - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof AnnotationSetting - */ - metadata: Metadata; - /** - * - * @type {AnnotationSettingSpec} - * @memberof AnnotationSetting - */ - spec: AnnotationSettingSpec; + /** + * + * @type {string} + * @memberof AnnotationSetting + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof AnnotationSetting + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof AnnotationSetting + */ + 'metadata': Metadata; + /** + * + * @type {AnnotationSettingSpec} + * @memberof AnnotationSetting + */ + 'spec': AnnotationSettingSpec; } + diff --git a/ui/packages/api-client/src/models/attachment-list.ts b/ui/packages/api-client/src/models/attachment-list.ts index f54930577..9c32f4bae 100644 --- a/ui/packages/api-client/src/models/attachment-list.ts +++ b/ui/packages/api-client/src/models/attachment-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Attachment } from "./attachment"; +import { Attachment } from './attachment'; /** - * + * * @export * @interface AttachmentList */ export interface AttachmentList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof AttachmentList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof AttachmentList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof AttachmentList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof AttachmentList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof AttachmentList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof AttachmentList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof AttachmentList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof AttachmentList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof AttachmentList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof AttachmentList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof AttachmentList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof AttachmentList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof AttachmentList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof AttachmentList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof AttachmentList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof AttachmentList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof AttachmentList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof AttachmentList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/attachment-spec.ts b/ui/packages/api-client/src/models/attachment-spec.ts index 685c87ec8..22c70ebbb 100644 --- a/ui/packages/api-client/src/models/attachment-spec.ts +++ b/ui/packages/api-client/src/models/attachment-spec.ts @@ -5,59 +5,62 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface AttachmentSpec */ export interface AttachmentSpec { - /** - * Display name of attachment - * @type {string} - * @memberof AttachmentSpec - */ - displayName?: string; - /** - * Group name - * @type {string} - * @memberof AttachmentSpec - */ - groupName?: string; - /** - * Media type of attachment - * @type {string} - * @memberof AttachmentSpec - */ - mediaType?: string; - /** - * Name of User who uploads the attachment - * @type {string} - * @memberof AttachmentSpec - */ - ownerName?: string; - /** - * Policy name - * @type {string} - * @memberof AttachmentSpec - */ - policyName?: string; - /** - * Size of attachment. Unit is Byte - * @type {number} - * @memberof AttachmentSpec - */ - size?: number; - /** - * Tags of attachment - * @type {Array} - * @memberof AttachmentSpec - */ - tags?: Array; + /** + * Display name of attachment + * @type {string} + * @memberof AttachmentSpec + */ + 'displayName'?: string; + /** + * Group name + * @type {string} + * @memberof AttachmentSpec + */ + 'groupName'?: string; + /** + * Media type of attachment + * @type {string} + * @memberof AttachmentSpec + */ + 'mediaType'?: string; + /** + * Name of User who uploads the attachment + * @type {string} + * @memberof AttachmentSpec + */ + 'ownerName'?: string; + /** + * Policy name + * @type {string} + * @memberof AttachmentSpec + */ + 'policyName'?: string; + /** + * Size of attachment. Unit is Byte + * @type {number} + * @memberof AttachmentSpec + */ + 'size'?: number; + /** + * Tags of attachment + * @type {Array} + * @memberof AttachmentSpec + */ + 'tags'?: Array; } + diff --git a/ui/packages/api-client/src/models/attachment-status.ts b/ui/packages/api-client/src/models/attachment-status.ts index b3d183117..2b49698d4 100644 --- a/ui/packages/api-client/src/models/attachment-status.ts +++ b/ui/packages/api-client/src/models/attachment-status.ts @@ -5,23 +5,26 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface AttachmentStatus */ export interface AttachmentStatus { - /** - * Permalink of attachment. If it is in local storage, the public URL will be set. If it is in s3 storage, the Object URL will be set. - * @type {string} - * @memberof AttachmentStatus - */ - permalink?: string; + /** + * Permalink of attachment. If it is in local storage, the public URL will be set. If it is in s3 storage, the Object URL will be set. + * @type {string} + * @memberof AttachmentStatus + */ + 'permalink'?: string; } + diff --git a/ui/packages/api-client/src/models/attachment.ts b/ui/packages/api-client/src/models/attachment.ts index 409d871cf..ae4ab61f6 100644 --- a/ui/packages/api-client/src/models/attachment.ts +++ b/ui/packages/api-client/src/models/attachment.ts @@ -5,57 +5,59 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { AttachmentSpec } from "./attachment-spec"; +import { AttachmentSpec } from './attachment-spec'; // May contain unused imports in some cases // @ts-ignore -import { AttachmentStatus } from "./attachment-status"; +import { AttachmentStatus } from './attachment-status'; // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; /** - * + * * @export * @interface Attachment */ export interface Attachment { - /** - * - * @type {string} - * @memberof Attachment - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof Attachment - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Attachment - */ - metadata: Metadata; - /** - * - * @type {AttachmentSpec} - * @memberof Attachment - */ - spec: AttachmentSpec; - /** - * - * @type {AttachmentStatus} - * @memberof Attachment - */ - status?: AttachmentStatus; + /** + * + * @type {string} + * @memberof Attachment + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof Attachment + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Attachment + */ + 'metadata': Metadata; + /** + * + * @type {AttachmentSpec} + * @memberof Attachment + */ + 'spec': AttachmentSpec; + /** + * + * @type {AttachmentStatus} + * @memberof Attachment + */ + 'status'?: AttachmentStatus; } + diff --git a/ui/packages/api-client/src/models/auth-provider-list.ts b/ui/packages/api-client/src/models/auth-provider-list.ts index 5fb5f1843..664817e5d 100644 --- a/ui/packages/api-client/src/models/auth-provider-list.ts +++ b/ui/packages/api-client/src/models/auth-provider-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { AuthProvider } from "./auth-provider"; +import { AuthProvider } from './auth-provider'; /** - * + * * @export * @interface AuthProviderList */ export interface AuthProviderList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof AuthProviderList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof AuthProviderList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof AuthProviderList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof AuthProviderList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof AuthProviderList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof AuthProviderList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof AuthProviderList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof AuthProviderList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof AuthProviderList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof AuthProviderList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof AuthProviderList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof AuthProviderList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof AuthProviderList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof AuthProviderList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof AuthProviderList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof AuthProviderList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof AuthProviderList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof AuthProviderList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/auth-provider-spec.ts b/ui/packages/api-client/src/models/auth-provider-spec.ts index b068a299e..572637688 100644 --- a/ui/packages/api-client/src/models/auth-provider-spec.ts +++ b/ui/packages/api-client/src/models/auth-provider-spec.ts @@ -5,84 +5,86 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ConfigMapRef } from "./config-map-ref"; +import { ConfigMapRef } from './config-map-ref'; // May contain unused imports in some cases // @ts-ignore -import { SettingRef } from "./setting-ref"; +import { SettingRef } from './setting-ref'; /** - * + * * @export * @interface AuthProviderSpec */ export interface AuthProviderSpec { - /** - * Authentication url of the auth provider - * @type {string} - * @memberof AuthProviderSpec - */ - authenticationUrl: string; - /** - * - * @type {string} - * @memberof AuthProviderSpec - */ - bindingUrl?: string; - /** - * - * @type {ConfigMapRef} - * @memberof AuthProviderSpec - */ - configMapRef?: ConfigMapRef; - /** - * - * @type {string} - * @memberof AuthProviderSpec - */ - description?: string; - /** - * Display name of the auth provider - * @type {string} - * @memberof AuthProviderSpec - */ - displayName: string; - /** - * - * @type {string} - * @memberof AuthProviderSpec - */ - helpPage?: string; - /** - * - * @type {string} - * @memberof AuthProviderSpec - */ - logo?: string; - /** - * - * @type {SettingRef} - * @memberof AuthProviderSpec - */ - settingRef?: SettingRef; - /** - * - * @type {string} - * @memberof AuthProviderSpec - */ - unbindUrl?: string; - /** - * - * @type {string} - * @memberof AuthProviderSpec - */ - website?: string; + /** + * Authentication url of the auth provider + * @type {string} + * @memberof AuthProviderSpec + */ + 'authenticationUrl': string; + /** + * + * @type {string} + * @memberof AuthProviderSpec + */ + 'bindingUrl'?: string; + /** + * + * @type {ConfigMapRef} + * @memberof AuthProviderSpec + */ + 'configMapRef'?: ConfigMapRef; + /** + * + * @type {string} + * @memberof AuthProviderSpec + */ + 'description'?: string; + /** + * Display name of the auth provider + * @type {string} + * @memberof AuthProviderSpec + */ + 'displayName': string; + /** + * + * @type {string} + * @memberof AuthProviderSpec + */ + 'helpPage'?: string; + /** + * + * @type {string} + * @memberof AuthProviderSpec + */ + 'logo'?: string; + /** + * + * @type {SettingRef} + * @memberof AuthProviderSpec + */ + 'settingRef'?: SettingRef; + /** + * + * @type {string} + * @memberof AuthProviderSpec + */ + 'unbindUrl'?: string; + /** + * + * @type {string} + * @memberof AuthProviderSpec + */ + 'website'?: string; } + diff --git a/ui/packages/api-client/src/models/auth-provider.ts b/ui/packages/api-client/src/models/auth-provider.ts index 099dc0db5..fc2a31bae 100644 --- a/ui/packages/api-client/src/models/auth-provider.ts +++ b/ui/packages/api-client/src/models/auth-provider.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { AuthProviderSpec } from "./auth-provider-spec"; +import { AuthProviderSpec } from './auth-provider-spec'; // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; /** - * + * * @export * @interface AuthProvider */ export interface AuthProvider { - /** - * - * @type {string} - * @memberof AuthProvider - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof AuthProvider - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof AuthProvider - */ - metadata: Metadata; - /** - * - * @type {AuthProviderSpec} - * @memberof AuthProvider - */ - spec: AuthProviderSpec; + /** + * + * @type {string} + * @memberof AuthProvider + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof AuthProvider + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof AuthProvider + */ + 'metadata': Metadata; + /** + * + * @type {AuthProviderSpec} + * @memberof AuthProvider + */ + 'spec': AuthProviderSpec; } + diff --git a/ui/packages/api-client/src/models/author.ts b/ui/packages/api-client/src/models/author.ts index f999c6a60..87133054c 100644 --- a/ui/packages/api-client/src/models/author.ts +++ b/ui/packages/api-client/src/models/author.ts @@ -5,29 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface Author */ export interface Author { - /** - * - * @type {string} - * @memberof Author - */ - name: string; - /** - * - * @type {string} - * @memberof Author - */ - website?: string; + /** + * + * @type {string} + * @memberof Author + */ + 'name': string; + /** + * + * @type {string} + * @memberof Author + */ + 'website'?: string; } + diff --git a/ui/packages/api-client/src/models/backup-list.ts b/ui/packages/api-client/src/models/backup-list.ts index ed9a14dc4..51d47176a 100644 --- a/ui/packages/api-client/src/models/backup-list.ts +++ b/ui/packages/api-client/src/models/backup-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Backup } from "./backup"; +import { Backup } from './backup'; /** - * + * * @export * @interface BackupList */ export interface BackupList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof BackupList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof BackupList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof BackupList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof BackupList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof BackupList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof BackupList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof BackupList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof BackupList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof BackupList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof BackupList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof BackupList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof BackupList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof BackupList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof BackupList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof BackupList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof BackupList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof BackupList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof BackupList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/backup-spec.ts b/ui/packages/api-client/src/models/backup-spec.ts index db60c6a8e..c37b6fcf0 100644 --- a/ui/packages/api-client/src/models/backup-spec.ts +++ b/ui/packages/api-client/src/models/backup-spec.ts @@ -5,29 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface BackupSpec */ export interface BackupSpec { - /** - * - * @type {string} - * @memberof BackupSpec - */ - expiresAt?: string; - /** - * Backup file format. Currently, only zip format is supported. - * @type {string} - * @memberof BackupSpec - */ - format?: string; + /** + * + * @type {string} + * @memberof BackupSpec + */ + 'expiresAt'?: string; + /** + * Backup file format. Currently, only zip format is supported. + * @type {string} + * @memberof BackupSpec + */ + 'format'?: string; } + diff --git a/ui/packages/api-client/src/models/backup-status.ts b/ui/packages/api-client/src/models/backup-status.ts index 2dd4b26ac..c3df17aea 100644 --- a/ui/packages/api-client/src/models/backup-status.ts +++ b/ui/packages/api-client/src/models/backup-status.ts @@ -5,69 +5,72 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface BackupStatus */ export interface BackupStatus { - /** - * - * @type {string} - * @memberof BackupStatus - */ - completionTimestamp?: string; - /** - * - * @type {string} - * @memberof BackupStatus - */ - failureMessage?: string; - /** - * - * @type {string} - * @memberof BackupStatus - */ - failureReason?: string; - /** - * - * @type {string} - * @memberof BackupStatus - */ - filename?: string; - /** - * - * @type {string} - * @memberof BackupStatus - */ - phase?: BackupStatusPhaseEnum; - /** - * - * @type {number} - * @memberof BackupStatus - */ - size?: number; - /** - * - * @type {string} - * @memberof BackupStatus - */ - startTimestamp?: string; + /** + * + * @type {string} + * @memberof BackupStatus + */ + 'completionTimestamp'?: string; + /** + * + * @type {string} + * @memberof BackupStatus + */ + 'failureMessage'?: string; + /** + * + * @type {string} + * @memberof BackupStatus + */ + 'failureReason'?: string; + /** + * + * @type {string} + * @memberof BackupStatus + */ + 'filename'?: string; + /** + * + * @type {string} + * @memberof BackupStatus + */ + 'phase'?: BackupStatusPhaseEnum; + /** + * + * @type {number} + * @memberof BackupStatus + */ + 'size'?: number; + /** + * + * @type {string} + * @memberof BackupStatus + */ + 'startTimestamp'?: string; } export const BackupStatusPhaseEnum = { - Pending: "PENDING", - Running: "RUNNING", - Succeeded: "SUCCEEDED", - Failed: "FAILED", + Pending: 'PENDING', + Running: 'RUNNING', + Succeeded: 'SUCCEEDED', + Failed: 'FAILED' } as const; -export type BackupStatusPhaseEnum = - (typeof BackupStatusPhaseEnum)[keyof typeof BackupStatusPhaseEnum]; +export type BackupStatusPhaseEnum = typeof BackupStatusPhaseEnum[keyof typeof BackupStatusPhaseEnum]; + + diff --git a/ui/packages/api-client/src/models/backup.ts b/ui/packages/api-client/src/models/backup.ts index 43d9eba91..e792402fb 100644 --- a/ui/packages/api-client/src/models/backup.ts +++ b/ui/packages/api-client/src/models/backup.ts @@ -5,57 +5,59 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { BackupSpec } from "./backup-spec"; +import { BackupSpec } from './backup-spec'; // May contain unused imports in some cases // @ts-ignore -import { BackupStatus } from "./backup-status"; +import { BackupStatus } from './backup-status'; // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; /** - * + * * @export * @interface Backup */ export interface Backup { - /** - * - * @type {string} - * @memberof Backup - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof Backup - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Backup - */ - metadata: Metadata; - /** - * - * @type {BackupSpec} - * @memberof Backup - */ - spec?: BackupSpec; - /** - * - * @type {BackupStatus} - * @memberof Backup - */ - status?: BackupStatus; + /** + * + * @type {string} + * @memberof Backup + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof Backup + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Backup + */ + 'metadata': Metadata; + /** + * + * @type {BackupSpec} + * @memberof Backup + */ + 'spec'?: BackupSpec; + /** + * + * @type {BackupStatus} + * @memberof Backup + */ + 'status'?: BackupStatus; } + diff --git a/ui/packages/api-client/src/models/category-list.ts b/ui/packages/api-client/src/models/category-list.ts index 9edd4d37e..c8eb8739b 100644 --- a/ui/packages/api-client/src/models/category-list.ts +++ b/ui/packages/api-client/src/models/category-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Category } from "./category"; +import { Category } from './category'; /** - * + * * @export * @interface CategoryList */ export interface CategoryList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof CategoryList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof CategoryList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof CategoryList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof CategoryList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof CategoryList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof CategoryList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof CategoryList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof CategoryList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof CategoryList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof CategoryList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof CategoryList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof CategoryList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof CategoryList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof CategoryList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof CategoryList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof CategoryList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof CategoryList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof CategoryList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/category-spec.ts b/ui/packages/api-client/src/models/category-spec.ts index 68fa4986c..23350b773 100644 --- a/ui/packages/api-client/src/models/category-spec.ts +++ b/ui/packages/api-client/src/models/category-spec.ts @@ -5,59 +5,62 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface CategorySpec */ export interface CategorySpec { - /** - * - * @type {Array} - * @memberof CategorySpec - */ - children?: Array; - /** - * - * @type {string} - * @memberof CategorySpec - */ - cover?: string; - /** - * - * @type {string} - * @memberof CategorySpec - */ - description?: string; - /** - * - * @type {string} - * @memberof CategorySpec - */ - displayName: string; - /** - * - * @type {number} - * @memberof CategorySpec - */ - priority: number; - /** - * - * @type {string} - * @memberof CategorySpec - */ - slug: string; - /** - * - * @type {string} - * @memberof CategorySpec - */ - template?: string; + /** + * + * @type {Array} + * @memberof CategorySpec + */ + 'children'?: Array; + /** + * + * @type {string} + * @memberof CategorySpec + */ + 'cover'?: string; + /** + * + * @type {string} + * @memberof CategorySpec + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof CategorySpec + */ + 'displayName': string; + /** + * + * @type {number} + * @memberof CategorySpec + */ + 'priority': number; + /** + * + * @type {string} + * @memberof CategorySpec + */ + 'slug': string; + /** + * + * @type {string} + * @memberof CategorySpec + */ + 'template'?: string; } + diff --git a/ui/packages/api-client/src/models/category-status.ts b/ui/packages/api-client/src/models/category-status.ts index d593d91e5..b9d705ba0 100644 --- a/ui/packages/api-client/src/models/category-status.ts +++ b/ui/packages/api-client/src/models/category-status.ts @@ -5,35 +5,38 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface CategoryStatus */ export interface CategoryStatus { - /** - * - * @type {string} - * @memberof CategoryStatus - */ - permalink?: string; - /** - * - * @type {number} - * @memberof CategoryStatus - */ - postCount?: number; - /** - * - * @type {number} - * @memberof CategoryStatus - */ - visiblePostCount?: number; + /** + * + * @type {string} + * @memberof CategoryStatus + */ + 'permalink'?: string; + /** + * + * @type {number} + * @memberof CategoryStatus + */ + 'postCount'?: number; + /** + * + * @type {number} + * @memberof CategoryStatus + */ + 'visiblePostCount'?: number; } + diff --git a/ui/packages/api-client/src/models/category-vo-list.ts b/ui/packages/api-client/src/models/category-vo-list.ts index 3befd7d63..70dd281ef 100644 --- a/ui/packages/api-client/src/models/category-vo-list.ts +++ b/ui/packages/api-client/src/models/category-vo-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { CategoryVo } from "./category-vo"; +import { CategoryVo } from './category-vo'; /** - * + * * @export * @interface CategoryVoList */ export interface CategoryVoList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof CategoryVoList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof CategoryVoList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof CategoryVoList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof CategoryVoList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof CategoryVoList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof CategoryVoList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof CategoryVoList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof CategoryVoList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof CategoryVoList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof CategoryVoList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof CategoryVoList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof CategoryVoList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof CategoryVoList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof CategoryVoList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof CategoryVoList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof CategoryVoList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof CategoryVoList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof CategoryVoList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/category-vo.ts b/ui/packages/api-client/src/models/category-vo.ts index 4b70b619d..f22370313 100644 --- a/ui/packages/api-client/src/models/category-vo.ts +++ b/ui/packages/api-client/src/models/category-vo.ts @@ -5,51 +5,53 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { CategorySpec } from "./category-spec"; +import { CategorySpec } from './category-spec'; // May contain unused imports in some cases // @ts-ignore -import { CategoryStatus } from "./category-status"; +import { CategoryStatus } from './category-status'; // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; /** - * + * * @export * @interface CategoryVo */ export interface CategoryVo { - /** - * - * @type {Metadata} - * @memberof CategoryVo - */ - metadata: Metadata; - /** - * - * @type {number} - * @memberof CategoryVo - */ - postCount?: number; - /** - * - * @type {CategorySpec} - * @memberof CategoryVo - */ - spec?: CategorySpec; - /** - * - * @type {CategoryStatus} - * @memberof CategoryVo - */ - status?: CategoryStatus; + /** + * + * @type {Metadata} + * @memberof CategoryVo + */ + 'metadata': Metadata; + /** + * + * @type {number} + * @memberof CategoryVo + */ + 'postCount'?: number; + /** + * + * @type {CategorySpec} + * @memberof CategoryVo + */ + 'spec'?: CategorySpec; + /** + * + * @type {CategoryStatus} + * @memberof CategoryVo + */ + 'status'?: CategoryStatus; } + diff --git a/ui/packages/api-client/src/models/category.ts b/ui/packages/api-client/src/models/category.ts index 56aa7c5b8..66d27238b 100644 --- a/ui/packages/api-client/src/models/category.ts +++ b/ui/packages/api-client/src/models/category.ts @@ -5,57 +5,59 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { CategorySpec } from "./category-spec"; +import { CategorySpec } from './category-spec'; // May contain unused imports in some cases // @ts-ignore -import { CategoryStatus } from "./category-status"; +import { CategoryStatus } from './category-status'; // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; /** - * + * * @export * @interface Category */ export interface Category { - /** - * - * @type {string} - * @memberof Category - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof Category - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Category - */ - metadata: Metadata; - /** - * - * @type {CategorySpec} - * @memberof Category - */ - spec: CategorySpec; - /** - * - * @type {CategoryStatus} - * @memberof Category - */ - status?: CategoryStatus; + /** + * + * @type {string} + * @memberof Category + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof Category + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Category + */ + 'metadata': Metadata; + /** + * + * @type {CategorySpec} + * @memberof Category + */ + 'spec': CategorySpec; + /** + * + * @type {CategoryStatus} + * @memberof Category + */ + 'status'?: CategoryStatus; } + diff --git a/ui/packages/api-client/src/models/change-password-request.ts b/ui/packages/api-client/src/models/change-password-request.ts index f609e3c79..7a497710a 100644 --- a/ui/packages/api-client/src/models/change-password-request.ts +++ b/ui/packages/api-client/src/models/change-password-request.ts @@ -5,23 +5,26 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface ChangePasswordRequest */ export interface ChangePasswordRequest { - /** - * New password. - * @type {string} - * @memberof ChangePasswordRequest - */ - password: string; + /** + * New password. + * @type {string} + * @memberof ChangePasswordRequest + */ + 'password': string; } + diff --git a/ui/packages/api-client/src/models/client-registration.ts b/ui/packages/api-client/src/models/client-registration.ts deleted file mode 100644 index 3a1d07758..000000000 --- a/ui/packages/api-client/src/models/client-registration.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Halo Next API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface ClientRegistration - */ -export interface ClientRegistration { - /** - * - * @type {string} - * @memberof ClientRegistration - */ - authorizationGrantType?: string; - /** - * - * @type {string} - * @memberof ClientRegistration - */ - authorizationUri?: string; - /** - * - * @type {string} - * @memberof ClientRegistration - */ - clientAuthenticationMethod?: string; - /** - * - * @type {string} - * @memberof ClientRegistration - */ - clientName?: string; - /** - * - * @type {{ [key: string]: object; }} - * @memberof ClientRegistration - */ - configurationMetadata?: { [key: string]: object }; - /** - * - * @type {string} - * @memberof ClientRegistration - */ - issuerUri?: string; - /** - * - * @type {string} - * @memberof ClientRegistration - */ - jwkSetUri?: string; - /** - * - * @type {string} - * @memberof ClientRegistration - */ - redirectUri?: string; - /** - * - * @type {Array} - * @memberof ClientRegistration - */ - scopes?: Array; - /** - * - * @type {string} - * @memberof ClientRegistration - */ - tokenUri: string; - /** - * - * @type {string} - * @memberof ClientRegistration - */ - userInfoAuthenticationMethod?: string; - /** - * - * @type {string} - * @memberof ClientRegistration - */ - userInfoUri?: string; - /** - * - * @type {string} - * @memberof ClientRegistration - */ - userNameAttributeName?: string; -} diff --git a/ui/packages/api-client/src/models/comment-email-owner.ts b/ui/packages/api-client/src/models/comment-email-owner.ts index 663d72b7b..0bc2a6164 100644 --- a/ui/packages/api-client/src/models/comment-email-owner.ts +++ b/ui/packages/api-client/src/models/comment-email-owner.ts @@ -5,41 +5,44 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface CommentEmailOwner */ export interface CommentEmailOwner { - /** - * - * @type {string} - * @memberof CommentEmailOwner - */ - avatar?: string; - /** - * - * @type {string} - * @memberof CommentEmailOwner - */ - displayName?: string; - /** - * - * @type {string} - * @memberof CommentEmailOwner - */ - email?: string; - /** - * - * @type {string} - * @memberof CommentEmailOwner - */ - website?: string; + /** + * + * @type {string} + * @memberof CommentEmailOwner + */ + 'avatar'?: string; + /** + * + * @type {string} + * @memberof CommentEmailOwner + */ + 'displayName'?: string; + /** + * + * @type {string} + * @memberof CommentEmailOwner + */ + 'email'?: string; + /** + * + * @type {string} + * @memberof CommentEmailOwner + */ + 'website'?: string; } + diff --git a/ui/packages/api-client/src/models/comment-list.ts b/ui/packages/api-client/src/models/comment-list.ts index 9f74965f7..f75ba57e4 100644 --- a/ui/packages/api-client/src/models/comment-list.ts +++ b/ui/packages/api-client/src/models/comment-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Comment } from "./comment"; +import { Comment } from './comment'; /** - * + * * @export * @interface CommentList */ export interface CommentList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof CommentList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof CommentList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof CommentList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof CommentList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof CommentList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof CommentList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof CommentList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof CommentList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof CommentList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof CommentList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof CommentList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof CommentList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof CommentList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof CommentList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof CommentList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof CommentList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof CommentList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof CommentList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/comment-owner.ts b/ui/packages/api-client/src/models/comment-owner.ts index 59a5101e3..b10a65f09 100644 --- a/ui/packages/api-client/src/models/comment-owner.ts +++ b/ui/packages/api-client/src/models/comment-owner.ts @@ -5,41 +5,44 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface CommentOwner */ export interface CommentOwner { - /** - * - * @type {{ [key: string]: string; }} - * @memberof CommentOwner - */ - annotations?: { [key: string]: string }; - /** - * - * @type {string} - * @memberof CommentOwner - */ - displayName?: string; - /** - * - * @type {string} - * @memberof CommentOwner - */ - kind: string; - /** - * - * @type {string} - * @memberof CommentOwner - */ - name: string; + /** + * + * @type {{ [key: string]: string; }} + * @memberof CommentOwner + */ + 'annotations'?: { [key: string]: string; }; + /** + * + * @type {string} + * @memberof CommentOwner + */ + 'displayName'?: string; + /** + * + * @type {string} + * @memberof CommentOwner + */ + 'kind': string; + /** + * + * @type {string} + * @memberof CommentOwner + */ + 'name': string; } + diff --git a/ui/packages/api-client/src/models/comment-request.ts b/ui/packages/api-client/src/models/comment-request.ts index e3a17fb15..5b6ea655f 100644 --- a/ui/packages/api-client/src/models/comment-request.ts +++ b/ui/packages/api-client/src/models/comment-request.ts @@ -5,54 +5,56 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { CommentEmailOwner } from "./comment-email-owner"; +import { CommentEmailOwner } from './comment-email-owner'; // May contain unused imports in some cases // @ts-ignore -import { Ref } from "./ref"; +import { Ref } from './ref'; /** - * + * * @export * @interface CommentRequest */ export interface CommentRequest { - /** - * - * @type {boolean} - * @memberof CommentRequest - */ - allowNotification?: boolean; - /** - * - * @type {string} - * @memberof CommentRequest - */ - content: string; - /** - * - * @type {CommentEmailOwner} - * @memberof CommentRequest - */ - owner?: CommentEmailOwner; - /** - * - * @type {string} - * @memberof CommentRequest - */ - raw: string; - /** - * - * @type {Ref} - * @memberof CommentRequest - */ - subjectRef: Ref; + /** + * + * @type {boolean} + * @memberof CommentRequest + */ + 'allowNotification'?: boolean; + /** + * + * @type {string} + * @memberof CommentRequest + */ + 'content': string; + /** + * + * @type {CommentEmailOwner} + * @memberof CommentRequest + */ + 'owner'?: CommentEmailOwner; + /** + * + * @type {string} + * @memberof CommentRequest + */ + 'raw': string; + /** + * + * @type {Ref} + * @memberof CommentRequest + */ + 'subjectRef': Ref; } + diff --git a/ui/packages/api-client/src/models/comment-spec.ts b/ui/packages/api-client/src/models/comment-spec.ts index 9a025c21b..06cd22391 100644 --- a/ui/packages/api-client/src/models/comment-spec.ts +++ b/ui/packages/api-client/src/models/comment-spec.ts @@ -5,108 +5,110 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { CommentOwner } from "./comment-owner"; +import { CommentOwner } from './comment-owner'; // May contain unused imports in some cases // @ts-ignore -import { Ref } from "./ref"; +import { Ref } from './ref'; /** - * + * * @export * @interface CommentSpec */ export interface CommentSpec { - /** - * - * @type {boolean} - * @memberof CommentSpec - */ - allowNotification: boolean; - /** - * - * @type {boolean} - * @memberof CommentSpec - */ - approved: boolean; - /** - * - * @type {string} - * @memberof CommentSpec - */ - approvedTime?: string; - /** - * - * @type {string} - * @memberof CommentSpec - */ - content: string; - /** - * - * @type {string} - * @memberof CommentSpec - */ - creationTime?: string; - /** - * - * @type {boolean} - * @memberof CommentSpec - */ - hidden: boolean; - /** - * - * @type {string} - * @memberof CommentSpec - */ - ipAddress?: string; - /** - * - * @type {string} - * @memberof CommentSpec - */ - lastReadTime?: string; - /** - * - * @type {CommentOwner} - * @memberof CommentSpec - */ - owner: CommentOwner; - /** - * - * @type {number} - * @memberof CommentSpec - */ - priority: number; - /** - * - * @type {string} - * @memberof CommentSpec - */ - raw: string; - /** - * - * @type {Ref} - * @memberof CommentSpec - */ - subjectRef: Ref; - /** - * - * @type {boolean} - * @memberof CommentSpec - */ - top: boolean; - /** - * - * @type {string} - * @memberof CommentSpec - */ - userAgent?: string; + /** + * + * @type {boolean} + * @memberof CommentSpec + */ + 'allowNotification': boolean; + /** + * + * @type {boolean} + * @memberof CommentSpec + */ + 'approved': boolean; + /** + * + * @type {string} + * @memberof CommentSpec + */ + 'approvedTime'?: string; + /** + * + * @type {string} + * @memberof CommentSpec + */ + 'content': string; + /** + * + * @type {string} + * @memberof CommentSpec + */ + 'creationTime'?: string; + /** + * + * @type {boolean} + * @memberof CommentSpec + */ + 'hidden': boolean; + /** + * + * @type {string} + * @memberof CommentSpec + */ + 'ipAddress'?: string; + /** + * + * @type {string} + * @memberof CommentSpec + */ + 'lastReadTime'?: string; + /** + * + * @type {CommentOwner} + * @memberof CommentSpec + */ + 'owner': CommentOwner; + /** + * + * @type {number} + * @memberof CommentSpec + */ + 'priority': number; + /** + * + * @type {string} + * @memberof CommentSpec + */ + 'raw': string; + /** + * + * @type {Ref} + * @memberof CommentSpec + */ + 'subjectRef': Ref; + /** + * + * @type {boolean} + * @memberof CommentSpec + */ + 'top': boolean; + /** + * + * @type {string} + * @memberof CommentSpec + */ + 'userAgent'?: string; } + diff --git a/ui/packages/api-client/src/models/comment-stats-vo.ts b/ui/packages/api-client/src/models/comment-stats-vo.ts index 71456c071..5e54ec84f 100644 --- a/ui/packages/api-client/src/models/comment-stats-vo.ts +++ b/ui/packages/api-client/src/models/comment-stats-vo.ts @@ -5,23 +5,26 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface CommentStatsVo */ export interface CommentStatsVo { - /** - * - * @type {number} - * @memberof CommentStatsVo - */ - upvote?: number; + /** + * + * @type {number} + * @memberof CommentStatsVo + */ + 'upvote'?: number; } + diff --git a/ui/packages/api-client/src/models/comment-stats.ts b/ui/packages/api-client/src/models/comment-stats.ts index 60cc20442..4eca3dfbd 100644 --- a/ui/packages/api-client/src/models/comment-stats.ts +++ b/ui/packages/api-client/src/models/comment-stats.ts @@ -5,23 +5,26 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface CommentStats */ export interface CommentStats { - /** - * - * @type {number} - * @memberof CommentStats - */ - upvote?: number; + /** + * + * @type {number} + * @memberof CommentStats + */ + 'upvote'?: number; } + diff --git a/ui/packages/api-client/src/models/comment-status.ts b/ui/packages/api-client/src/models/comment-status.ts index 0b671c0a0..1f565a51b 100644 --- a/ui/packages/api-client/src/models/comment-status.ts +++ b/ui/packages/api-client/src/models/comment-status.ts @@ -5,47 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface CommentStatus */ export interface CommentStatus { - /** - * - * @type {boolean} - * @memberof CommentStatus - */ - hasNewReply?: boolean; - /** - * - * @type {string} - * @memberof CommentStatus - */ - lastReplyTime?: string; - /** - * - * @type {number} - * @memberof CommentStatus - */ - replyCount?: number; - /** - * - * @type {number} - * @memberof CommentStatus - */ - unreadReplyCount?: number; - /** - * - * @type {number} - * @memberof CommentStatus - */ - visibleReplyCount?: number; + /** + * + * @type {boolean} + * @memberof CommentStatus + */ + 'hasNewReply'?: boolean; + /** + * + * @type {string} + * @memberof CommentStatus + */ + 'lastReplyTime'?: string; + /** + * + * @type {number} + * @memberof CommentStatus + */ + 'replyCount'?: number; + /** + * + * @type {number} + * @memberof CommentStatus + */ + 'unreadReplyCount'?: number; + /** + * + * @type {number} + * @memberof CommentStatus + */ + 'visibleReplyCount'?: number; } + diff --git a/ui/packages/api-client/src/models/comment-vo-list.ts b/ui/packages/api-client/src/models/comment-vo-list.ts index 6e7d44ba5..7fc10e928 100644 --- a/ui/packages/api-client/src/models/comment-vo-list.ts +++ b/ui/packages/api-client/src/models/comment-vo-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { CommentVo } from "./comment-vo"; +import { CommentVo } from './comment-vo'; /** - * + * * @export * @interface CommentVoList */ export interface CommentVoList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof CommentVoList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof CommentVoList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof CommentVoList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof CommentVoList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof CommentVoList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof CommentVoList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof CommentVoList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof CommentVoList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof CommentVoList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof CommentVoList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof CommentVoList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof CommentVoList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof CommentVoList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof CommentVoList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof CommentVoList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof CommentVoList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof CommentVoList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof CommentVoList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/comment-vo.ts b/ui/packages/api-client/src/models/comment-vo.ts index 9e0b27f0b..3b1830082 100644 --- a/ui/packages/api-client/src/models/comment-vo.ts +++ b/ui/packages/api-client/src/models/comment-vo.ts @@ -5,28 +5,29 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { CommentSpec } from "./comment-spec"; +import { CommentSpec } from './comment-spec'; // May contain unused imports in some cases // @ts-ignore -import { CommentStatsVo } from "./comment-stats-vo"; +import { CommentStatsVo } from './comment-stats-vo'; // May contain unused imports in some cases // @ts-ignore -import { CommentStatus } from "./comment-status"; +import { CommentStatus } from './comment-status'; // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { OwnerInfo } from "./owner-info"; +import { OwnerInfo } from './owner-info'; /** * A chunk of items. @@ -34,34 +35,35 @@ import { OwnerInfo } from "./owner-info"; * @interface CommentVo */ export interface CommentVo { - /** - * - * @type {Metadata} - * @memberof CommentVo - */ - metadata: Metadata; - /** - * - * @type {OwnerInfo} - * @memberof CommentVo - */ - owner: OwnerInfo; - /** - * - * @type {CommentSpec} - * @memberof CommentVo - */ - spec: CommentSpec; - /** - * - * @type {CommentStatsVo} - * @memberof CommentVo - */ - stats: CommentStatsVo; - /** - * - * @type {CommentStatus} - * @memberof CommentVo - */ - status?: CommentStatus; + /** + * + * @type {Metadata} + * @memberof CommentVo + */ + 'metadata': Metadata; + /** + * + * @type {OwnerInfo} + * @memberof CommentVo + */ + 'owner': OwnerInfo; + /** + * + * @type {CommentSpec} + * @memberof CommentVo + */ + 'spec': CommentSpec; + /** + * + * @type {CommentStatsVo} + * @memberof CommentVo + */ + 'stats': CommentStatsVo; + /** + * + * @type {CommentStatus} + * @memberof CommentVo + */ + 'status'?: CommentStatus; } + diff --git a/ui/packages/api-client/src/models/comment-with-reply-vo-list.ts b/ui/packages/api-client/src/models/comment-with-reply-vo-list.ts new file mode 100644 index 000000000..fb15ee8f5 --- /dev/null +++ b/ui/packages/api-client/src/models/comment-with-reply-vo-list.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Halo Next API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { CommentWithReplyVo } from './comment-with-reply-vo'; + +/** + * + * @export + * @interface CommentWithReplyVoList + */ +export interface CommentWithReplyVoList { + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof CommentWithReplyVoList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof CommentWithReplyVoList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof CommentWithReplyVoList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof CommentWithReplyVoList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof CommentWithReplyVoList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof CommentWithReplyVoList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof CommentWithReplyVoList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof CommentWithReplyVoList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof CommentWithReplyVoList + */ + 'totalPages': number; +} + diff --git a/ui/packages/api-client/src/models/comment-with-reply-vo.ts b/ui/packages/api-client/src/models/comment-with-reply-vo.ts new file mode 100644 index 000000000..5545eb45e --- /dev/null +++ b/ui/packages/api-client/src/models/comment-with-reply-vo.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Halo Next API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { CommentSpec } from './comment-spec'; +// May contain unused imports in some cases +// @ts-ignore +import { CommentStatsVo } from './comment-stats-vo'; +// May contain unused imports in some cases +// @ts-ignore +import { CommentStatus } from './comment-status'; +// May contain unused imports in some cases +// @ts-ignore +import { ListResultReplyVo } from './list-result-reply-vo'; +// May contain unused imports in some cases +// @ts-ignore +import { Metadata } from './metadata'; +// May contain unused imports in some cases +// @ts-ignore +import { OwnerInfo } from './owner-info'; + +/** + * A chunk of items. + * @export + * @interface CommentWithReplyVo + */ +export interface CommentWithReplyVo { + /** + * + * @type {Metadata} + * @memberof CommentWithReplyVo + */ + 'metadata': Metadata; + /** + * + * @type {OwnerInfo} + * @memberof CommentWithReplyVo + */ + 'owner': OwnerInfo; + /** + * + * @type {ListResultReplyVo} + * @memberof CommentWithReplyVo + */ + 'replies'?: ListResultReplyVo; + /** + * + * @type {CommentSpec} + * @memberof CommentWithReplyVo + */ + 'spec': CommentSpec; + /** + * + * @type {CommentStatsVo} + * @memberof CommentWithReplyVo + */ + 'stats': CommentStatsVo; + /** + * + * @type {CommentStatus} + * @memberof CommentWithReplyVo + */ + 'status'?: CommentStatus; +} + diff --git a/ui/packages/api-client/src/models/comment.ts b/ui/packages/api-client/src/models/comment.ts index 344c14bad..fc4a3c652 100644 --- a/ui/packages/api-client/src/models/comment.ts +++ b/ui/packages/api-client/src/models/comment.ts @@ -5,57 +5,59 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { CommentSpec } from "./comment-spec"; +import { CommentSpec } from './comment-spec'; // May contain unused imports in some cases // @ts-ignore -import { CommentStatus } from "./comment-status"; +import { CommentStatus } from './comment-status'; // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; /** - * + * * @export * @interface Comment */ export interface Comment { - /** - * - * @type {string} - * @memberof Comment - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof Comment - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Comment - */ - metadata: Metadata; - /** - * - * @type {CommentSpec} - * @memberof Comment - */ - spec: CommentSpec; - /** - * - * @type {CommentStatus} - * @memberof Comment - */ - status?: CommentStatus; + /** + * + * @type {string} + * @memberof Comment + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof Comment + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Comment + */ + 'metadata': Metadata; + /** + * + * @type {CommentSpec} + * @memberof Comment + */ + 'spec': CommentSpec; + /** + * + * @type {CommentStatus} + * @memberof Comment + */ + 'status'?: CommentStatus; } + diff --git a/ui/packages/api-client/src/models/condition.ts b/ui/packages/api-client/src/models/condition.ts index 500c2e8c9..305407ae4 100644 --- a/ui/packages/api-client/src/models/condition.ts +++ b/ui/packages/api-client/src/models/condition.ts @@ -5,56 +5,59 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface Condition */ export interface Condition { - /** - * - * @type {string} - * @memberof Condition - */ - lastTransitionTime: string; - /** - * - * @type {string} - * @memberof Condition - */ - message: string; - /** - * - * @type {string} - * @memberof Condition - */ - reason: string; - /** - * - * @type {string} - * @memberof Condition - */ - status: ConditionStatusEnum; - /** - * - * @type {string} - * @memberof Condition - */ - type: string; + /** + * + * @type {string} + * @memberof Condition + */ + 'lastTransitionTime': string; + /** + * + * @type {string} + * @memberof Condition + */ + 'message': string; + /** + * + * @type {string} + * @memberof Condition + */ + 'reason': string; + /** + * + * @type {string} + * @memberof Condition + */ + 'status': ConditionStatusEnum; + /** + * + * @type {string} + * @memberof Condition + */ + 'type': string; } export const ConditionStatusEnum = { - True: "TRUE", - False: "FALSE", - Unknown: "UNKNOWN", + True: 'TRUE', + False: 'FALSE', + Unknown: 'UNKNOWN' } as const; -export type ConditionStatusEnum = - (typeof ConditionStatusEnum)[keyof typeof ConditionStatusEnum]; +export type ConditionStatusEnum = typeof ConditionStatusEnum[keyof typeof ConditionStatusEnum]; + + diff --git a/ui/packages/api-client/src/models/config-map-key-ref.ts b/ui/packages/api-client/src/models/config-map-key-ref.ts deleted file mode 100644 index 245dfc99b..000000000 --- a/ui/packages/api-client/src/models/config-map-key-ref.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Halo Next API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface ConfigMapKeyRef - */ -export interface ConfigMapKeyRef { - /** - * - * @type {string} - * @memberof ConfigMapKeyRef - */ - key: string; - /** - * - * @type {string} - * @memberof ConfigMapKeyRef - */ - name: string; -} diff --git a/ui/packages/api-client/src/models/config-map-list.ts b/ui/packages/api-client/src/models/config-map-list.ts index bea819d9c..9563ca05a 100644 --- a/ui/packages/api-client/src/models/config-map-list.ts +++ b/ui/packages/api-client/src/models/config-map-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ConfigMap } from "./config-map"; +import { ConfigMap } from './config-map'; /** - * + * * @export * @interface ConfigMapList */ export interface ConfigMapList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof ConfigMapList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ConfigMapList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ConfigMapList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof ConfigMapList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof ConfigMapList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ConfigMapList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ConfigMapList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof ConfigMapList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof ConfigMapList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof ConfigMapList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ConfigMapList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ConfigMapList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof ConfigMapList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof ConfigMapList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ConfigMapList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ConfigMapList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof ConfigMapList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof ConfigMapList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/config-map-ref.ts b/ui/packages/api-client/src/models/config-map-ref.ts index 825ba947a..1ce430538 100644 --- a/ui/packages/api-client/src/models/config-map-ref.ts +++ b/ui/packages/api-client/src/models/config-map-ref.ts @@ -5,23 +5,26 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface ConfigMapRef */ export interface ConfigMapRef { - /** - * - * @type {string} - * @memberof ConfigMapRef - */ - name: string; + /** + * + * @type {string} + * @memberof ConfigMapRef + */ + 'name': string; } + diff --git a/ui/packages/api-client/src/models/config-map.ts b/ui/packages/api-client/src/models/config-map.ts index bc2613090..fd0f16902 100644 --- a/ui/packages/api-client/src/models/config-map.ts +++ b/ui/packages/api-client/src/models/config-map.ts @@ -5,45 +5,47 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; /** - * + * * @export * @interface ConfigMap */ export interface ConfigMap { - /** - * - * @type {string} - * @memberof ConfigMap - */ - apiVersion: string; - /** - * - * @type {{ [key: string]: string; }} - * @memberof ConfigMap - */ - data?: { [key: string]: string }; - /** - * - * @type {string} - * @memberof ConfigMap - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof ConfigMap - */ - metadata: Metadata; + /** + * + * @type {string} + * @memberof ConfigMap + */ + 'apiVersion': string; + /** + * + * @type {{ [key: string]: string; }} + * @memberof ConfigMap + */ + 'data'?: { [key: string]: string; }; + /** + * + * @type {string} + * @memberof ConfigMap + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof ConfigMap + */ + 'metadata': Metadata; } + diff --git a/ui/packages/api-client/src/models/content-vo.ts b/ui/packages/api-client/src/models/content-vo.ts index 543071584..6303321e0 100644 --- a/ui/packages/api-client/src/models/content-vo.ts +++ b/ui/packages/api-client/src/models/content-vo.ts @@ -5,29 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface ContentVo */ export interface ContentVo { - /** - * - * @type {string} - * @memberof ContentVo - */ - content?: string; - /** - * - * @type {string} - * @memberof ContentVo - */ - raw?: string; + /** + * + * @type {string} + * @memberof ContentVo + */ + 'content'?: string; + /** + * + * @type {string} + * @memberof ContentVo + */ + 'raw'?: string; } + diff --git a/ui/packages/api-client/src/models/content-wrapper.ts b/ui/packages/api-client/src/models/content-wrapper.ts index e879299fa..b665f12f1 100644 --- a/ui/packages/api-client/src/models/content-wrapper.ts +++ b/ui/packages/api-client/src/models/content-wrapper.ts @@ -5,41 +5,44 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface ContentWrapper */ export interface ContentWrapper { - /** - * - * @type {string} - * @memberof ContentWrapper - */ - content?: string; - /** - * - * @type {string} - * @memberof ContentWrapper - */ - raw?: string; - /** - * - * @type {string} - * @memberof ContentWrapper - */ - rawType?: string; - /** - * - * @type {string} - * @memberof ContentWrapper - */ - snapshotName?: string; + /** + * + * @type {string} + * @memberof ContentWrapper + */ + 'content'?: string; + /** + * + * @type {string} + * @memberof ContentWrapper + */ + 'raw'?: string; + /** + * + * @type {string} + * @memberof ContentWrapper + */ + 'rawType'?: string; + /** + * + * @type {string} + * @memberof ContentWrapper + */ + 'snapshotName'?: string; } + diff --git a/ui/packages/api-client/src/models/content.ts b/ui/packages/api-client/src/models/content.ts index 373069a59..7a03fdf7f 100644 --- a/ui/packages/api-client/src/models/content.ts +++ b/ui/packages/api-client/src/models/content.ts @@ -5,35 +5,38 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface Content */ export interface Content { - /** - * - * @type {string} - * @memberof Content - */ - content?: string; - /** - * - * @type {string} - * @memberof Content - */ - raw?: string; - /** - * - * @type {string} - * @memberof Content - */ - rawType?: string; + /** + * + * @type {string} + * @memberof Content + */ + 'content'?: string; + /** + * + * @type {string} + * @memberof Content + */ + 'raw'?: string; + /** + * + * @type {string} + * @memberof Content + */ + 'rawType'?: string; } + diff --git a/ui/packages/api-client/src/models/contributor-vo.ts b/ui/packages/api-client/src/models/contributor-vo.ts index ad59631fb..bc3e664e0 100644 --- a/ui/packages/api-client/src/models/contributor-vo.ts +++ b/ui/packages/api-client/src/models/contributor-vo.ts @@ -5,57 +5,59 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; /** - * + * * @export * @interface ContributorVo */ export interface ContributorVo { - /** - * - * @type {string} - * @memberof ContributorVo - */ - avatar?: string; - /** - * - * @type {string} - * @memberof ContributorVo - */ - bio?: string; - /** - * - * @type {string} - * @memberof ContributorVo - */ - displayName?: string; - /** - * - * @type {Metadata} - * @memberof ContributorVo - */ - metadata: Metadata; - /** - * - * @type {string} - * @memberof ContributorVo - */ - name?: string; - /** - * - * @type {string} - * @memberof ContributorVo - */ - permalink?: string; + /** + * + * @type {string} + * @memberof ContributorVo + */ + 'avatar'?: string; + /** + * + * @type {string} + * @memberof ContributorVo + */ + 'bio'?: string; + /** + * + * @type {string} + * @memberof ContributorVo + */ + 'displayName'?: string; + /** + * + * @type {Metadata} + * @memberof ContributorVo + */ + 'metadata': Metadata; + /** + * + * @type {string} + * @memberof ContributorVo + */ + 'name'?: string; + /** + * + * @type {string} + * @memberof ContributorVo + */ + 'permalink'?: string; } + diff --git a/ui/packages/api-client/src/models/contributor.ts b/ui/packages/api-client/src/models/contributor.ts index 30388c4e0..1b40941a9 100644 --- a/ui/packages/api-client/src/models/contributor.ts +++ b/ui/packages/api-client/src/models/contributor.ts @@ -5,35 +5,38 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface Contributor */ export interface Contributor { - /** - * - * @type {string} - * @memberof Contributor - */ - avatar?: string; - /** - * - * @type {string} - * @memberof Contributor - */ - displayName?: string; - /** - * - * @type {string} - * @memberof Contributor - */ - name?: string; + /** + * + * @type {string} + * @memberof Contributor + */ + 'avatar'?: string; + /** + * + * @type {string} + * @memberof Contributor + */ + 'displayName'?: string; + /** + * + * @type {string} + * @memberof Contributor + */ + 'name'?: string; } + diff --git a/ui/packages/api-client/src/models/counter-list.ts b/ui/packages/api-client/src/models/counter-list.ts index c9604bab5..f67f2829e 100644 --- a/ui/packages/api-client/src/models/counter-list.ts +++ b/ui/packages/api-client/src/models/counter-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Counter } from "./counter"; +import { Counter } from './counter'; /** - * + * * @export * @interface CounterList */ export interface CounterList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof CounterList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof CounterList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof CounterList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof CounterList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof CounterList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof CounterList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof CounterList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof CounterList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof CounterList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof CounterList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof CounterList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof CounterList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof CounterList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof CounterList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof CounterList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof CounterList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof CounterList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof CounterList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/counter-request.ts b/ui/packages/api-client/src/models/counter-request.ts index 989c4721f..270097813 100644 --- a/ui/packages/api-client/src/models/counter-request.ts +++ b/ui/packages/api-client/src/models/counter-request.ts @@ -5,59 +5,62 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface CounterRequest */ export interface CounterRequest { - /** - * - * @type {string} - * @memberof CounterRequest - */ - group?: string; - /** - * - * @type {string} - * @memberof CounterRequest - */ - hostname?: string; - /** - * - * @type {string} - * @memberof CounterRequest - */ - language?: string; - /** - * - * @type {string} - * @memberof CounterRequest - */ - name?: string; - /** - * - * @type {string} - * @memberof CounterRequest - */ - plural?: string; - /** - * - * @type {string} - * @memberof CounterRequest - */ - referrer?: string; - /** - * - * @type {string} - * @memberof CounterRequest - */ - screen?: string; + /** + * + * @type {string} + * @memberof CounterRequest + */ + 'group'?: string; + /** + * + * @type {string} + * @memberof CounterRequest + */ + 'hostname'?: string; + /** + * + * @type {string} + * @memberof CounterRequest + */ + 'language'?: string; + /** + * + * @type {string} + * @memberof CounterRequest + */ + 'name'?: string; + /** + * + * @type {string} + * @memberof CounterRequest + */ + 'plural'?: string; + /** + * + * @type {string} + * @memberof CounterRequest + */ + 'referrer'?: string; + /** + * + * @type {string} + * @memberof CounterRequest + */ + 'screen'?: string; } + diff --git a/ui/packages/api-client/src/models/counter.ts b/ui/packages/api-client/src/models/counter.ts index 76943f8cc..cf9ea78ad 100644 --- a/ui/packages/api-client/src/models/counter.ts +++ b/ui/packages/api-client/src/models/counter.ts @@ -5,69 +5,71 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; /** - * + * * @export * @interface Counter */ export interface Counter { - /** - * - * @type {string} - * @memberof Counter - */ - apiVersion: string; - /** - * - * @type {number} - * @memberof Counter - */ - approvedComment?: number; - /** - * - * @type {number} - * @memberof Counter - */ - downvote?: number; - /** - * - * @type {string} - * @memberof Counter - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Counter - */ - metadata: Metadata; - /** - * - * @type {number} - * @memberof Counter - */ - totalComment?: number; - /** - * - * @type {number} - * @memberof Counter - */ - upvote?: number; - /** - * - * @type {number} - * @memberof Counter - */ - visit?: number; + /** + * + * @type {string} + * @memberof Counter + */ + 'apiVersion': string; + /** + * + * @type {number} + * @memberof Counter + */ + 'approvedComment'?: number; + /** + * + * @type {number} + * @memberof Counter + */ + 'downvote'?: number; + /** + * + * @type {string} + * @memberof Counter + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Counter + */ + 'metadata': Metadata; + /** + * + * @type {number} + * @memberof Counter + */ + 'totalComment'?: number; + /** + * + * @type {number} + * @memberof Counter + */ + 'upvote'?: number; + /** + * + * @type {number} + * @memberof Counter + */ + 'visit'?: number; } + diff --git a/ui/packages/api-client/src/models/create-user-request.ts b/ui/packages/api-client/src/models/create-user-request.ts index f9e26d0cc..4144f9076 100644 --- a/ui/packages/api-client/src/models/create-user-request.ts +++ b/ui/packages/api-client/src/models/create-user-request.ts @@ -5,71 +5,74 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface CreateUserRequest */ export interface CreateUserRequest { - /** - * - * @type {{ [key: string]: string; }} - * @memberof CreateUserRequest - */ - annotations?: { [key: string]: string }; - /** - * - * @type {string} - * @memberof CreateUserRequest - */ - avatar?: string; - /** - * - * @type {string} - * @memberof CreateUserRequest - */ - bio?: string; - /** - * - * @type {string} - * @memberof CreateUserRequest - */ - displayName?: string; - /** - * - * @type {string} - * @memberof CreateUserRequest - */ - email: string; - /** - * - * @type {string} - * @memberof CreateUserRequest - */ - name: string; - /** - * - * @type {string} - * @memberof CreateUserRequest - */ - password?: string; - /** - * - * @type {string} - * @memberof CreateUserRequest - */ - phone?: string; - /** - * - * @type {Array} - * @memberof CreateUserRequest - */ - roles?: Array; + /** + * + * @type {{ [key: string]: string; }} + * @memberof CreateUserRequest + */ + 'annotations'?: { [key: string]: string; }; + /** + * + * @type {string} + * @memberof CreateUserRequest + */ + 'avatar'?: string; + /** + * + * @type {string} + * @memberof CreateUserRequest + */ + 'bio'?: string; + /** + * + * @type {string} + * @memberof CreateUserRequest + */ + 'displayName'?: string; + /** + * + * @type {string} + * @memberof CreateUserRequest + */ + 'email': string; + /** + * + * @type {string} + * @memberof CreateUserRequest + */ + 'name': string; + /** + * + * @type {string} + * @memberof CreateUserRequest + */ + 'password'?: string; + /** + * + * @type {string} + * @memberof CreateUserRequest + */ + 'phone'?: string; + /** + * + * @type {Array} + * @memberof CreateUserRequest + */ + 'roles'?: Array; } + diff --git a/ui/packages/api-client/src/models/custom-templates.ts b/ui/packages/api-client/src/models/custom-templates.ts index fb0d54617..c13cb1031 100644 --- a/ui/packages/api-client/src/models/custom-templates.ts +++ b/ui/packages/api-client/src/models/custom-templates.ts @@ -5,39 +5,41 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { TemplateDescriptor } from "./template-descriptor"; +import { TemplateDescriptor } from './template-descriptor'; /** - * + * * @export * @interface CustomTemplates */ export interface CustomTemplates { - /** - * - * @type {Array} - * @memberof CustomTemplates - */ - category?: Array; - /** - * - * @type {Array} - * @memberof CustomTemplates - */ - page?: Array; - /** - * - * @type {Array} - * @memberof CustomTemplates - */ - post?: Array; + /** + * + * @type {Array} + * @memberof CustomTemplates + */ + 'category'?: Array; + /** + * + * @type {Array} + * @memberof CustomTemplates + */ + 'page'?: Array; + /** + * + * @type {Array} + * @memberof CustomTemplates + */ + 'post'?: Array; } + diff --git a/ui/packages/api-client/src/models/dashboard-stats.ts b/ui/packages/api-client/src/models/dashboard-stats.ts index 987176c4a..33cce23c6 100644 --- a/ui/packages/api-client/src/models/dashboard-stats.ts +++ b/ui/packages/api-client/src/models/dashboard-stats.ts @@ -5,53 +5,56 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface DashboardStats */ export interface DashboardStats { - /** - * - * @type {number} - * @memberof DashboardStats - */ - approvedComments?: number; - /** - * - * @type {number} - * @memberof DashboardStats - */ - comments?: number; - /** - * - * @type {number} - * @memberof DashboardStats - */ - posts?: number; - /** - * - * @type {number} - * @memberof DashboardStats - */ - upvotes?: number; - /** - * - * @type {number} - * @memberof DashboardStats - */ - users?: number; - /** - * - * @type {number} - * @memberof DashboardStats - */ - visits?: number; + /** + * + * @type {number} + * @memberof DashboardStats + */ + 'approvedComments'?: number; + /** + * + * @type {number} + * @memberof DashboardStats + */ + 'comments'?: number; + /** + * + * @type {number} + * @memberof DashboardStats + */ + 'posts'?: number; + /** + * + * @type {number} + * @memberof DashboardStats + */ + 'upvotes'?: number; + /** + * + * @type {number} + * @memberof DashboardStats + */ + 'users'?: number; + /** + * + * @type {number} + * @memberof DashboardStats + */ + 'visits'?: number; } + diff --git a/ui/packages/api-client/src/models/detailed-user.ts b/ui/packages/api-client/src/models/detailed-user.ts index 4b6e1de59..7de07cb0c 100644 --- a/ui/packages/api-client/src/models/detailed-user.ts +++ b/ui/packages/api-client/src/models/detailed-user.ts @@ -5,36 +5,38 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Role } from "./role"; +import { Role } from './role'; // May contain unused imports in some cases // @ts-ignore -import { User } from "./user"; +import { User } from './user'; /** - * + * * @export * @interface DetailedUser */ export interface DetailedUser { - /** - * - * @type {Array} - * @memberof DetailedUser - */ - roles: Array; - /** - * - * @type {User} - * @memberof DetailedUser - */ - user: User; + /** + * + * @type {Array} + * @memberof DetailedUser + */ + 'roles': Array; + /** + * + * @type {User} + * @memberof DetailedUser + */ + 'user': User; } + diff --git a/ui/packages/api-client/src/models/email-config-validation-request.ts b/ui/packages/api-client/src/models/email-config-validation-request.ts new file mode 100644 index 000000000..8eab2a6c9 --- /dev/null +++ b/ui/packages/api-client/src/models/email-config-validation-request.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Halo Next API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface EmailConfigValidationRequest + */ +export interface EmailConfigValidationRequest { + /** + * + * @type {string} + * @memberof EmailConfigValidationRequest + */ + 'displayName'?: string; + /** + * + * @type {boolean} + * @memberof EmailConfigValidationRequest + */ + 'enable'?: boolean; + /** + * + * @type {string} + * @memberof EmailConfigValidationRequest + */ + 'encryption'?: string; + /** + * + * @type {string} + * @memberof EmailConfigValidationRequest + */ + 'host'?: string; + /** + * + * @type {string} + * @memberof EmailConfigValidationRequest + */ + 'password'?: string; + /** + * + * @type {number} + * @memberof EmailConfigValidationRequest + */ + 'port'?: number; + /** + * + * @type {string} + * @memberof EmailConfigValidationRequest + */ + 'sender'?: string; + /** + * + * @type {string} + * @memberof EmailConfigValidationRequest + */ + 'username'?: string; +} + diff --git a/ui/packages/api-client/src/models/email-verify-request.ts b/ui/packages/api-client/src/models/email-verify-request.ts index 9c9212136..6ec7c5eef 100644 --- a/ui/packages/api-client/src/models/email-verify-request.ts +++ b/ui/packages/api-client/src/models/email-verify-request.ts @@ -5,23 +5,26 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface EmailVerifyRequest */ export interface EmailVerifyRequest { - /** - * - * @type {string} - * @memberof EmailVerifyRequest - */ - email: string; + /** + * + * @type {string} + * @memberof EmailVerifyRequest + */ + 'email': string; } + diff --git a/ui/packages/api-client/src/models/excerpt.ts b/ui/packages/api-client/src/models/excerpt.ts index 079375280..f5c1010c0 100644 --- a/ui/packages/api-client/src/models/excerpt.ts +++ b/ui/packages/api-client/src/models/excerpt.ts @@ -5,29 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface Excerpt */ export interface Excerpt { - /** - * - * @type {boolean} - * @memberof Excerpt - */ - autoGenerate: boolean; - /** - * - * @type {string} - * @memberof Excerpt - */ - raw?: string; + /** + * + * @type {boolean} + * @memberof Excerpt + */ + 'autoGenerate': boolean; + /** + * + * @type {string} + * @memberof Excerpt + */ + 'raw'?: string; } + diff --git a/ui/packages/api-client/src/models/extension-definition-list.ts b/ui/packages/api-client/src/models/extension-definition-list.ts index 4db2d262e..34201891c 100644 --- a/ui/packages/api-client/src/models/extension-definition-list.ts +++ b/ui/packages/api-client/src/models/extension-definition-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ExtensionDefinition } from "./extension-definition"; +import { ExtensionDefinition } from './extension-definition'; /** - * + * * @export * @interface ExtensionDefinitionList */ export interface ExtensionDefinitionList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof ExtensionDefinitionList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ExtensionDefinitionList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ExtensionDefinitionList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof ExtensionDefinitionList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof ExtensionDefinitionList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ExtensionDefinitionList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ExtensionDefinitionList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof ExtensionDefinitionList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof ExtensionDefinitionList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof ExtensionDefinitionList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ExtensionDefinitionList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ExtensionDefinitionList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof ExtensionDefinitionList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof ExtensionDefinitionList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ExtensionDefinitionList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ExtensionDefinitionList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof ExtensionDefinitionList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof ExtensionDefinitionList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/extension-definition.ts b/ui/packages/api-client/src/models/extension-definition.ts index c905626d4..1c2809928 100644 --- a/ui/packages/api-client/src/models/extension-definition.ts +++ b/ui/packages/api-client/src/models/extension-definition.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ExtensionSpec } from "./extension-spec"; +import { ExtensionSpec } from './extension-spec'; // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; /** - * + * * @export * @interface ExtensionDefinition */ export interface ExtensionDefinition { - /** - * - * @type {string} - * @memberof ExtensionDefinition - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof ExtensionDefinition - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof ExtensionDefinition - */ - metadata: Metadata; - /** - * - * @type {ExtensionSpec} - * @memberof ExtensionDefinition - */ - spec: ExtensionSpec; + /** + * + * @type {string} + * @memberof ExtensionDefinition + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof ExtensionDefinition + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof ExtensionDefinition + */ + 'metadata': Metadata; + /** + * + * @type {ExtensionSpec} + * @memberof ExtensionDefinition + */ + 'spec': ExtensionSpec; } + diff --git a/ui/packages/api-client/src/models/extension-point-definition-list.ts b/ui/packages/api-client/src/models/extension-point-definition-list.ts index 2ea964e0e..398348ba3 100644 --- a/ui/packages/api-client/src/models/extension-point-definition-list.ts +++ b/ui/packages/api-client/src/models/extension-point-definition-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ExtensionPointDefinition } from "./extension-point-definition"; +import { ExtensionPointDefinition } from './extension-point-definition'; /** - * + * * @export * @interface ExtensionPointDefinitionList */ export interface ExtensionPointDefinitionList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof ExtensionPointDefinitionList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ExtensionPointDefinitionList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ExtensionPointDefinitionList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof ExtensionPointDefinitionList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof ExtensionPointDefinitionList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ExtensionPointDefinitionList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ExtensionPointDefinitionList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof ExtensionPointDefinitionList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof ExtensionPointDefinitionList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof ExtensionPointDefinitionList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ExtensionPointDefinitionList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ExtensionPointDefinitionList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof ExtensionPointDefinitionList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof ExtensionPointDefinitionList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ExtensionPointDefinitionList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ExtensionPointDefinitionList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof ExtensionPointDefinitionList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof ExtensionPointDefinitionList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/extension-point-definition.ts b/ui/packages/api-client/src/models/extension-point-definition.ts index e94653e04..f9315b408 100644 --- a/ui/packages/api-client/src/models/extension-point-definition.ts +++ b/ui/packages/api-client/src/models/extension-point-definition.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ExtensionPointSpec } from "./extension-point-spec"; +import { ExtensionPointSpec } from './extension-point-spec'; // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; /** - * + * * @export * @interface ExtensionPointDefinition */ export interface ExtensionPointDefinition { - /** - * - * @type {string} - * @memberof ExtensionPointDefinition - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof ExtensionPointDefinition - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof ExtensionPointDefinition - */ - metadata: Metadata; - /** - * - * @type {ExtensionPointSpec} - * @memberof ExtensionPointDefinition - */ - spec: ExtensionPointSpec; + /** + * + * @type {string} + * @memberof ExtensionPointDefinition + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof ExtensionPointDefinition + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof ExtensionPointDefinition + */ + 'metadata': Metadata; + /** + * + * @type {ExtensionPointSpec} + * @memberof ExtensionPointDefinition + */ + 'spec': ExtensionPointSpec; } + diff --git a/ui/packages/api-client/src/models/extension-point-spec.ts b/ui/packages/api-client/src/models/extension-point-spec.ts index 56fc05106..76ae4068c 100644 --- a/ui/packages/api-client/src/models/extension-point-spec.ts +++ b/ui/packages/api-client/src/models/extension-point-spec.ts @@ -5,55 +5,58 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface ExtensionPointSpec */ export interface ExtensionPointSpec { - /** - * - * @type {string} - * @memberof ExtensionPointSpec - */ - className: string; - /** - * - * @type {string} - * @memberof ExtensionPointSpec - */ - description?: string; - /** - * - * @type {string} - * @memberof ExtensionPointSpec - */ - displayName: string; - /** - * - * @type {string} - * @memberof ExtensionPointSpec - */ - icon?: string; - /** - * - * @type {string} - * @memberof ExtensionPointSpec - */ - type: ExtensionPointSpecTypeEnum; + /** + * + * @type {string} + * @memberof ExtensionPointSpec + */ + 'className': string; + /** + * + * @type {string} + * @memberof ExtensionPointSpec + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof ExtensionPointSpec + */ + 'displayName': string; + /** + * + * @type {string} + * @memberof ExtensionPointSpec + */ + 'icon'?: string; + /** + * + * @type {string} + * @memberof ExtensionPointSpec + */ + 'type': ExtensionPointSpecTypeEnum; } export const ExtensionPointSpecTypeEnum = { - Singleton: "SINGLETON", - MultiInstance: "MULTI_INSTANCE", + Singleton: 'SINGLETON', + MultiInstance: 'MULTI_INSTANCE' } as const; -export type ExtensionPointSpecTypeEnum = - (typeof ExtensionPointSpecTypeEnum)[keyof typeof ExtensionPointSpecTypeEnum]; +export type ExtensionPointSpecTypeEnum = typeof ExtensionPointSpecTypeEnum[keyof typeof ExtensionPointSpecTypeEnum]; + + diff --git a/ui/packages/api-client/src/models/extension-spec.ts b/ui/packages/api-client/src/models/extension-spec.ts index 8792d77b7..15c72cd0b 100644 --- a/ui/packages/api-client/src/models/extension-spec.ts +++ b/ui/packages/api-client/src/models/extension-spec.ts @@ -5,47 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface ExtensionSpec */ export interface ExtensionSpec { - /** - * - * @type {string} - * @memberof ExtensionSpec - */ - className: string; - /** - * - * @type {string} - * @memberof ExtensionSpec - */ - description?: string; - /** - * - * @type {string} - * @memberof ExtensionSpec - */ - displayName: string; - /** - * - * @type {string} - * @memberof ExtensionSpec - */ - extensionPointName: string; - /** - * - * @type {string} - * @memberof ExtensionSpec - */ - icon?: string; + /** + * + * @type {string} + * @memberof ExtensionSpec + */ + 'className': string; + /** + * + * @type {string} + * @memberof ExtensionSpec + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof ExtensionSpec + */ + 'displayName': string; + /** + * + * @type {string} + * @memberof ExtensionSpec + */ + 'extensionPointName': string; + /** + * + * @type {string} + * @memberof ExtensionSpec + */ + 'icon'?: string; } + diff --git a/ui/packages/api-client/src/models/extension.ts b/ui/packages/api-client/src/models/extension.ts index 03f13e9dc..9d1100c5f 100644 --- a/ui/packages/api-client/src/models/extension.ts +++ b/ui/packages/api-client/src/models/extension.ts @@ -5,39 +5,41 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; /** - * + * * @export * @interface Extension */ export interface Extension { - /** - * - * @type {string} - * @memberof Extension - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof Extension - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Extension - */ - metadata: Metadata; + /** + * + * @type {string} + * @memberof Extension + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof Extension + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Extension + */ + 'metadata': Metadata; } + diff --git a/ui/packages/api-client/src/models/file-reverse-proxy-provider.ts b/ui/packages/api-client/src/models/file-reverse-proxy-provider.ts index 74a9cd80d..bf23114e7 100644 --- a/ui/packages/api-client/src/models/file-reverse-proxy-provider.ts +++ b/ui/packages/api-client/src/models/file-reverse-proxy-provider.ts @@ -5,29 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface FileReverseProxyProvider */ export interface FileReverseProxyProvider { - /** - * - * @type {string} - * @memberof FileReverseProxyProvider - */ - directory?: string; - /** - * - * @type {string} - * @memberof FileReverseProxyProvider - */ - filename?: string; + /** + * + * @type {string} + * @memberof FileReverseProxyProvider + */ + 'directory'?: string; + /** + * + * @type {string} + * @memberof FileReverseProxyProvider + */ + 'filename'?: string; } + diff --git a/ui/packages/api-client/src/models/grant-request.ts b/ui/packages/api-client/src/models/grant-request.ts index 075dbaa40..77f1fbfcc 100644 --- a/ui/packages/api-client/src/models/grant-request.ts +++ b/ui/packages/api-client/src/models/grant-request.ts @@ -5,23 +5,26 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface GrantRequest */ export interface GrantRequest { - /** - * - * @type {Array} - * @memberof GrantRequest - */ - roles?: Array; + /** + * + * @type {Array} + * @memberof GrantRequest + */ + 'roles'?: Array; } + diff --git a/ui/packages/api-client/src/models/group-kind.ts b/ui/packages/api-client/src/models/group-kind.ts index ad0e7a4d3..be2ce71ed 100644 --- a/ui/packages/api-client/src/models/group-kind.ts +++ b/ui/packages/api-client/src/models/group-kind.ts @@ -5,29 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface GroupKind */ export interface GroupKind { - /** - * - * @type {string} - * @memberof GroupKind - */ - group?: string; - /** - * - * @type {string} - * @memberof GroupKind - */ - kind?: string; + /** + * + * @type {string} + * @memberof GroupKind + */ + 'group'?: string; + /** + * + * @type {string} + * @memberof GroupKind + */ + 'kind'?: string; } + diff --git a/ui/packages/api-client/src/models/group-list.ts b/ui/packages/api-client/src/models/group-list.ts index 33357800a..857329432 100644 --- a/ui/packages/api-client/src/models/group-list.ts +++ b/ui/packages/api-client/src/models/group-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Group } from "./group"; +import { Group } from './group'; /** - * + * * @export * @interface GroupList */ export interface GroupList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof GroupList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof GroupList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof GroupList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof GroupList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof GroupList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof GroupList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof GroupList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof GroupList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof GroupList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof GroupList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof GroupList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof GroupList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof GroupList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof GroupList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof GroupList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof GroupList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof GroupList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof GroupList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/group-spec.ts b/ui/packages/api-client/src/models/group-spec.ts index 60dbaab99..fd7b9a565 100644 --- a/ui/packages/api-client/src/models/group-spec.ts +++ b/ui/packages/api-client/src/models/group-spec.ts @@ -5,23 +5,26 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface GroupSpec */ export interface GroupSpec { - /** - * Display name of group - * @type {string} - * @memberof GroupSpec - */ - displayName: string; + /** + * Display name of group + * @type {string} + * @memberof GroupSpec + */ + 'displayName': string; } + diff --git a/ui/packages/api-client/src/models/group-status.ts b/ui/packages/api-client/src/models/group-status.ts index 2ca0b04cf..468a555c1 100644 --- a/ui/packages/api-client/src/models/group-status.ts +++ b/ui/packages/api-client/src/models/group-status.ts @@ -5,29 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface GroupStatus */ export interface GroupStatus { - /** - * Total of attachments under the current group - * @type {number} - * @memberof GroupStatus - */ - totalAttachments?: number; - /** - * Update timestamp of the group - * @type {string} - * @memberof GroupStatus - */ - updateTimestamp?: string; + /** + * Total of attachments under the current group + * @type {number} + * @memberof GroupStatus + */ + 'totalAttachments'?: number; + /** + * Update timestamp of the group + * @type {string} + * @memberof GroupStatus + */ + 'updateTimestamp'?: string; } + diff --git a/ui/packages/api-client/src/models/group.ts b/ui/packages/api-client/src/models/group.ts index c74ec0846..811e52b47 100644 --- a/ui/packages/api-client/src/models/group.ts +++ b/ui/packages/api-client/src/models/group.ts @@ -5,57 +5,59 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { GroupSpec } from "./group-spec"; +import { GroupSpec } from './group-spec'; // May contain unused imports in some cases // @ts-ignore -import { GroupStatus } from "./group-status"; +import { GroupStatus } from './group-status'; // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; /** - * + * * @export * @interface Group */ export interface Group { - /** - * - * @type {string} - * @memberof Group - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof Group - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Group - */ - metadata: Metadata; - /** - * - * @type {GroupSpec} - * @memberof Group - */ - spec: GroupSpec; - /** - * - * @type {GroupStatus} - * @memberof Group - */ - status?: GroupStatus; + /** + * + * @type {string} + * @memberof Group + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof Group + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Group + */ + 'metadata': Metadata; + /** + * + * @type {GroupSpec} + * @memberof Group + */ + 'spec': GroupSpec; + /** + * + * @type {GroupStatus} + * @memberof Group + */ + 'status'?: GroupStatus; } + diff --git a/ui/packages/api-client/src/models/index.ts b/ui/packages/api-client/src/models/index.ts index 86ce65eb2..d5c688d35 100644 --- a/ui/packages/api-client/src/models/index.ts +++ b/ui/packages/api-client/src/models/index.ts @@ -1,222 +1,226 @@ -export * from "./annotation-setting"; -export * from "./annotation-setting-list"; -export * from "./annotation-setting-spec"; -export * from "./attachment"; -export * from "./attachment-list"; -export * from "./attachment-spec"; -export * from "./attachment-status"; -export * from "./auth-provider"; -export * from "./auth-provider-list"; -export * from "./auth-provider-spec"; -export * from "./author"; -export * from "./backup"; -export * from "./backup-list"; -export * from "./backup-spec"; -export * from "./backup-status"; -export * from "./category"; -export * from "./category-list"; -export * from "./category-spec"; -export * from "./category-status"; -export * from "./category-vo"; -export * from "./category-vo-list"; -export * from "./change-password-request"; -export * from "./comment"; -export * from "./comment-email-owner"; -export * from "./comment-list"; -export * from "./comment-owner"; -export * from "./comment-request"; -export * from "./comment-spec"; -export * from "./comment-stats"; -export * from "./comment-stats-vo"; -export * from "./comment-status"; -export * from "./comment-vo"; -export * from "./comment-vo-list"; -export * from "./condition"; -export * from "./config-map"; -export * from "./config-map-list"; -export * from "./config-map-ref"; -export * from "./content"; -export * from "./content-vo"; -export * from "./content-wrapper"; -export * from "./contributor"; -export * from "./contributor-vo"; -export * from "./counter"; -export * from "./counter-list"; -export * from "./counter-request"; -export * from "./create-user-request"; -export * from "./custom-templates"; -export * from "./dashboard-stats"; -export * from "./detailed-user"; -export * from "./email-verify-request"; -export * from "./excerpt"; -export * from "./extension"; -export * from "./extension-definition"; -export * from "./extension-definition-list"; -export * from "./extension-point-definition"; -export * from "./extension-point-definition-list"; -export * from "./extension-point-spec"; -export * from "./extension-spec"; -export * from "./file-reverse-proxy-provider"; -export * from "./grant-request"; -export * from "./group"; -export * from "./group-kind"; -export * from "./group-list"; -export * from "./group-spec"; -export * from "./group-status"; -export * from "./install-from-uri-request"; -export * from "./interest-reason"; -export * from "./interest-reason-subject"; -export * from "./license"; -export * from "./listed-auth-provider"; -export * from "./listed-comment"; -export * from "./listed-comment-list"; -export * from "./listed-post"; -export * from "./listed-post-list"; -export * from "./listed-post-vo"; -export * from "./listed-post-vo-list"; -export * from "./listed-reply"; -export * from "./listed-reply-list"; -export * from "./listed-single-page"; -export * from "./listed-single-page-list"; -export * from "./listed-single-page-vo"; -export * from "./listed-single-page-vo-list"; -export * from "./listed-user"; -export * from "./login-history"; -export * from "./mark-specified-request"; -export * from "./menu"; -export * from "./menu-item"; -export * from "./menu-item-list"; -export * from "./menu-item-spec"; -export * from "./menu-item-status"; -export * from "./menu-item-vo"; -export * from "./menu-list"; -export * from "./menu-spec"; -export * from "./menu-vo"; -export * from "./metadata"; -export * from "./navigation-post-vo"; -export * from "./notification"; -export * from "./notification-list"; -export * from "./notification-spec"; -export * from "./notification-template"; -export * from "./notification-template-list"; -export * from "./notification-template-spec"; -export * from "./notifier-descriptor"; -export * from "./notifier-descriptor-list"; -export * from "./notifier-descriptor-spec"; -export * from "./notifier-info"; -export * from "./notifier-setting-ref"; -export * from "./owner-info"; -export * from "./password-request"; -export * from "./password-reset-email-request"; -export * from "./pat-spec"; -export * from "./personal-access-token"; -export * from "./personal-access-token-list"; -export * from "./plugin"; -export * from "./plugin-author"; -export * from "./plugin-list"; -export * from "./plugin-running-state-request"; -export * from "./plugin-spec"; -export * from "./plugin-status"; -export * from "./policy"; -export * from "./policy-list"; -export * from "./policy-rule"; -export * from "./policy-spec"; -export * from "./policy-template"; -export * from "./policy-template-list"; -export * from "./policy-template-spec"; -export * from "./post"; -export * from "./post-hit"; -export * from "./post-hits"; -export * from "./post-list"; -export * from "./post-request"; -export * from "./post-spec"; -export * from "./post-status"; -export * from "./post-vo"; -export * from "./public-key-response"; -export * from "./reason"; -export * from "./reason-list"; -export * from "./reason-property"; -export * from "./reason-selector"; -export * from "./reason-spec"; -export * from "./reason-spec-attributes"; -export * from "./reason-subject"; -export * from "./reason-type"; -export * from "./reason-type-info"; -export * from "./reason-type-list"; -export * from "./reason-type-notifier-collection-request"; -export * from "./reason-type-notifier-matrix"; -export * from "./reason-type-notifier-request"; -export * from "./reason-type-spec"; -export * from "./ref"; -export * from "./register-verify-email-request"; -export * from "./reply"; -export * from "./reply-list"; -export * from "./reply-request"; -export * from "./reply-spec"; -export * from "./reply-vo"; -export * from "./reply-vo-list"; -export * from "./reset-password-request"; -export * from "./reverse-proxy"; -export * from "./reverse-proxy-list"; -export * from "./reverse-proxy-rule"; -export * from "./role"; -export * from "./role-binding"; -export * from "./role-binding-list"; -export * from "./role-list"; -export * from "./role-ref"; -export * from "./search-engine"; -export * from "./search-engine-list"; -export * from "./search-engine-spec"; -export * from "./secret"; -export * from "./secret-list"; -export * from "./setting"; -export * from "./setting-form"; -export * from "./setting-list"; -export * from "./setting-ref"; -export * from "./setting-spec"; -export * from "./sign-up-request"; -export * from "./single-page"; -export * from "./single-page-list"; -export * from "./single-page-request"; -export * from "./single-page-spec"; -export * from "./single-page-status"; -export * from "./single-page-vo"; -export * from "./site-stats-vo"; -export * from "./snap-shot-spec"; -export * from "./snapshot"; -export * from "./snapshot-list"; -export * from "./stats"; -export * from "./stats-vo"; -export * from "./subject"; -export * from "./subscription"; -export * from "./subscription-list"; -export * from "./subscription-spec"; -export * from "./subscription-subscriber"; -export * from "./system-initialization-request"; -export * from "./tag"; -export * from "./tag-list"; -export * from "./tag-spec"; -export * from "./tag-status"; -export * from "./tag-vo"; -export * from "./tag-vo-list"; -export * from "./template-content"; -export * from "./template-descriptor"; -export * from "./theme"; -export * from "./theme-list"; -export * from "./theme-spec"; -export * from "./theme-status"; -export * from "./totp-auth-link-response"; -export * from "./totp-request"; -export * from "./two-factor-auth-settings"; -export * from "./upgrade-from-uri-request"; -export * from "./user"; -export * from "./user-connection"; -export * from "./user-connection-list"; -export * from "./user-connection-spec"; -export * from "./user-endpoint-listed-user-list"; -export * from "./user-list"; -export * from "./user-permission"; -export * from "./user-spec"; -export * from "./user-status"; -export * from "./verify-code-request"; -export * from "./vote-request"; +export * from './annotation-setting'; +export * from './annotation-setting-list'; +export * from './annotation-setting-spec'; +export * from './attachment'; +export * from './attachment-list'; +export * from './attachment-spec'; +export * from './attachment-status'; +export * from './auth-provider'; +export * from './auth-provider-list'; +export * from './auth-provider-spec'; +export * from './author'; +export * from './backup'; +export * from './backup-list'; +export * from './backup-spec'; +export * from './backup-status'; +export * from './category'; +export * from './category-list'; +export * from './category-spec'; +export * from './category-status'; +export * from './category-vo'; +export * from './category-vo-list'; +export * from './change-password-request'; +export * from './comment'; +export * from './comment-email-owner'; +export * from './comment-list'; +export * from './comment-owner'; +export * from './comment-request'; +export * from './comment-spec'; +export * from './comment-stats'; +export * from './comment-stats-vo'; +export * from './comment-status'; +export * from './comment-vo'; +export * from './comment-vo-list'; +export * from './comment-with-reply-vo'; +export * from './comment-with-reply-vo-list'; +export * from './condition'; +export * from './config-map'; +export * from './config-map-list'; +export * from './config-map-ref'; +export * from './content'; +export * from './content-vo'; +export * from './content-wrapper'; +export * from './contributor'; +export * from './contributor-vo'; +export * from './counter'; +export * from './counter-list'; +export * from './counter-request'; +export * from './create-user-request'; +export * from './custom-templates'; +export * from './dashboard-stats'; +export * from './detailed-user'; +export * from './email-config-validation-request'; +export * from './email-verify-request'; +export * from './excerpt'; +export * from './extension'; +export * from './extension-definition'; +export * from './extension-definition-list'; +export * from './extension-point-definition'; +export * from './extension-point-definition-list'; +export * from './extension-point-spec'; +export * from './extension-spec'; +export * from './file-reverse-proxy-provider'; +export * from './grant-request'; +export * from './group'; +export * from './group-kind'; +export * from './group-list'; +export * from './group-spec'; +export * from './group-status'; +export * from './install-from-uri-request'; +export * from './interest-reason'; +export * from './interest-reason-subject'; +export * from './license'; +export * from './list-result-reply-vo'; +export * from './listed-auth-provider'; +export * from './listed-comment'; +export * from './listed-comment-list'; +export * from './listed-post'; +export * from './listed-post-list'; +export * from './listed-post-vo'; +export * from './listed-post-vo-list'; +export * from './listed-reply'; +export * from './listed-reply-list'; +export * from './listed-single-page'; +export * from './listed-single-page-list'; +export * from './listed-single-page-vo'; +export * from './listed-single-page-vo-list'; +export * from './listed-user'; +export * from './login-history'; +export * from './mark-specified-request'; +export * from './menu'; +export * from './menu-item'; +export * from './menu-item-list'; +export * from './menu-item-spec'; +export * from './menu-item-status'; +export * from './menu-item-vo'; +export * from './menu-list'; +export * from './menu-spec'; +export * from './menu-vo'; +export * from './metadata'; +export * from './navigation-post-vo'; +export * from './notification'; +export * from './notification-list'; +export * from './notification-spec'; +export * from './notification-template'; +export * from './notification-template-list'; +export * from './notification-template-spec'; +export * from './notifier-descriptor'; +export * from './notifier-descriptor-list'; +export * from './notifier-descriptor-spec'; +export * from './notifier-info'; +export * from './notifier-setting-ref'; +export * from './owner-info'; +export * from './password-request'; +export * from './password-reset-email-request'; +export * from './pat-spec'; +export * from './personal-access-token'; +export * from './personal-access-token-list'; +export * from './plugin'; +export * from './plugin-author'; +export * from './plugin-list'; +export * from './plugin-running-state-request'; +export * from './plugin-spec'; +export * from './plugin-status'; +export * from './policy'; +export * from './policy-list'; +export * from './policy-rule'; +export * from './policy-spec'; +export * from './policy-template'; +export * from './policy-template-list'; +export * from './policy-template-spec'; +export * from './post'; +export * from './post-hit'; +export * from './post-hits'; +export * from './post-list'; +export * from './post-request'; +export * from './post-spec'; +export * from './post-status'; +export * from './post-vo'; +export * from './public-key-response'; +export * from './reason'; +export * from './reason-list'; +export * from './reason-property'; +export * from './reason-selector'; +export * from './reason-spec'; +export * from './reason-spec-attributes'; +export * from './reason-subject'; +export * from './reason-type'; +export * from './reason-type-info'; +export * from './reason-type-list'; +export * from './reason-type-notifier-collection-request'; +export * from './reason-type-notifier-matrix'; +export * from './reason-type-notifier-request'; +export * from './reason-type-spec'; +export * from './ref'; +export * from './register-verify-email-request'; +export * from './reply'; +export * from './reply-list'; +export * from './reply-request'; +export * from './reply-spec'; +export * from './reply-vo'; +export * from './reply-vo-list'; +export * from './reset-password-request'; +export * from './reverse-proxy'; +export * from './reverse-proxy-list'; +export * from './reverse-proxy-rule'; +export * from './role'; +export * from './role-binding'; +export * from './role-binding-list'; +export * from './role-list'; +export * from './role-ref'; +export * from './search-engine'; +export * from './search-engine-list'; +export * from './search-engine-spec'; +export * from './secret'; +export * from './secret-list'; +export * from './setting'; +export * from './setting-form'; +export * from './setting-list'; +export * from './setting-ref'; +export * from './setting-spec'; +export * from './sign-up-request'; +export * from './single-page'; +export * from './single-page-list'; +export * from './single-page-request'; +export * from './single-page-spec'; +export * from './single-page-status'; +export * from './single-page-vo'; +export * from './site-stats-vo'; +export * from './snap-shot-spec'; +export * from './snapshot'; +export * from './snapshot-list'; +export * from './stats'; +export * from './stats-vo'; +export * from './subject'; +export * from './subscription'; +export * from './subscription-list'; +export * from './subscription-spec'; +export * from './subscription-subscriber'; +export * from './system-initialization-request'; +export * from './tag'; +export * from './tag-list'; +export * from './tag-spec'; +export * from './tag-status'; +export * from './tag-vo'; +export * from './tag-vo-list'; +export * from './template-content'; +export * from './template-descriptor'; +export * from './theme'; +export * from './theme-list'; +export * from './theme-spec'; +export * from './theme-status'; +export * from './totp-auth-link-response'; +export * from './totp-request'; +export * from './two-factor-auth-settings'; +export * from './upgrade-from-uri-request'; +export * from './user'; +export * from './user-connection'; +export * from './user-connection-list'; +export * from './user-connection-spec'; +export * from './user-endpoint-listed-user-list'; +export * from './user-list'; +export * from './user-permission'; +export * from './user-spec'; +export * from './user-status'; +export * from './verify-code-request'; +export * from './vote-request'; diff --git a/ui/packages/api-client/src/models/install-from-uri-request.ts b/ui/packages/api-client/src/models/install-from-uri-request.ts index b0f584e9a..6370274e9 100644 --- a/ui/packages/api-client/src/models/install-from-uri-request.ts +++ b/ui/packages/api-client/src/models/install-from-uri-request.ts @@ -5,23 +5,26 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface InstallFromUriRequest */ export interface InstallFromUriRequest { - /** - * - * @type {string} - * @memberof InstallFromUriRequest - */ - uri: string; + /** + * + * @type {string} + * @memberof InstallFromUriRequest + */ + 'uri': string; } + diff --git a/ui/packages/api-client/src/models/interest-reason-subject.ts b/ui/packages/api-client/src/models/interest-reason-subject.ts index a7a693c3a..5d9a07f51 100644 --- a/ui/packages/api-client/src/models/interest-reason-subject.ts +++ b/ui/packages/api-client/src/models/interest-reason-subject.ts @@ -5,35 +5,38 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** * The subject name of reason type to be interested in * @export * @interface InterestReasonSubject */ export interface InterestReasonSubject { - /** - * - * @type {string} - * @memberof InterestReasonSubject - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof InterestReasonSubject - */ - kind: string; - /** - * if name is not specified, it presents all subjects of the specified reason type and custom resources - * @type {string} - * @memberof InterestReasonSubject - */ - name?: string; + /** + * + * @type {string} + * @memberof InterestReasonSubject + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof InterestReasonSubject + */ + 'kind': string; + /** + * if name is not specified, it presents all subjects of the specified reason type and custom resources + * @type {string} + * @memberof InterestReasonSubject + */ + 'name'?: string; } + diff --git a/ui/packages/api-client/src/models/interest-reason.ts b/ui/packages/api-client/src/models/interest-reason.ts index c33a1d934..d1c3b7761 100644 --- a/ui/packages/api-client/src/models/interest-reason.ts +++ b/ui/packages/api-client/src/models/interest-reason.ts @@ -5,16 +5,17 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { InterestReasonSubject } from "./interest-reason-subject"; +import { InterestReasonSubject } from './interest-reason-subject'; /** * The reason to be interested in @@ -22,16 +23,17 @@ import { InterestReasonSubject } from "./interest-reason-subject"; * @interface InterestReason */ export interface InterestReason { - /** - * The name of the reason definition to be interested in - * @type {string} - * @memberof InterestReason - */ - reasonType: string; - /** - * - * @type {InterestReasonSubject} - * @memberof InterestReason - */ - subject: InterestReasonSubject; + /** + * The name of the reason definition to be interested in + * @type {string} + * @memberof InterestReason + */ + 'reasonType': string; + /** + * + * @type {InterestReasonSubject} + * @memberof InterestReason + */ + 'subject': InterestReasonSubject; } + diff --git a/ui/packages/api-client/src/models/license.ts b/ui/packages/api-client/src/models/license.ts index 2be2831f9..3fba314ab 100644 --- a/ui/packages/api-client/src/models/license.ts +++ b/ui/packages/api-client/src/models/license.ts @@ -5,29 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface License */ export interface License { - /** - * - * @type {string} - * @memberof License - */ - name?: string; - /** - * - * @type {string} - * @memberof License - */ - url?: string; + /** + * + * @type {string} + * @memberof License + */ + 'name'?: string; + /** + * + * @type {string} + * @memberof License + */ + 'url'?: string; } + diff --git a/ui/packages/api-client/src/models/list-result-reply-vo.ts b/ui/packages/api-client/src/models/list-result-reply-vo.ts new file mode 100644 index 000000000..ff6cc3f42 --- /dev/null +++ b/ui/packages/api-client/src/models/list-result-reply-vo.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Halo Next API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ReplyVo } from './reply-vo'; + +/** + * + * @export + * @interface ListResultReplyVo + */ +export interface ListResultReplyVo { + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof ListResultReplyVo + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ListResultReplyVo + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ListResultReplyVo + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof ListResultReplyVo + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof ListResultReplyVo + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ListResultReplyVo + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ListResultReplyVo + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof ListResultReplyVo + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof ListResultReplyVo + */ + 'totalPages': number; +} + diff --git a/ui/packages/api-client/src/models/listed-auth-provider.ts b/ui/packages/api-client/src/models/listed-auth-provider.ts index ffa396e75..2851dba61 100644 --- a/ui/packages/api-client/src/models/listed-auth-provider.ts +++ b/ui/packages/api-client/src/models/listed-auth-provider.ts @@ -5,95 +5,98 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface ListedAuthProvider */ export interface ListedAuthProvider { - /** - * - * @type {string} - * @memberof ListedAuthProvider - */ - authenticationUrl?: string; - /** - * - * @type {string} - * @memberof ListedAuthProvider - */ - bindingUrl?: string; - /** - * - * @type {string} - * @memberof ListedAuthProvider - */ - description?: string; - /** - * - * @type {string} - * @memberof ListedAuthProvider - */ - displayName: string; - /** - * - * @type {boolean} - * @memberof ListedAuthProvider - */ - enabled?: boolean; - /** - * - * @type {string} - * @memberof ListedAuthProvider - */ - helpPage?: string; - /** - * - * @type {boolean} - * @memberof ListedAuthProvider - */ - isBound?: boolean; - /** - * - * @type {string} - * @memberof ListedAuthProvider - */ - logo?: string; - /** - * - * @type {string} - * @memberof ListedAuthProvider - */ - name: string; - /** - * - * @type {boolean} - * @memberof ListedAuthProvider - */ - privileged?: boolean; - /** - * - * @type {boolean} - * @memberof ListedAuthProvider - */ - supportsBinding?: boolean; - /** - * - * @type {string} - * @memberof ListedAuthProvider - */ - unbindingUrl?: string; - /** - * - * @type {string} - * @memberof ListedAuthProvider - */ - website?: string; + /** + * + * @type {string} + * @memberof ListedAuthProvider + */ + 'authenticationUrl'?: string; + /** + * + * @type {string} + * @memberof ListedAuthProvider + */ + 'bindingUrl'?: string; + /** + * + * @type {string} + * @memberof ListedAuthProvider + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof ListedAuthProvider + */ + 'displayName': string; + /** + * + * @type {boolean} + * @memberof ListedAuthProvider + */ + 'enabled'?: boolean; + /** + * + * @type {string} + * @memberof ListedAuthProvider + */ + 'helpPage'?: string; + /** + * + * @type {boolean} + * @memberof ListedAuthProvider + */ + 'isBound'?: boolean; + /** + * + * @type {string} + * @memberof ListedAuthProvider + */ + 'logo'?: string; + /** + * + * @type {string} + * @memberof ListedAuthProvider + */ + 'name': string; + /** + * + * @type {boolean} + * @memberof ListedAuthProvider + */ + 'privileged'?: boolean; + /** + * + * @type {boolean} + * @memberof ListedAuthProvider + */ + 'supportsBinding'?: boolean; + /** + * + * @type {string} + * @memberof ListedAuthProvider + */ + 'unbindingUrl'?: string; + /** + * + * @type {string} + * @memberof ListedAuthProvider + */ + 'website'?: string; } + diff --git a/ui/packages/api-client/src/models/listed-comment-list.ts b/ui/packages/api-client/src/models/listed-comment-list.ts index 863bdd08d..5db5ea599 100644 --- a/ui/packages/api-client/src/models/listed-comment-list.ts +++ b/ui/packages/api-client/src/models/listed-comment-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ListedComment } from "./listed-comment"; +import { ListedComment } from './listed-comment'; /** - * + * * @export * @interface ListedCommentList */ export interface ListedCommentList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof ListedCommentList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ListedCommentList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ListedCommentList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof ListedCommentList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof ListedCommentList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ListedCommentList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ListedCommentList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof ListedCommentList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof ListedCommentList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof ListedCommentList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ListedCommentList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ListedCommentList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof ListedCommentList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof ListedCommentList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ListedCommentList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ListedCommentList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof ListedCommentList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof ListedCommentList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/listed-comment.ts b/ui/packages/api-client/src/models/listed-comment.ts index f3807e94c..fcf09f88d 100644 --- a/ui/packages/api-client/src/models/listed-comment.ts +++ b/ui/packages/api-client/src/models/listed-comment.ts @@ -5,25 +5,26 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Comment } from "./comment"; +import { Comment } from './comment'; // May contain unused imports in some cases // @ts-ignore -import { CommentStats } from "./comment-stats"; +import { CommentStats } from './comment-stats'; // May contain unused imports in some cases // @ts-ignore -import { Extension } from "./extension"; +import { Extension } from './extension'; // May contain unused imports in some cases // @ts-ignore -import { OwnerInfo } from "./owner-info"; +import { OwnerInfo } from './owner-info'; /** * A chunk of items. @@ -31,28 +32,29 @@ import { OwnerInfo } from "./owner-info"; * @interface ListedComment */ export interface ListedComment { - /** - * - * @type {Comment} - * @memberof ListedComment - */ - comment: Comment; - /** - * - * @type {OwnerInfo} - * @memberof ListedComment - */ - owner: OwnerInfo; - /** - * - * @type {CommentStats} - * @memberof ListedComment - */ - stats: CommentStats; - /** - * - * @type {Extension} - * @memberof ListedComment - */ - subject?: Extension; + /** + * + * @type {Comment} + * @memberof ListedComment + */ + 'comment': Comment; + /** + * + * @type {OwnerInfo} + * @memberof ListedComment + */ + 'owner': OwnerInfo; + /** + * + * @type {CommentStats} + * @memberof ListedComment + */ + 'stats': CommentStats; + /** + * + * @type {Extension} + * @memberof ListedComment + */ + 'subject'?: Extension; } + diff --git a/ui/packages/api-client/src/models/listed-post-list.ts b/ui/packages/api-client/src/models/listed-post-list.ts index 99e95f7eb..c353122a2 100644 --- a/ui/packages/api-client/src/models/listed-post-list.ts +++ b/ui/packages/api-client/src/models/listed-post-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ListedPost } from "./listed-post"; +import { ListedPost } from './listed-post'; /** - * + * * @export * @interface ListedPostList */ export interface ListedPostList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof ListedPostList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ListedPostList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ListedPostList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof ListedPostList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof ListedPostList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ListedPostList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ListedPostList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof ListedPostList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof ListedPostList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof ListedPostList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ListedPostList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ListedPostList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof ListedPostList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof ListedPostList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ListedPostList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ListedPostList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof ListedPostList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof ListedPostList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/listed-post-vo-list.ts b/ui/packages/api-client/src/models/listed-post-vo-list.ts index 6028d4101..4389a13a3 100644 --- a/ui/packages/api-client/src/models/listed-post-vo-list.ts +++ b/ui/packages/api-client/src/models/listed-post-vo-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ListedPostVo } from "./listed-post-vo"; +import { ListedPostVo } from './listed-post-vo'; /** - * + * * @export * @interface ListedPostVoList */ export interface ListedPostVoList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof ListedPostVoList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ListedPostVoList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ListedPostVoList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof ListedPostVoList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof ListedPostVoList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ListedPostVoList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ListedPostVoList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof ListedPostVoList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof ListedPostVoList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof ListedPostVoList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ListedPostVoList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ListedPostVoList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof ListedPostVoList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof ListedPostVoList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ListedPostVoList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ListedPostVoList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof ListedPostVoList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof ListedPostVoList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/listed-post-vo.ts b/ui/packages/api-client/src/models/listed-post-vo.ts index 183453177..fc1543720 100644 --- a/ui/packages/api-client/src/models/listed-post-vo.ts +++ b/ui/packages/api-client/src/models/listed-post-vo.ts @@ -5,87 +5,89 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { CategoryVo } from "./category-vo"; +import { CategoryVo } from './category-vo'; // May contain unused imports in some cases // @ts-ignore -import { ContributorVo } from "./contributor-vo"; +import { ContributorVo } from './contributor-vo'; // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { PostSpec } from "./post-spec"; +import { PostSpec } from './post-spec'; // May contain unused imports in some cases // @ts-ignore -import { PostStatus } from "./post-status"; +import { PostStatus } from './post-status'; // May contain unused imports in some cases // @ts-ignore -import { StatsVo } from "./stats-vo"; +import { StatsVo } from './stats-vo'; // May contain unused imports in some cases // @ts-ignore -import { TagVo } from "./tag-vo"; +import { TagVo } from './tag-vo'; /** - * + * * @export * @interface ListedPostVo */ export interface ListedPostVo { - /** - * - * @type {Array} - * @memberof ListedPostVo - */ - categories?: Array; - /** - * - * @type {Array} - * @memberof ListedPostVo - */ - contributors?: Array; - /** - * - * @type {Metadata} - * @memberof ListedPostVo - */ - metadata: Metadata; - /** - * - * @type {ContributorVo} - * @memberof ListedPostVo - */ - owner?: ContributorVo; - /** - * - * @type {PostSpec} - * @memberof ListedPostVo - */ - spec?: PostSpec; - /** - * - * @type {StatsVo} - * @memberof ListedPostVo - */ - stats?: StatsVo; - /** - * - * @type {PostStatus} - * @memberof ListedPostVo - */ - status?: PostStatus; - /** - * - * @type {Array} - * @memberof ListedPostVo - */ - tags?: Array; + /** + * + * @type {Array} + * @memberof ListedPostVo + */ + 'categories'?: Array; + /** + * + * @type {Array} + * @memberof ListedPostVo + */ + 'contributors'?: Array; + /** + * + * @type {Metadata} + * @memberof ListedPostVo + */ + 'metadata': Metadata; + /** + * + * @type {ContributorVo} + * @memberof ListedPostVo + */ + 'owner'?: ContributorVo; + /** + * + * @type {PostSpec} + * @memberof ListedPostVo + */ + 'spec'?: PostSpec; + /** + * + * @type {StatsVo} + * @memberof ListedPostVo + */ + 'stats'?: StatsVo; + /** + * + * @type {PostStatus} + * @memberof ListedPostVo + */ + 'status'?: PostStatus; + /** + * + * @type {Array} + * @memberof ListedPostVo + */ + 'tags'?: Array; } + diff --git a/ui/packages/api-client/src/models/listed-post.ts b/ui/packages/api-client/src/models/listed-post.ts index 7e5f596e1..a5456e757 100644 --- a/ui/packages/api-client/src/models/listed-post.ts +++ b/ui/packages/api-client/src/models/listed-post.ts @@ -5,28 +5,29 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Category } from "./category"; +import { Category } from './category'; // May contain unused imports in some cases // @ts-ignore -import { Contributor } from "./contributor"; +import { Contributor } from './contributor'; // May contain unused imports in some cases // @ts-ignore -import { Post } from "./post"; +import { Post } from './post'; // May contain unused imports in some cases // @ts-ignore -import { Stats } from "./stats"; +import { Stats } from './stats'; // May contain unused imports in some cases // @ts-ignore -import { Tag } from "./tag"; +import { Tag } from './tag'; /** * A chunk of items. @@ -34,40 +35,41 @@ import { Tag } from "./tag"; * @interface ListedPost */ export interface ListedPost { - /** - * - * @type {Array} - * @memberof ListedPost - */ - categories: Array; - /** - * - * @type {Array} - * @memberof ListedPost - */ - contributors: Array; - /** - * - * @type {Contributor} - * @memberof ListedPost - */ - owner: Contributor; - /** - * - * @type {Post} - * @memberof ListedPost - */ - post: Post; - /** - * - * @type {Stats} - * @memberof ListedPost - */ - stats: Stats; - /** - * - * @type {Array} - * @memberof ListedPost - */ - tags: Array; + /** + * + * @type {Array} + * @memberof ListedPost + */ + 'categories': Array; + /** + * + * @type {Array} + * @memberof ListedPost + */ + 'contributors': Array; + /** + * + * @type {Contributor} + * @memberof ListedPost + */ + 'owner': Contributor; + /** + * + * @type {Post} + * @memberof ListedPost + */ + 'post': Post; + /** + * + * @type {Stats} + * @memberof ListedPost + */ + 'stats': Stats; + /** + * + * @type {Array} + * @memberof ListedPost + */ + 'tags': Array; } + diff --git a/ui/packages/api-client/src/models/listed-reply-list.ts b/ui/packages/api-client/src/models/listed-reply-list.ts index bef37fde8..e10356966 100644 --- a/ui/packages/api-client/src/models/listed-reply-list.ts +++ b/ui/packages/api-client/src/models/listed-reply-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ListedReply } from "./listed-reply"; +import { ListedReply } from './listed-reply'; /** - * + * * @export * @interface ListedReplyList */ export interface ListedReplyList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof ListedReplyList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ListedReplyList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ListedReplyList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof ListedReplyList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof ListedReplyList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ListedReplyList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ListedReplyList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof ListedReplyList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof ListedReplyList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof ListedReplyList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ListedReplyList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ListedReplyList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof ListedReplyList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof ListedReplyList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ListedReplyList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ListedReplyList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof ListedReplyList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof ListedReplyList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/listed-reply.ts b/ui/packages/api-client/src/models/listed-reply.ts index 509b81f6e..1ec50f652 100644 --- a/ui/packages/api-client/src/models/listed-reply.ts +++ b/ui/packages/api-client/src/models/listed-reply.ts @@ -5,22 +5,23 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { CommentStats } from "./comment-stats"; +import { CommentStats } from './comment-stats'; // May contain unused imports in some cases // @ts-ignore -import { OwnerInfo } from "./owner-info"; +import { OwnerInfo } from './owner-info'; // May contain unused imports in some cases // @ts-ignore -import { Reply } from "./reply"; +import { Reply } from './reply'; /** * A chunk of items. @@ -28,22 +29,23 @@ import { Reply } from "./reply"; * @interface ListedReply */ export interface ListedReply { - /** - * - * @type {OwnerInfo} - * @memberof ListedReply - */ - owner: OwnerInfo; - /** - * - * @type {Reply} - * @memberof ListedReply - */ - reply: Reply; - /** - * - * @type {CommentStats} - * @memberof ListedReply - */ - stats: CommentStats; + /** + * + * @type {OwnerInfo} + * @memberof ListedReply + */ + 'owner': OwnerInfo; + /** + * + * @type {Reply} + * @memberof ListedReply + */ + 'reply': Reply; + /** + * + * @type {CommentStats} + * @memberof ListedReply + */ + 'stats': CommentStats; } + diff --git a/ui/packages/api-client/src/models/listed-single-page-list.ts b/ui/packages/api-client/src/models/listed-single-page-list.ts index eaff30d99..2628e7864 100644 --- a/ui/packages/api-client/src/models/listed-single-page-list.ts +++ b/ui/packages/api-client/src/models/listed-single-page-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ListedSinglePage } from "./listed-single-page"; +import { ListedSinglePage } from './listed-single-page'; /** - * + * * @export * @interface ListedSinglePageList */ export interface ListedSinglePageList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof ListedSinglePageList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ListedSinglePageList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ListedSinglePageList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof ListedSinglePageList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof ListedSinglePageList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ListedSinglePageList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ListedSinglePageList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof ListedSinglePageList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof ListedSinglePageList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof ListedSinglePageList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ListedSinglePageList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ListedSinglePageList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof ListedSinglePageList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof ListedSinglePageList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ListedSinglePageList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ListedSinglePageList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof ListedSinglePageList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof ListedSinglePageList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/listed-single-page-vo-list.ts b/ui/packages/api-client/src/models/listed-single-page-vo-list.ts index 4c2ac2630..bb420f623 100644 --- a/ui/packages/api-client/src/models/listed-single-page-vo-list.ts +++ b/ui/packages/api-client/src/models/listed-single-page-vo-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ListedSinglePageVo } from "./listed-single-page-vo"; +import { ListedSinglePageVo } from './listed-single-page-vo'; /** - * + * * @export * @interface ListedSinglePageVoList */ export interface ListedSinglePageVoList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof ListedSinglePageVoList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ListedSinglePageVoList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ListedSinglePageVoList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof ListedSinglePageVoList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof ListedSinglePageVoList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ListedSinglePageVoList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ListedSinglePageVoList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof ListedSinglePageVoList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof ListedSinglePageVoList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof ListedSinglePageVoList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ListedSinglePageVoList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ListedSinglePageVoList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof ListedSinglePageVoList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof ListedSinglePageVoList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ListedSinglePageVoList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ListedSinglePageVoList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof ListedSinglePageVoList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof ListedSinglePageVoList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/listed-single-page-vo.ts b/ui/packages/api-client/src/models/listed-single-page-vo.ts index 60a7dfdb2..15cf7d3f3 100644 --- a/ui/packages/api-client/src/models/listed-single-page-vo.ts +++ b/ui/packages/api-client/src/models/listed-single-page-vo.ts @@ -5,28 +5,29 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ContributorVo } from "./contributor-vo"; +import { ContributorVo } from './contributor-vo'; // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { SinglePageSpec } from "./single-page-spec"; +import { SinglePageSpec } from './single-page-spec'; // May contain unused imports in some cases // @ts-ignore -import { SinglePageStatus } from "./single-page-status"; +import { SinglePageStatus } from './single-page-status'; // May contain unused imports in some cases // @ts-ignore -import { StatsVo } from "./stats-vo"; +import { StatsVo } from './stats-vo'; /** * A chunk of items. @@ -34,40 +35,41 @@ import { StatsVo } from "./stats-vo"; * @interface ListedSinglePageVo */ export interface ListedSinglePageVo { - /** - * - * @type {Array} - * @memberof ListedSinglePageVo - */ - contributors?: Array; - /** - * - * @type {Metadata} - * @memberof ListedSinglePageVo - */ - metadata: Metadata; - /** - * - * @type {ContributorVo} - * @memberof ListedSinglePageVo - */ - owner?: ContributorVo; - /** - * - * @type {SinglePageSpec} - * @memberof ListedSinglePageVo - */ - spec?: SinglePageSpec; - /** - * - * @type {StatsVo} - * @memberof ListedSinglePageVo - */ - stats?: StatsVo; - /** - * - * @type {SinglePageStatus} - * @memberof ListedSinglePageVo - */ - status?: SinglePageStatus; + /** + * + * @type {Array} + * @memberof ListedSinglePageVo + */ + 'contributors'?: Array; + /** + * + * @type {Metadata} + * @memberof ListedSinglePageVo + */ + 'metadata': Metadata; + /** + * + * @type {ContributorVo} + * @memberof ListedSinglePageVo + */ + 'owner'?: ContributorVo; + /** + * + * @type {SinglePageSpec} + * @memberof ListedSinglePageVo + */ + 'spec'?: SinglePageSpec; + /** + * + * @type {StatsVo} + * @memberof ListedSinglePageVo + */ + 'stats'?: StatsVo; + /** + * + * @type {SinglePageStatus} + * @memberof ListedSinglePageVo + */ + 'status'?: SinglePageStatus; } + diff --git a/ui/packages/api-client/src/models/listed-single-page.ts b/ui/packages/api-client/src/models/listed-single-page.ts index b05186502..686f0d709 100644 --- a/ui/packages/api-client/src/models/listed-single-page.ts +++ b/ui/packages/api-client/src/models/listed-single-page.ts @@ -5,22 +5,23 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Contributor } from "./contributor"; +import { Contributor } from './contributor'; // May contain unused imports in some cases // @ts-ignore -import { SinglePage } from "./single-page"; +import { SinglePage } from './single-page'; // May contain unused imports in some cases // @ts-ignore -import { Stats } from "./stats"; +import { Stats } from './stats'; /** * A chunk of items. @@ -28,28 +29,29 @@ import { Stats } from "./stats"; * @interface ListedSinglePage */ export interface ListedSinglePage { - /** - * - * @type {Array} - * @memberof ListedSinglePage - */ - contributors: Array; - /** - * - * @type {Contributor} - * @memberof ListedSinglePage - */ - owner: Contributor; - /** - * - * @type {SinglePage} - * @memberof ListedSinglePage - */ - page: SinglePage; - /** - * - * @type {Stats} - * @memberof ListedSinglePage - */ - stats: Stats; + /** + * + * @type {Array} + * @memberof ListedSinglePage + */ + 'contributors': Array; + /** + * + * @type {Contributor} + * @memberof ListedSinglePage + */ + 'owner': Contributor; + /** + * + * @type {SinglePage} + * @memberof ListedSinglePage + */ + 'page': SinglePage; + /** + * + * @type {Stats} + * @memberof ListedSinglePage + */ + 'stats': Stats; } + diff --git a/ui/packages/api-client/src/models/listed-user-list.ts b/ui/packages/api-client/src/models/listed-user-list.ts deleted file mode 100644 index 75c0a2d5d..000000000 --- a/ui/packages/api-client/src/models/listed-user-list.ts +++ /dev/null @@ -1,79 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Halo Next API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -// May contain unused imports in some cases -// @ts-ignore -import { ListedUser } from "./listed-user"; - -/** - * - * @export - * @interface ListedUserList - */ -export interface ListedUserList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof ListedUserList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ListedUserList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ListedUserList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof ListedUserList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof ListedUserList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ListedUserList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ListedUserList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof ListedUserList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof ListedUserList - */ - totalPages: number; -} diff --git a/ui/packages/api-client/src/models/listed-user.ts b/ui/packages/api-client/src/models/listed-user.ts index 02cda53f5..e0e42226b 100644 --- a/ui/packages/api-client/src/models/listed-user.ts +++ b/ui/packages/api-client/src/models/listed-user.ts @@ -5,19 +5,20 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Role } from "./role"; +import { Role } from './role'; // May contain unused imports in some cases // @ts-ignore -import { User } from "./user"; +import { User } from './user'; /** * A chunk of items. @@ -25,16 +26,17 @@ import { User } from "./user"; * @interface ListedUser */ export interface ListedUser { - /** - * - * @type {Array} - * @memberof ListedUser - */ - roles: Array; - /** - * - * @type {User} - * @memberof ListedUser - */ - user: User; + /** + * + * @type {Array} + * @memberof ListedUser + */ + 'roles': Array; + /** + * + * @type {User} + * @memberof ListedUser + */ + 'user': User; } + diff --git a/ui/packages/api-client/src/models/login-history.ts b/ui/packages/api-client/src/models/login-history.ts index de82c2a76..40af6e827 100644 --- a/ui/packages/api-client/src/models/login-history.ts +++ b/ui/packages/api-client/src/models/login-history.ts @@ -5,47 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface LoginHistory */ export interface LoginHistory { - /** - * - * @type {string} - * @memberof LoginHistory - */ - loginAt: string; - /** - * - * @type {string} - * @memberof LoginHistory - */ - reason?: string; - /** - * - * @type {string} - * @memberof LoginHistory - */ - sourceIp: string; - /** - * - * @type {boolean} - * @memberof LoginHistory - */ - successful: boolean; - /** - * - * @type {string} - * @memberof LoginHistory - */ - userAgent: string; + /** + * + * @type {string} + * @memberof LoginHistory + */ + 'loginAt': string; + /** + * + * @type {string} + * @memberof LoginHistory + */ + 'reason'?: string; + /** + * + * @type {string} + * @memberof LoginHistory + */ + 'sourceIp': string; + /** + * + * @type {boolean} + * @memberof LoginHistory + */ + 'successful': boolean; + /** + * + * @type {string} + * @memberof LoginHistory + */ + 'userAgent': string; } + diff --git a/ui/packages/api-client/src/models/mark-specified-request.ts b/ui/packages/api-client/src/models/mark-specified-request.ts index ca4181d28..9d71125b9 100644 --- a/ui/packages/api-client/src/models/mark-specified-request.ts +++ b/ui/packages/api-client/src/models/mark-specified-request.ts @@ -5,23 +5,26 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface MarkSpecifiedRequest */ export interface MarkSpecifiedRequest { - /** - * - * @type {Array} - * @memberof MarkSpecifiedRequest - */ - names?: Array; + /** + * + * @type {Array} + * @memberof MarkSpecifiedRequest + */ + 'names'?: Array; } + diff --git a/ui/packages/api-client/src/models/menu-item-list.ts b/ui/packages/api-client/src/models/menu-item-list.ts index 8f13c16c5..2aabe8db9 100644 --- a/ui/packages/api-client/src/models/menu-item-list.ts +++ b/ui/packages/api-client/src/models/menu-item-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { MenuItem } from "./menu-item"; +import { MenuItem } from './menu-item'; /** - * + * * @export * @interface MenuItemList */ export interface MenuItemList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof MenuItemList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof MenuItemList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof MenuItemList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof MenuItemList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof MenuItemList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof MenuItemList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof MenuItemList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof MenuItemList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof MenuItemList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof MenuItemList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof MenuItemList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof MenuItemList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof MenuItemList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof MenuItemList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof MenuItemList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof MenuItemList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof MenuItemList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof MenuItemList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/menu-item-spec.ts b/ui/packages/api-client/src/models/menu-item-spec.ts index 0893aaafc..daaa9c4d6 100644 --- a/ui/packages/api-client/src/models/menu-item-spec.ts +++ b/ui/packages/api-client/src/models/menu-item-spec.ts @@ -5,16 +5,17 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Ref } from "./ref"; +import { Ref } from './ref'; /** * The spec of menu item. @@ -22,50 +23,51 @@ import { Ref } from "./ref"; * @interface MenuItemSpec */ export interface MenuItemSpec { - /** - * Children of this menu item - * @type {Array} - * @memberof MenuItemSpec - */ - children?: Array; - /** - * The display name of menu item. - * @type {string} - * @memberof MenuItemSpec - */ - displayName?: string; - /** - * The href of this menu item. - * @type {string} - * @memberof MenuItemSpec - */ - href?: string; - /** - * The priority is for ordering. - * @type {number} - * @memberof MenuItemSpec - */ - priority?: number; - /** - * The target attribute of this menu item. - * @type {string} - * @memberof MenuItemSpec - */ - target?: MenuItemSpecTargetEnum; - /** - * - * @type {Ref} - * @memberof MenuItemSpec - */ - targetRef?: Ref; + /** + * Children of this menu item + * @type {Array} + * @memberof MenuItemSpec + */ + 'children'?: Array; + /** + * The display name of menu item. + * @type {string} + * @memberof MenuItemSpec + */ + 'displayName'?: string; + /** + * The href of this menu item. + * @type {string} + * @memberof MenuItemSpec + */ + 'href'?: string; + /** + * The priority is for ordering. + * @type {number} + * @memberof MenuItemSpec + */ + 'priority'?: number; + /** + * The target attribute of this menu item. + * @type {string} + * @memberof MenuItemSpec + */ + 'target'?: MenuItemSpecTargetEnum; + /** + * + * @type {Ref} + * @memberof MenuItemSpec + */ + 'targetRef'?: Ref; } export const MenuItemSpecTargetEnum = { - Blank: "_blank", - Self: "_self", - Parent: "_parent", - Top: "_top", + Blank: '_blank', + Self: '_self', + Parent: '_parent', + Top: '_top' } as const; -export type MenuItemSpecTargetEnum = - (typeof MenuItemSpecTargetEnum)[keyof typeof MenuItemSpecTargetEnum]; +export type MenuItemSpecTargetEnum = typeof MenuItemSpecTargetEnum[keyof typeof MenuItemSpecTargetEnum]; + + diff --git a/ui/packages/api-client/src/models/menu-item-status.ts b/ui/packages/api-client/src/models/menu-item-status.ts index fef31c76a..562b4be4a 100644 --- a/ui/packages/api-client/src/models/menu-item-status.ts +++ b/ui/packages/api-client/src/models/menu-item-status.ts @@ -5,29 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** * The status of menu item. * @export * @interface MenuItemStatus */ export interface MenuItemStatus { - /** - * Calculated Display name of menu item. - * @type {string} - * @memberof MenuItemStatus - */ - displayName?: string; - /** - * Calculated href of manu item. - * @type {string} - * @memberof MenuItemStatus - */ - href?: string; + /** + * Calculated Display name of menu item. + * @type {string} + * @memberof MenuItemStatus + */ + 'displayName'?: string; + /** + * Calculated href of manu item. + * @type {string} + * @memberof MenuItemStatus + */ + 'href'?: string; } + diff --git a/ui/packages/api-client/src/models/menu-item-vo.ts b/ui/packages/api-client/src/models/menu-item-vo.ts index e89ffe6b1..d9938c426 100644 --- a/ui/packages/api-client/src/models/menu-item-vo.ts +++ b/ui/packages/api-client/src/models/menu-item-vo.ts @@ -5,57 +5,59 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { MenuItemSpec } from "./menu-item-spec"; +import { MenuItemSpec } from './menu-item-spec'; // May contain unused imports in some cases // @ts-ignore -import { MenuItemStatus } from "./menu-item-status"; +import { MenuItemStatus } from './menu-item-status'; // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; /** - * + * * @export * @interface MenuItemVo */ export interface MenuItemVo { - /** - * - * @type {string} - * @memberof MenuItemVo - */ - displayName?: string; - /** - * - * @type {Metadata} - * @memberof MenuItemVo - */ - metadata: Metadata; - /** - * - * @type {string} - * @memberof MenuItemVo - */ - parentName?: string; - /** - * - * @type {MenuItemSpec} - * @memberof MenuItemVo - */ - spec?: MenuItemSpec; - /** - * - * @type {MenuItemStatus} - * @memberof MenuItemVo - */ - status?: MenuItemStatus; + /** + * + * @type {string} + * @memberof MenuItemVo + */ + 'displayName'?: string; + /** + * + * @type {Metadata} + * @memberof MenuItemVo + */ + 'metadata': Metadata; + /** + * + * @type {string} + * @memberof MenuItemVo + */ + 'parentName'?: string; + /** + * + * @type {MenuItemSpec} + * @memberof MenuItemVo + */ + 'spec'?: MenuItemSpec; + /** + * + * @type {MenuItemStatus} + * @memberof MenuItemVo + */ + 'status'?: MenuItemStatus; } + diff --git a/ui/packages/api-client/src/models/menu-item.ts b/ui/packages/api-client/src/models/menu-item.ts index b3f544de1..4fcd2d71a 100644 --- a/ui/packages/api-client/src/models/menu-item.ts +++ b/ui/packages/api-client/src/models/menu-item.ts @@ -5,57 +5,59 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { MenuItemSpec } from "./menu-item-spec"; +import { MenuItemSpec } from './menu-item-spec'; // May contain unused imports in some cases // @ts-ignore -import { MenuItemStatus } from "./menu-item-status"; +import { MenuItemStatus } from './menu-item-status'; // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; /** - * + * * @export * @interface MenuItem */ export interface MenuItem { - /** - * - * @type {string} - * @memberof MenuItem - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof MenuItem - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof MenuItem - */ - metadata: Metadata; - /** - * - * @type {MenuItemSpec} - * @memberof MenuItem - */ - spec: MenuItemSpec; - /** - * - * @type {MenuItemStatus} - * @memberof MenuItem - */ - status?: MenuItemStatus; + /** + * + * @type {string} + * @memberof MenuItem + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof MenuItem + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof MenuItem + */ + 'metadata': Metadata; + /** + * + * @type {MenuItemSpec} + * @memberof MenuItem + */ + 'spec': MenuItemSpec; + /** + * + * @type {MenuItemStatus} + * @memberof MenuItem + */ + 'status'?: MenuItemStatus; } + diff --git a/ui/packages/api-client/src/models/menu-list.ts b/ui/packages/api-client/src/models/menu-list.ts index 5c2aa3bad..39c5b0fae 100644 --- a/ui/packages/api-client/src/models/menu-list.ts +++ b/ui/packages/api-client/src/models/menu-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Menu } from "./menu"; +import { Menu } from './menu'; /** - * + * * @export * @interface MenuList */ export interface MenuList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof MenuList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof MenuList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof MenuList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof MenuList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof MenuList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof MenuList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof MenuList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof MenuList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof MenuList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof MenuList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof MenuList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof MenuList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof MenuList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof MenuList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof MenuList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof MenuList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof MenuList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof MenuList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/menu-spec.ts b/ui/packages/api-client/src/models/menu-spec.ts index 93ca37106..6e512baf4 100644 --- a/ui/packages/api-client/src/models/menu-spec.ts +++ b/ui/packages/api-client/src/models/menu-spec.ts @@ -5,29 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** * The spec of menu. * @export * @interface MenuSpec */ export interface MenuSpec { - /** - * The display name of the menu. - * @type {string} - * @memberof MenuSpec - */ - displayName: string; - /** - * Names of menu children below this menu. - * @type {Array} - * @memberof MenuSpec - */ - menuItems?: Array; + /** + * The display name of the menu. + * @type {string} + * @memberof MenuSpec + */ + 'displayName': string; + /** + * Names of menu children below this menu. + * @type {Array} + * @memberof MenuSpec + */ + 'menuItems'?: Array; } + diff --git a/ui/packages/api-client/src/models/menu-vo.ts b/ui/packages/api-client/src/models/menu-vo.ts index 4630a4aa2..33a30d88d 100644 --- a/ui/packages/api-client/src/models/menu-vo.ts +++ b/ui/packages/api-client/src/models/menu-vo.ts @@ -5,45 +5,47 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { MenuItemVo } from "./menu-item-vo"; +import { MenuItemVo } from './menu-item-vo'; // May contain unused imports in some cases // @ts-ignore -import { MenuSpec } from "./menu-spec"; +import { MenuSpec } from './menu-spec'; // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; /** - * + * * @export * @interface MenuVo */ export interface MenuVo { - /** - * - * @type {Array} - * @memberof MenuVo - */ - menuItems?: Array; - /** - * - * @type {Metadata} - * @memberof MenuVo - */ - metadata: Metadata; - /** - * - * @type {MenuSpec} - * @memberof MenuVo - */ - spec?: MenuSpec; + /** + * + * @type {Array} + * @memberof MenuVo + */ + 'menuItems'?: Array; + /** + * + * @type {Metadata} + * @memberof MenuVo + */ + 'metadata': Metadata; + /** + * + * @type {MenuSpec} + * @memberof MenuVo + */ + 'spec'?: MenuSpec; } + diff --git a/ui/packages/api-client/src/models/menu.ts b/ui/packages/api-client/src/models/menu.ts index 102d5cbcd..2d0845f8a 100644 --- a/ui/packages/api-client/src/models/menu.ts +++ b/ui/packages/api-client/src/models/menu.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { MenuSpec } from "./menu-spec"; +import { MenuSpec } from './menu-spec'; // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; /** - * + * * @export * @interface Menu */ export interface Menu { - /** - * - * @type {string} - * @memberof Menu - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof Menu - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Menu - */ - metadata: Metadata; - /** - * - * @type {MenuSpec} - * @memberof Menu - */ - spec: MenuSpec; + /** + * + * @type {string} + * @memberof Menu + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof Menu + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Menu + */ + 'metadata': Metadata; + /** + * + * @type {MenuSpec} + * @memberof Menu + */ + 'spec': MenuSpec; } + diff --git a/ui/packages/api-client/src/models/metadata.ts b/ui/packages/api-client/src/models/metadata.ts index 4a048e740..cc85ef27e 100644 --- a/ui/packages/api-client/src/models/metadata.ts +++ b/ui/packages/api-client/src/models/metadata.ts @@ -5,65 +5,68 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface Metadata */ export interface Metadata { - /** - * - * @type {{ [key: string]: string; }} - * @memberof Metadata - */ - annotations?: { [key: string]: string } | null; - /** - * - * @type {string} - * @memberof Metadata - */ - creationTimestamp?: string | null; - /** - * - * @type {string} - * @memberof Metadata - */ - deletionTimestamp?: string | null; - /** - * - * @type {Array} - * @memberof Metadata - */ - finalizers?: Array | null; - /** - * The name field will be generated automatically according to the given generateName field - * @type {string} - * @memberof Metadata - */ - generateName?: string; - /** - * - * @type {{ [key: string]: string; }} - * @memberof Metadata - */ - labels?: { [key: string]: string } | null; - /** - * Metadata name - * @type {string} - * @memberof Metadata - */ - name: string; - /** - * - * @type {number} - * @memberof Metadata - */ - version?: number | null; + /** + * + * @type {{ [key: string]: string; }} + * @memberof Metadata + */ + 'annotations'?: { [key: string]: string; }; + /** + * + * @type {string} + * @memberof Metadata + */ + 'creationTimestamp'?: string | null; + /** + * + * @type {string} + * @memberof Metadata + */ + 'deletionTimestamp'?: string | null; + /** + * + * @type {Array} + * @memberof Metadata + */ + 'finalizers'?: Array | null; + /** + * The name field will be generated automatically according to the given generateName field + * @type {string} + * @memberof Metadata + */ + 'generateName'?: string; + /** + * + * @type {{ [key: string]: string; }} + * @memberof Metadata + */ + 'labels'?: { [key: string]: string; }; + /** + * Metadata name + * @type {string} + * @memberof Metadata + */ + 'name': string; + /** + * + * @type {number} + * @memberof Metadata + */ + 'version'?: number | null; } + diff --git a/ui/packages/api-client/src/models/navigation-post-vo.ts b/ui/packages/api-client/src/models/navigation-post-vo.ts index 74659badc..e7d42570f 100644 --- a/ui/packages/api-client/src/models/navigation-post-vo.ts +++ b/ui/packages/api-client/src/models/navigation-post-vo.ts @@ -5,39 +5,41 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { PostVo } from "./post-vo"; +import { PostVo } from './post-vo'; /** - * + * * @export * @interface NavigationPostVo */ export interface NavigationPostVo { - /** - * - * @type {PostVo} - * @memberof NavigationPostVo - */ - current?: PostVo; - /** - * - * @type {PostVo} - * @memberof NavigationPostVo - */ - next?: PostVo; - /** - * - * @type {PostVo} - * @memberof NavigationPostVo - */ - previous?: PostVo; + /** + * + * @type {PostVo} + * @memberof NavigationPostVo + */ + 'current'?: PostVo; + /** + * + * @type {PostVo} + * @memberof NavigationPostVo + */ + 'next'?: PostVo; + /** + * + * @type {PostVo} + * @memberof NavigationPostVo + */ + 'previous'?: PostVo; } + diff --git a/ui/packages/api-client/src/models/notification-list.ts b/ui/packages/api-client/src/models/notification-list.ts index ab305489d..e56702bb3 100644 --- a/ui/packages/api-client/src/models/notification-list.ts +++ b/ui/packages/api-client/src/models/notification-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Notification } from "./notification"; +import { Notification } from './notification'; /** - * + * * @export * @interface NotificationList */ export interface NotificationList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof NotificationList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof NotificationList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof NotificationList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof NotificationList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof NotificationList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof NotificationList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof NotificationList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof NotificationList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof NotificationList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof NotificationList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof NotificationList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof NotificationList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof NotificationList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof NotificationList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof NotificationList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof NotificationList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof NotificationList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof NotificationList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/notification-spec.ts b/ui/packages/api-client/src/models/notification-spec.ts index 0d5cdc8b5..cadbe03a1 100644 --- a/ui/packages/api-client/src/models/notification-spec.ts +++ b/ui/packages/api-client/src/models/notification-spec.ts @@ -5,59 +5,62 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface NotificationSpec */ export interface NotificationSpec { - /** - * - * @type {string} - * @memberof NotificationSpec - */ - htmlContent: string; - /** - * - * @type {string} - * @memberof NotificationSpec - */ - lastReadAt?: string; - /** - * - * @type {string} - * @memberof NotificationSpec - */ - rawContent: string; - /** - * The name of reason - * @type {string} - * @memberof NotificationSpec - */ - reason: string; - /** - * The name of user - * @type {string} - * @memberof NotificationSpec - */ - recipient: string; - /** - * - * @type {string} - * @memberof NotificationSpec - */ - title: string; - /** - * - * @type {boolean} - * @memberof NotificationSpec - */ - unread?: boolean; + /** + * + * @type {string} + * @memberof NotificationSpec + */ + 'htmlContent': string; + /** + * + * @type {string} + * @memberof NotificationSpec + */ + 'lastReadAt'?: string; + /** + * + * @type {string} + * @memberof NotificationSpec + */ + 'rawContent': string; + /** + * The name of reason + * @type {string} + * @memberof NotificationSpec + */ + 'reason': string; + /** + * The name of user + * @type {string} + * @memberof NotificationSpec + */ + 'recipient': string; + /** + * + * @type {string} + * @memberof NotificationSpec + */ + 'title': string; + /** + * + * @type {boolean} + * @memberof NotificationSpec + */ + 'unread'?: boolean; } + diff --git a/ui/packages/api-client/src/models/notification-template-list.ts b/ui/packages/api-client/src/models/notification-template-list.ts index 0eda98cfd..848c605fe 100644 --- a/ui/packages/api-client/src/models/notification-template-list.ts +++ b/ui/packages/api-client/src/models/notification-template-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { NotificationTemplate } from "./notification-template"; +import { NotificationTemplate } from './notification-template'; /** - * + * * @export * @interface NotificationTemplateList */ export interface NotificationTemplateList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof NotificationTemplateList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof NotificationTemplateList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof NotificationTemplateList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof NotificationTemplateList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof NotificationTemplateList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof NotificationTemplateList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof NotificationTemplateList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof NotificationTemplateList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof NotificationTemplateList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof NotificationTemplateList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof NotificationTemplateList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof NotificationTemplateList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof NotificationTemplateList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof NotificationTemplateList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof NotificationTemplateList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof NotificationTemplateList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof NotificationTemplateList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof NotificationTemplateList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/notification-template-spec.ts b/ui/packages/api-client/src/models/notification-template-spec.ts index 54e9e92c0..5b22512e6 100644 --- a/ui/packages/api-client/src/models/notification-template-spec.ts +++ b/ui/packages/api-client/src/models/notification-template-spec.ts @@ -5,36 +5,38 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ReasonSelector } from "./reason-selector"; +import { ReasonSelector } from './reason-selector'; // May contain unused imports in some cases // @ts-ignore -import { TemplateContent } from "./template-content"; +import { TemplateContent } from './template-content'; /** - * + * * @export * @interface NotificationTemplateSpec */ export interface NotificationTemplateSpec { - /** - * - * @type {ReasonSelector} - * @memberof NotificationTemplateSpec - */ - reasonSelector?: ReasonSelector; - /** - * - * @type {TemplateContent} - * @memberof NotificationTemplateSpec - */ - template?: TemplateContent; + /** + * + * @type {ReasonSelector} + * @memberof NotificationTemplateSpec + */ + 'reasonSelector'?: ReasonSelector; + /** + * + * @type {TemplateContent} + * @memberof NotificationTemplateSpec + */ + 'template'?: TemplateContent; } + diff --git a/ui/packages/api-client/src/models/notification-template.ts b/ui/packages/api-client/src/models/notification-template.ts index 8470f874f..9585b6e96 100644 --- a/ui/packages/api-client/src/models/notification-template.ts +++ b/ui/packages/api-client/src/models/notification-template.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { NotificationTemplateSpec } from "./notification-template-spec"; +import { NotificationTemplateSpec } from './notification-template-spec'; /** - * + * * @export * @interface NotificationTemplate */ export interface NotificationTemplate { - /** - * - * @type {string} - * @memberof NotificationTemplate - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof NotificationTemplate - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof NotificationTemplate - */ - metadata: Metadata; - /** - * - * @type {NotificationTemplateSpec} - * @memberof NotificationTemplate - */ - spec?: NotificationTemplateSpec; + /** + * + * @type {string} + * @memberof NotificationTemplate + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof NotificationTemplate + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof NotificationTemplate + */ + 'metadata': Metadata; + /** + * + * @type {NotificationTemplateSpec} + * @memberof NotificationTemplate + */ + 'spec'?: NotificationTemplateSpec; } + diff --git a/ui/packages/api-client/src/models/notification.ts b/ui/packages/api-client/src/models/notification.ts index 7704d94c5..89ef44bb4 100644 --- a/ui/packages/api-client/src/models/notification.ts +++ b/ui/packages/api-client/src/models/notification.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { NotificationSpec } from "./notification-spec"; +import { NotificationSpec } from './notification-spec'; /** - * + * * @export * @interface Notification */ export interface Notification { - /** - * - * @type {string} - * @memberof Notification - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof Notification - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Notification - */ - metadata: Metadata; - /** - * - * @type {NotificationSpec} - * @memberof Notification - */ - spec?: NotificationSpec; + /** + * + * @type {string} + * @memberof Notification + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof Notification + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Notification + */ + 'metadata': Metadata; + /** + * + * @type {NotificationSpec} + * @memberof Notification + */ + 'spec'?: NotificationSpec; } + diff --git a/ui/packages/api-client/src/models/notifier-descriptor-list.ts b/ui/packages/api-client/src/models/notifier-descriptor-list.ts index 9bb0cc8fe..149f810db 100644 --- a/ui/packages/api-client/src/models/notifier-descriptor-list.ts +++ b/ui/packages/api-client/src/models/notifier-descriptor-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { NotifierDescriptor } from "./notifier-descriptor"; +import { NotifierDescriptor } from './notifier-descriptor'; /** - * + * * @export * @interface NotifierDescriptorList */ export interface NotifierDescriptorList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof NotifierDescriptorList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof NotifierDescriptorList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof NotifierDescriptorList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof NotifierDescriptorList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof NotifierDescriptorList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof NotifierDescriptorList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof NotifierDescriptorList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof NotifierDescriptorList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof NotifierDescriptorList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof NotifierDescriptorList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof NotifierDescriptorList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof NotifierDescriptorList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof NotifierDescriptorList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof NotifierDescriptorList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof NotifierDescriptorList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof NotifierDescriptorList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof NotifierDescriptorList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof NotifierDescriptorList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/notifier-descriptor-spec.ts b/ui/packages/api-client/src/models/notifier-descriptor-spec.ts index 70ce155bc..ebb9e01f1 100644 --- a/ui/packages/api-client/src/models/notifier-descriptor-spec.ts +++ b/ui/packages/api-client/src/models/notifier-descriptor-spec.ts @@ -5,51 +5,53 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { NotifierSettingRef } from "./notifier-setting-ref"; +import { NotifierSettingRef } from './notifier-setting-ref'; /** - * + * * @export * @interface NotifierDescriptorSpec */ export interface NotifierDescriptorSpec { - /** - * - * @type {string} - * @memberof NotifierDescriptorSpec - */ - description?: string; - /** - * - * @type {string} - * @memberof NotifierDescriptorSpec - */ - displayName: string; - /** - * - * @type {string} - * @memberof NotifierDescriptorSpec - */ - notifierExtName: string; - /** - * - * @type {NotifierSettingRef} - * @memberof NotifierDescriptorSpec - */ - receiverSettingRef?: NotifierSettingRef; - /** - * - * @type {NotifierSettingRef} - * @memberof NotifierDescriptorSpec - */ - senderSettingRef?: NotifierSettingRef; + /** + * + * @type {string} + * @memberof NotifierDescriptorSpec + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof NotifierDescriptorSpec + */ + 'displayName': string; + /** + * + * @type {string} + * @memberof NotifierDescriptorSpec + */ + 'notifierExtName': string; + /** + * + * @type {NotifierSettingRef} + * @memberof NotifierDescriptorSpec + */ + 'receiverSettingRef'?: NotifierSettingRef; + /** + * + * @type {NotifierSettingRef} + * @memberof NotifierDescriptorSpec + */ + 'senderSettingRef'?: NotifierSettingRef; } + diff --git a/ui/packages/api-client/src/models/notifier-descriptor.ts b/ui/packages/api-client/src/models/notifier-descriptor.ts index 05647d901..f6c3e49d5 100644 --- a/ui/packages/api-client/src/models/notifier-descriptor.ts +++ b/ui/packages/api-client/src/models/notifier-descriptor.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { NotifierDescriptorSpec } from "./notifier-descriptor-spec"; +import { NotifierDescriptorSpec } from './notifier-descriptor-spec'; /** - * + * * @export * @interface NotifierDescriptor */ export interface NotifierDescriptor { - /** - * - * @type {string} - * @memberof NotifierDescriptor - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof NotifierDescriptor - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof NotifierDescriptor - */ - metadata: Metadata; - /** - * - * @type {NotifierDescriptorSpec} - * @memberof NotifierDescriptor - */ - spec?: NotifierDescriptorSpec; + /** + * + * @type {string} + * @memberof NotifierDescriptor + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof NotifierDescriptor + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof NotifierDescriptor + */ + 'metadata': Metadata; + /** + * + * @type {NotifierDescriptorSpec} + * @memberof NotifierDescriptor + */ + 'spec'?: NotifierDescriptorSpec; } + diff --git a/ui/packages/api-client/src/models/notifier-info.ts b/ui/packages/api-client/src/models/notifier-info.ts index f10b6f9f0..e1ed45a32 100644 --- a/ui/packages/api-client/src/models/notifier-info.ts +++ b/ui/packages/api-client/src/models/notifier-info.ts @@ -5,35 +5,38 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface NotifierInfo */ export interface NotifierInfo { - /** - * - * @type {string} - * @memberof NotifierInfo - */ - description?: string; - /** - * - * @type {string} - * @memberof NotifierInfo - */ - displayName?: string; - /** - * - * @type {string} - * @memberof NotifierInfo - */ - name?: string; + /** + * + * @type {string} + * @memberof NotifierInfo + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof NotifierInfo + */ + 'displayName'?: string; + /** + * + * @type {string} + * @memberof NotifierInfo + */ + 'name'?: string; } + diff --git a/ui/packages/api-client/src/models/notifier-setting-ref.ts b/ui/packages/api-client/src/models/notifier-setting-ref.ts index 4842a80d1..b8d4621d9 100644 --- a/ui/packages/api-client/src/models/notifier-setting-ref.ts +++ b/ui/packages/api-client/src/models/notifier-setting-ref.ts @@ -5,29 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface NotifierSettingRef */ export interface NotifierSettingRef { - /** - * - * @type {string} - * @memberof NotifierSettingRef - */ - group: string; - /** - * - * @type {string} - * @memberof NotifierSettingRef - */ - name: string; + /** + * + * @type {string} + * @memberof NotifierSettingRef + */ + 'group': string; + /** + * + * @type {string} + * @memberof NotifierSettingRef + */ + 'name': string; } + diff --git a/ui/packages/api-client/src/models/owner-info.ts b/ui/packages/api-client/src/models/owner-info.ts index ba052b435..a8d0fc2d7 100644 --- a/ui/packages/api-client/src/models/owner-info.ts +++ b/ui/packages/api-client/src/models/owner-info.ts @@ -5,47 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface OwnerInfo */ export interface OwnerInfo { - /** - * - * @type {string} - * @memberof OwnerInfo - */ - avatar?: string; - /** - * - * @type {string} - * @memberof OwnerInfo - */ - displayName?: string; - /** - * - * @type {string} - * @memberof OwnerInfo - */ - email?: string; - /** - * - * @type {string} - * @memberof OwnerInfo - */ - kind?: string; - /** - * - * @type {string} - * @memberof OwnerInfo - */ - name?: string; + /** + * + * @type {string} + * @memberof OwnerInfo + */ + 'avatar'?: string; + /** + * + * @type {string} + * @memberof OwnerInfo + */ + 'displayName'?: string; + /** + * + * @type {string} + * @memberof OwnerInfo + */ + 'email'?: string; + /** + * + * @type {string} + * @memberof OwnerInfo + */ + 'kind'?: string; + /** + * + * @type {string} + * @memberof OwnerInfo + */ + 'name'?: string; } + diff --git a/ui/packages/api-client/src/models/password-request.ts b/ui/packages/api-client/src/models/password-request.ts index 04247c71d..ff5782a7f 100644 --- a/ui/packages/api-client/src/models/password-request.ts +++ b/ui/packages/api-client/src/models/password-request.ts @@ -5,23 +5,26 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface PasswordRequest */ export interface PasswordRequest { - /** - * - * @type {string} - * @memberof PasswordRequest - */ - password: string; + /** + * + * @type {string} + * @memberof PasswordRequest + */ + 'password': string; } + diff --git a/ui/packages/api-client/src/models/password-reset-email-request.ts b/ui/packages/api-client/src/models/password-reset-email-request.ts index 9b4762e6f..4cb5801ef 100644 --- a/ui/packages/api-client/src/models/password-reset-email-request.ts +++ b/ui/packages/api-client/src/models/password-reset-email-request.ts @@ -5,29 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface PasswordResetEmailRequest */ export interface PasswordResetEmailRequest { - /** - * - * @type {string} - * @memberof PasswordResetEmailRequest - */ - email: string; - /** - * - * @type {string} - * @memberof PasswordResetEmailRequest - */ - username: string; + /** + * + * @type {string} + * @memberof PasswordResetEmailRequest + */ + 'email': string; + /** + * + * @type {string} + * @memberof PasswordResetEmailRequest + */ + 'username': string; } + diff --git a/ui/packages/api-client/src/models/pat-spec.ts b/ui/packages/api-client/src/models/pat-spec.ts index f0929811b..1978e1b20 100644 --- a/ui/packages/api-client/src/models/pat-spec.ts +++ b/ui/packages/api-client/src/models/pat-spec.ts @@ -5,77 +5,80 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface PatSpec */ export interface PatSpec { - /** - * - * @type {string} - * @memberof PatSpec - */ - description?: string; - /** - * - * @type {string} - * @memberof PatSpec - */ - expiresAt?: string; - /** - * - * @type {string} - * @memberof PatSpec - */ - lastUsed?: string; - /** - * - * @type {string} - * @memberof PatSpec - */ - name: string; - /** - * - * @type {boolean} - * @memberof PatSpec - */ - revoked?: boolean; - /** - * - * @type {string} - * @memberof PatSpec - */ - revokesAt?: string; - /** - * - * @type {Array} - * @memberof PatSpec - */ - roles?: Array; - /** - * - * @type {Array} - * @memberof PatSpec - */ - scopes?: Array; - /** - * - * @type {string} - * @memberof PatSpec - */ - tokenId: string; - /** - * - * @type {string} - * @memberof PatSpec - */ - username: string; + /** + * + * @type {string} + * @memberof PatSpec + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof PatSpec + */ + 'expiresAt'?: string; + /** + * + * @type {string} + * @memberof PatSpec + */ + 'lastUsed'?: string; + /** + * + * @type {string} + * @memberof PatSpec + */ + 'name': string; + /** + * + * @type {boolean} + * @memberof PatSpec + */ + 'revoked'?: boolean; + /** + * + * @type {string} + * @memberof PatSpec + */ + 'revokesAt'?: string; + /** + * + * @type {Array} + * @memberof PatSpec + */ + 'roles'?: Array; + /** + * + * @type {Array} + * @memberof PatSpec + */ + 'scopes'?: Array; + /** + * + * @type {string} + * @memberof PatSpec + */ + 'tokenId': string; + /** + * + * @type {string} + * @memberof PatSpec + */ + 'username': string; } + diff --git a/ui/packages/api-client/src/models/personal-access-token-list.ts b/ui/packages/api-client/src/models/personal-access-token-list.ts index f4591d7fb..9eea88612 100644 --- a/ui/packages/api-client/src/models/personal-access-token-list.ts +++ b/ui/packages/api-client/src/models/personal-access-token-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { PersonalAccessToken } from "./personal-access-token"; +import { PersonalAccessToken } from './personal-access-token'; /** - * + * * @export * @interface PersonalAccessTokenList */ export interface PersonalAccessTokenList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof PersonalAccessTokenList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof PersonalAccessTokenList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof PersonalAccessTokenList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof PersonalAccessTokenList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof PersonalAccessTokenList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof PersonalAccessTokenList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof PersonalAccessTokenList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof PersonalAccessTokenList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof PersonalAccessTokenList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof PersonalAccessTokenList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof PersonalAccessTokenList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof PersonalAccessTokenList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof PersonalAccessTokenList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof PersonalAccessTokenList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof PersonalAccessTokenList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof PersonalAccessTokenList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof PersonalAccessTokenList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof PersonalAccessTokenList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/personal-access-token-spec.ts b/ui/packages/api-client/src/models/personal-access-token-spec.ts deleted file mode 100644 index 765de4821..000000000 --- a/ui/packages/api-client/src/models/personal-access-token-spec.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Halo Next API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface PersonalAccessTokenSpec - */ -export interface PersonalAccessTokenSpec { - /** - * - * @type {string} - * @memberof PersonalAccessTokenSpec - */ - displayName?: string; - /** - * - * @type {string} - * @memberof PersonalAccessTokenSpec - */ - expiresAt?: string; - /** - * - * @type {boolean} - * @memberof PersonalAccessTokenSpec - */ - revoked?: boolean; - /** - * - * @type {string} - * @memberof PersonalAccessTokenSpec - */ - scopes?: string; - /** - * - * @type {string} - * @memberof PersonalAccessTokenSpec - */ - tokenDigest?: string; - /** - * - * @type {string} - * @memberof PersonalAccessTokenSpec - */ - userName?: string; -} diff --git a/ui/packages/api-client/src/models/personal-access-token.ts b/ui/packages/api-client/src/models/personal-access-token.ts index 08385810b..b484820d4 100644 --- a/ui/packages/api-client/src/models/personal-access-token.ts +++ b/ui/packages/api-client/src/models/personal-access-token.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { PatSpec } from "./pat-spec"; +import { PatSpec } from './pat-spec'; /** - * + * * @export * @interface PersonalAccessToken */ export interface PersonalAccessToken { - /** - * - * @type {string} - * @memberof PersonalAccessToken - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof PersonalAccessToken - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof PersonalAccessToken - */ - metadata: Metadata; - /** - * - * @type {PatSpec} - * @memberof PersonalAccessToken - */ - spec?: PatSpec; + /** + * + * @type {string} + * @memberof PersonalAccessToken + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof PersonalAccessToken + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof PersonalAccessToken + */ + 'metadata': Metadata; + /** + * + * @type {PatSpec} + * @memberof PersonalAccessToken + */ + 'spec'?: PatSpec; } + diff --git a/ui/packages/api-client/src/models/plugin-author.ts b/ui/packages/api-client/src/models/plugin-author.ts index 7a7793f6a..f1c97d793 100644 --- a/ui/packages/api-client/src/models/plugin-author.ts +++ b/ui/packages/api-client/src/models/plugin-author.ts @@ -5,29 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface PluginAuthor */ export interface PluginAuthor { - /** - * - * @type {string} - * @memberof PluginAuthor - */ - name: string; - /** - * - * @type {string} - * @memberof PluginAuthor - */ - website?: string; + /** + * + * @type {string} + * @memberof PluginAuthor + */ + 'name': string; + /** + * + * @type {string} + * @memberof PluginAuthor + */ + 'website'?: string; } + diff --git a/ui/packages/api-client/src/models/plugin-list.ts b/ui/packages/api-client/src/models/plugin-list.ts index 10f72e83f..35d6712d1 100644 --- a/ui/packages/api-client/src/models/plugin-list.ts +++ b/ui/packages/api-client/src/models/plugin-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Plugin } from "./plugin"; +import { Plugin } from './plugin'; /** - * + * * @export * @interface PluginList */ export interface PluginList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof PluginList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof PluginList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof PluginList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof PluginList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof PluginList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof PluginList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof PluginList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof PluginList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof PluginList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof PluginList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof PluginList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof PluginList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof PluginList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof PluginList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof PluginList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof PluginList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof PluginList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof PluginList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/plugin-running-state-request.ts b/ui/packages/api-client/src/models/plugin-running-state-request.ts index 1121d2122..ccee79500 100644 --- a/ui/packages/api-client/src/models/plugin-running-state-request.ts +++ b/ui/packages/api-client/src/models/plugin-running-state-request.ts @@ -5,29 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface PluginRunningStateRequest */ export interface PluginRunningStateRequest { - /** - * - * @type {boolean} - * @memberof PluginRunningStateRequest - */ - async?: boolean; - /** - * - * @type {boolean} - * @memberof PluginRunningStateRequest - */ - enable?: boolean; + /** + * + * @type {boolean} + * @memberof PluginRunningStateRequest + */ + 'async'?: boolean; + /** + * + * @type {boolean} + * @memberof PluginRunningStateRequest + */ + 'enable'?: boolean; } + diff --git a/ui/packages/api-client/src/models/plugin-spec.ts b/ui/packages/api-client/src/models/plugin-spec.ts index 2f26f3785..c4c723d07 100644 --- a/ui/packages/api-client/src/models/plugin-spec.ts +++ b/ui/packages/api-client/src/models/plugin-spec.ts @@ -5,109 +5,111 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { License } from "./license"; +import { License } from './license'; // May contain unused imports in some cases // @ts-ignore -import { PluginAuthor } from "./plugin-author"; +import { PluginAuthor } from './plugin-author'; /** - * + * * @export * @interface PluginSpec */ export interface PluginSpec { - /** - * - * @type {PluginAuthor} - * @memberof PluginSpec - */ - author?: PluginAuthor; - /** - * - * @type {string} - * @memberof PluginSpec - */ - configMapName?: string; - /** - * - * @type {string} - * @memberof PluginSpec - */ - description?: string; - /** - * - * @type {string} - * @memberof PluginSpec - */ - displayName?: string; - /** - * - * @type {boolean} - * @memberof PluginSpec - */ - enabled?: boolean; - /** - * - * @type {string} - * @memberof PluginSpec - */ - homepage?: string; - /** - * - * @type {Array} - * @memberof PluginSpec - */ - license?: Array; - /** - * - * @type {string} - * @memberof PluginSpec - */ - logo?: string; - /** - * - * @type {string} - * @memberof PluginSpec - * @deprecated - */ - pluginClass?: string; - /** - * - * @type {{ [key: string]: string; }} - * @memberof PluginSpec - */ - pluginDependencies?: { [key: string]: string }; - /** - * - * @type {string} - * @memberof PluginSpec - */ - repo?: string; - /** - * - * @type {string} - * @memberof PluginSpec - */ - requires?: string; - /** - * - * @type {string} - * @memberof PluginSpec - */ - settingName?: string; - /** - * - * @type {string} - * @memberof PluginSpec - */ - version: string; + /** + * + * @type {PluginAuthor} + * @memberof PluginSpec + */ + 'author'?: PluginAuthor; + /** + * + * @type {string} + * @memberof PluginSpec + */ + 'configMapName'?: string; + /** + * + * @type {string} + * @memberof PluginSpec + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof PluginSpec + */ + 'displayName'?: string; + /** + * + * @type {boolean} + * @memberof PluginSpec + */ + 'enabled'?: boolean; + /** + * + * @type {string} + * @memberof PluginSpec + */ + 'homepage'?: string; + /** + * + * @type {Array} + * @memberof PluginSpec + */ + 'license'?: Array; + /** + * + * @type {string} + * @memberof PluginSpec + */ + 'logo'?: string; + /** + * + * @type {string} + * @memberof PluginSpec + * @deprecated + */ + 'pluginClass'?: string; + /** + * + * @type {{ [key: string]: string; }} + * @memberof PluginSpec + */ + 'pluginDependencies'?: { [key: string]: string; }; + /** + * + * @type {string} + * @memberof PluginSpec + */ + 'repo'?: string; + /** + * + * @type {string} + * @memberof PluginSpec + */ + 'requires'?: string; + /** + * + * @type {string} + * @memberof PluginSpec + */ + 'settingName'?: string; + /** + * + * @type {string} + * @memberof PluginSpec + */ + 'version': string; } + diff --git a/ui/packages/api-client/src/models/plugin-status.ts b/ui/packages/api-client/src/models/plugin-status.ts index 5d7fa8472..59dd538c9 100644 --- a/ui/packages/api-client/src/models/plugin-status.ts +++ b/ui/packages/api-client/src/models/plugin-status.ts @@ -5,96 +5,97 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Condition } from "./condition"; +import { Condition } from './condition'; /** - * + * * @export * @interface PluginStatus */ export interface PluginStatus { - /** - * - * @type {Array} - * @memberof PluginStatus - */ - conditions?: Array; - /** - * - * @type {string} - * @memberof PluginStatus - */ - entry?: string; - /** - * - * @type {string} - * @memberof PluginStatus - */ - lastProbeState?: PluginStatusLastProbeStateEnum; - /** - * - * @type {string} - * @memberof PluginStatus - */ - lastStartTime?: string; - /** - * Load location of the plugin, often a path. - * @type {string} - * @memberof PluginStatus - */ - loadLocation?: string; - /** - * - * @type {string} - * @memberof PluginStatus - */ - logo?: string; - /** - * - * @type {string} - * @memberof PluginStatus - */ - phase?: PluginStatusPhaseEnum; - /** - * - * @type {string} - * @memberof PluginStatus - */ - stylesheet?: string; + /** + * + * @type {Array} + * @memberof PluginStatus + */ + 'conditions'?: Array; + /** + * + * @type {string} + * @memberof PluginStatus + */ + 'entry'?: string; + /** + * + * @type {string} + * @memberof PluginStatus + */ + 'lastProbeState'?: PluginStatusLastProbeStateEnum; + /** + * + * @type {string} + * @memberof PluginStatus + */ + 'lastStartTime'?: string; + /** + * Load location of the plugin, often a path. + * @type {string} + * @memberof PluginStatus + */ + 'loadLocation'?: string; + /** + * + * @type {string} + * @memberof PluginStatus + */ + 'logo'?: string; + /** + * + * @type {string} + * @memberof PluginStatus + */ + 'phase'?: PluginStatusPhaseEnum; + /** + * + * @type {string} + * @memberof PluginStatus + */ + 'stylesheet'?: string; } export const PluginStatusLastProbeStateEnum = { - Created: "CREATED", - Disabled: "DISABLED", - Resolved: "RESOLVED", - Started: "STARTED", - Stopped: "STOPPED", - Failed: "FAILED", - Unloaded: "UNLOADED", + Created: 'CREATED', + Disabled: 'DISABLED', + Resolved: 'RESOLVED', + Started: 'STARTED', + Stopped: 'STOPPED', + Failed: 'FAILED', + Unloaded: 'UNLOADED' } as const; -export type PluginStatusLastProbeStateEnum = - (typeof PluginStatusLastProbeStateEnum)[keyof typeof PluginStatusLastProbeStateEnum]; +export type PluginStatusLastProbeStateEnum = typeof PluginStatusLastProbeStateEnum[keyof typeof PluginStatusLastProbeStateEnum]; export const PluginStatusPhaseEnum = { - Pending: "PENDING", - Starting: "STARTING", - Created: "CREATED", - Disabled: "DISABLED", - Resolved: "RESOLVED", - Started: "STARTED", - Stopped: "STOPPED", - Failed: "FAILED", - Unknown: "UNKNOWN", + Pending: 'PENDING', + Starting: 'STARTING', + Created: 'CREATED', + Disabled: 'DISABLED', + Resolved: 'RESOLVED', + Started: 'STARTED', + Stopped: 'STOPPED', + Failed: 'FAILED', + Unknown: 'UNKNOWN' } as const; -export type PluginStatusPhaseEnum = - (typeof PluginStatusPhaseEnum)[keyof typeof PluginStatusPhaseEnum]; +export type PluginStatusPhaseEnum = typeof PluginStatusPhaseEnum[keyof typeof PluginStatusPhaseEnum]; + + diff --git a/ui/packages/api-client/src/models/plugin.ts b/ui/packages/api-client/src/models/plugin.ts index ecd1c9825..a17ff0ca8 100644 --- a/ui/packages/api-client/src/models/plugin.ts +++ b/ui/packages/api-client/src/models/plugin.ts @@ -5,57 +5,59 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { PluginSpec } from "./plugin-spec"; +import { PluginSpec } from './plugin-spec'; // May contain unused imports in some cases // @ts-ignore -import { PluginStatus } from "./plugin-status"; +import { PluginStatus } from './plugin-status'; /** - * + * * @export * @interface Plugin */ export interface Plugin { - /** - * - * @type {string} - * @memberof Plugin - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof Plugin - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Plugin - */ - metadata: Metadata; - /** - * - * @type {PluginSpec} - * @memberof Plugin - */ - spec: PluginSpec; - /** - * - * @type {PluginStatus} - * @memberof Plugin - */ - status?: PluginStatus; + /** + * + * @type {string} + * @memberof Plugin + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof Plugin + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Plugin + */ + 'metadata': Metadata; + /** + * + * @type {PluginSpec} + * @memberof Plugin + */ + 'spec': PluginSpec; + /** + * + * @type {PluginStatus} + * @memberof Plugin + */ + 'status'?: PluginStatus; } + diff --git a/ui/packages/api-client/src/models/policy-list.ts b/ui/packages/api-client/src/models/policy-list.ts index bdac56626..cf743620a 100644 --- a/ui/packages/api-client/src/models/policy-list.ts +++ b/ui/packages/api-client/src/models/policy-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Policy } from "./policy"; +import { Policy } from './policy'; /** - * + * * @export * @interface PolicyList */ export interface PolicyList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof PolicyList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof PolicyList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof PolicyList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof PolicyList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof PolicyList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof PolicyList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof PolicyList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof PolicyList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof PolicyList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof PolicyList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof PolicyList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof PolicyList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof PolicyList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof PolicyList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof PolicyList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof PolicyList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof PolicyList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof PolicyList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/policy-rule.ts b/ui/packages/api-client/src/models/policy-rule.ts index 97ed72969..1ff59d638 100644 --- a/ui/packages/api-client/src/models/policy-rule.ts +++ b/ui/packages/api-client/src/models/policy-rule.ts @@ -5,47 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface PolicyRule */ export interface PolicyRule { - /** - * - * @type {Array} - * @memberof PolicyRule - */ - apiGroups?: Array; - /** - * - * @type {Array} - * @memberof PolicyRule - */ - nonResourceURLs?: Array; - /** - * - * @type {Array} - * @memberof PolicyRule - */ - resourceNames?: Array; - /** - * - * @type {Array} - * @memberof PolicyRule - */ - resources?: Array; - /** - * - * @type {Array} - * @memberof PolicyRule - */ - verbs?: Array; + /** + * + * @type {Array} + * @memberof PolicyRule + */ + 'apiGroups'?: Array; + /** + * + * @type {Array} + * @memberof PolicyRule + */ + 'nonResourceURLs'?: Array; + /** + * + * @type {Array} + * @memberof PolicyRule + */ + 'resourceNames'?: Array; + /** + * + * @type {Array} + * @memberof PolicyRule + */ + 'resources'?: Array; + /** + * + * @type {Array} + * @memberof PolicyRule + */ + 'verbs'?: Array; } + diff --git a/ui/packages/api-client/src/models/policy-spec.ts b/ui/packages/api-client/src/models/policy-spec.ts index 14e5b7b8c..941678de8 100644 --- a/ui/packages/api-client/src/models/policy-spec.ts +++ b/ui/packages/api-client/src/models/policy-spec.ts @@ -5,35 +5,38 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface PolicySpec */ export interface PolicySpec { - /** - * Reference name of ConfigMap extension - * @type {string} - * @memberof PolicySpec - */ - configMapName?: string; - /** - * Display name of policy - * @type {string} - * @memberof PolicySpec - */ - displayName: string; - /** - * Reference name of PolicyTemplate - * @type {string} - * @memberof PolicySpec - */ - templateName: string; + /** + * Reference name of ConfigMap extension + * @type {string} + * @memberof PolicySpec + */ + 'configMapName'?: string; + /** + * Display name of policy + * @type {string} + * @memberof PolicySpec + */ + 'displayName': string; + /** + * Reference name of PolicyTemplate + * @type {string} + * @memberof PolicySpec + */ + 'templateName': string; } + diff --git a/ui/packages/api-client/src/models/policy-template-list.ts b/ui/packages/api-client/src/models/policy-template-list.ts index cd9712ff9..f87975fec 100644 --- a/ui/packages/api-client/src/models/policy-template-list.ts +++ b/ui/packages/api-client/src/models/policy-template-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { PolicyTemplate } from "./policy-template"; +import { PolicyTemplate } from './policy-template'; /** - * + * * @export * @interface PolicyTemplateList */ export interface PolicyTemplateList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof PolicyTemplateList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof PolicyTemplateList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof PolicyTemplateList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof PolicyTemplateList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof PolicyTemplateList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof PolicyTemplateList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof PolicyTemplateList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof PolicyTemplateList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof PolicyTemplateList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof PolicyTemplateList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof PolicyTemplateList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof PolicyTemplateList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof PolicyTemplateList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof PolicyTemplateList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof PolicyTemplateList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof PolicyTemplateList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof PolicyTemplateList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof PolicyTemplateList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/policy-template-spec.ts b/ui/packages/api-client/src/models/policy-template-spec.ts index 3f800d4dd..51f89e21f 100644 --- a/ui/packages/api-client/src/models/policy-template-spec.ts +++ b/ui/packages/api-client/src/models/policy-template-spec.ts @@ -5,29 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface PolicyTemplateSpec */ export interface PolicyTemplateSpec { - /** - * - * @type {string} - * @memberof PolicyTemplateSpec - */ - displayName?: string; - /** - * - * @type {string} - * @memberof PolicyTemplateSpec - */ - settingName: string; + /** + * + * @type {string} + * @memberof PolicyTemplateSpec + */ + 'displayName'?: string; + /** + * + * @type {string} + * @memberof PolicyTemplateSpec + */ + 'settingName': string; } + diff --git a/ui/packages/api-client/src/models/policy-template.ts b/ui/packages/api-client/src/models/policy-template.ts index df10150d1..5df681f9f 100644 --- a/ui/packages/api-client/src/models/policy-template.ts +++ b/ui/packages/api-client/src/models/policy-template.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { PolicyTemplateSpec } from "./policy-template-spec"; +import { PolicyTemplateSpec } from './policy-template-spec'; /** - * + * * @export * @interface PolicyTemplate */ export interface PolicyTemplate { - /** - * - * @type {string} - * @memberof PolicyTemplate - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof PolicyTemplate - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof PolicyTemplate - */ - metadata: Metadata; - /** - * - * @type {PolicyTemplateSpec} - * @memberof PolicyTemplate - */ - spec?: PolicyTemplateSpec; + /** + * + * @type {string} + * @memberof PolicyTemplate + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof PolicyTemplate + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof PolicyTemplate + */ + 'metadata': Metadata; + /** + * + * @type {PolicyTemplateSpec} + * @memberof PolicyTemplate + */ + 'spec'?: PolicyTemplateSpec; } + diff --git a/ui/packages/api-client/src/models/policy.ts b/ui/packages/api-client/src/models/policy.ts index 20c680bae..f27696d95 100644 --- a/ui/packages/api-client/src/models/policy.ts +++ b/ui/packages/api-client/src/models/policy.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { PolicySpec } from "./policy-spec"; +import { PolicySpec } from './policy-spec'; /** - * + * * @export * @interface Policy */ export interface Policy { - /** - * - * @type {string} - * @memberof Policy - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof Policy - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Policy - */ - metadata: Metadata; - /** - * - * @type {PolicySpec} - * @memberof Policy - */ - spec: PolicySpec; + /** + * + * @type {string} + * @memberof Policy + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof Policy + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Policy + */ + 'metadata': Metadata; + /** + * + * @type {PolicySpec} + * @memberof Policy + */ + 'spec': PolicySpec; } + diff --git a/ui/packages/api-client/src/models/post-hit.ts b/ui/packages/api-client/src/models/post-hit.ts index d2400fa1e..39059b4d7 100644 --- a/ui/packages/api-client/src/models/post-hit.ts +++ b/ui/packages/api-client/src/models/post-hit.ts @@ -5,47 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface PostHit */ export interface PostHit { - /** - * - * @type {string} - * @memberof PostHit - */ - content?: string; - /** - * - * @type {string} - * @memberof PostHit - */ - name?: string; - /** - * - * @type {string} - * @memberof PostHit - */ - permalink?: string; - /** - * - * @type {string} - * @memberof PostHit - */ - publishTimestamp?: string; - /** - * - * @type {string} - * @memberof PostHit - */ - title?: string; + /** + * + * @type {string} + * @memberof PostHit + */ + 'content'?: string; + /** + * + * @type {string} + * @memberof PostHit + */ + 'name'?: string; + /** + * + * @type {string} + * @memberof PostHit + */ + 'permalink'?: string; + /** + * + * @type {string} + * @memberof PostHit + */ + 'publishTimestamp'?: string; + /** + * + * @type {string} + * @memberof PostHit + */ + 'title'?: string; } + diff --git a/ui/packages/api-client/src/models/post-hits.ts b/ui/packages/api-client/src/models/post-hits.ts index c07e94f42..8207ba983 100644 --- a/ui/packages/api-client/src/models/post-hits.ts +++ b/ui/packages/api-client/src/models/post-hits.ts @@ -5,51 +5,53 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { PostHit } from "./post-hit"; +import { PostHit } from './post-hit'; /** - * + * * @export * @interface PostHits */ export interface PostHits { - /** - * - * @type {Array} - * @memberof PostHits - */ - hits?: Array; - /** - * - * @type {string} - * @memberof PostHits - */ - keyword?: string; - /** - * - * @type {number} - * @memberof PostHits - */ - limit?: number; - /** - * - * @type {number} - * @memberof PostHits - */ - processingTimeMillis?: number; - /** - * - * @type {number} - * @memberof PostHits - */ - total?: number; + /** + * + * @type {Array} + * @memberof PostHits + */ + 'hits'?: Array; + /** + * + * @type {string} + * @memberof PostHits + */ + 'keyword'?: string; + /** + * + * @type {number} + * @memberof PostHits + */ + 'limit'?: number; + /** + * + * @type {number} + * @memberof PostHits + */ + 'processingTimeMillis'?: number; + /** + * + * @type {number} + * @memberof PostHits + */ + 'total'?: number; } + diff --git a/ui/packages/api-client/src/models/post-list.ts b/ui/packages/api-client/src/models/post-list.ts index 7e691324d..0db8323da 100644 --- a/ui/packages/api-client/src/models/post-list.ts +++ b/ui/packages/api-client/src/models/post-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Post } from "./post"; +import { Post } from './post'; /** - * + * * @export * @interface PostList */ export interface PostList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof PostList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof PostList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof PostList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof PostList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof PostList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof PostList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof PostList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof PostList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof PostList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof PostList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof PostList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof PostList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof PostList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof PostList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof PostList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof PostList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof PostList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof PostList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/post-request-content.ts b/ui/packages/api-client/src/models/post-request-content.ts deleted file mode 100644 index 2510a0f75..000000000 --- a/ui/packages/api-client/src/models/post-request-content.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Halo Next API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface PostRequestContent - */ -export interface PostRequestContent { - /** - * - * @type {string} - * @memberof PostRequestContent - */ - content?: string; - /** - * - * @type {string} - * @memberof PostRequestContent - */ - raw?: string; - /** - * - * @type {string} - * @memberof PostRequestContent - */ - rawType?: string; -} diff --git a/ui/packages/api-client/src/models/post-request.ts b/ui/packages/api-client/src/models/post-request.ts index 0c0655ad4..5d144c017 100644 --- a/ui/packages/api-client/src/models/post-request.ts +++ b/ui/packages/api-client/src/models/post-request.ts @@ -5,36 +5,38 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Content } from "./content"; +import { Content } from './content'; // May contain unused imports in some cases // @ts-ignore -import { Post } from "./post"; +import { Post } from './post'; /** - * + * * @export * @interface PostRequest */ export interface PostRequest { - /** - * - * @type {Content} - * @memberof PostRequest - */ - content?: Content; - /** - * - * @type {Post} - * @memberof PostRequest - */ - post: Post; + /** + * + * @type {Content} + * @memberof PostRequest + */ + 'content'?: Content; + /** + * + * @type {Post} + * @memberof PostRequest + */ + 'post': Post; } + diff --git a/ui/packages/api-client/src/models/post-spec.ts b/ui/packages/api-client/src/models/post-spec.ts index d75792c26..be0ec7328 100644 --- a/ui/packages/api-client/src/models/post-spec.ts +++ b/ui/packages/api-client/src/models/post-spec.ts @@ -5,144 +5,146 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Excerpt } from "./excerpt"; +import { Excerpt } from './excerpt'; /** - * + * * @export * @interface PostSpec */ export interface PostSpec { - /** - * - * @type {boolean} - * @memberof PostSpec - */ - allowComment: boolean; - /** - * - * @type {string} - * @memberof PostSpec - */ - baseSnapshot?: string; - /** - * - * @type {Array} - * @memberof PostSpec - */ - categories?: Array; - /** - * - * @type {string} - * @memberof PostSpec - */ - cover?: string; - /** - * - * @type {boolean} - * @memberof PostSpec - */ - deleted: boolean; - /** - * - * @type {Excerpt} - * @memberof PostSpec - */ - excerpt: Excerpt; - /** - * - * @type {string} - * @memberof PostSpec - */ - headSnapshot?: string; - /** - * - * @type {Array<{ [key: string]: string; }>} - * @memberof PostSpec - */ - htmlMetas?: Array<{ [key: string]: string }>; - /** - * - * @type {string} - * @memberof PostSpec - */ - owner?: string; - /** - * - * @type {boolean} - * @memberof PostSpec - */ - pinned: boolean; - /** - * - * @type {number} - * @memberof PostSpec - */ - priority: number; - /** - * - * @type {boolean} - * @memberof PostSpec - */ - publish: boolean; - /** - * - * @type {string} - * @memberof PostSpec - */ - publishTime?: string; - /** - * - * @type {string} - * @memberof PostSpec - */ - releaseSnapshot?: string; - /** - * - * @type {string} - * @memberof PostSpec - */ - slug: string; - /** - * - * @type {Array} - * @memberof PostSpec - */ - tags?: Array; - /** - * - * @type {string} - * @memberof PostSpec - */ - template?: string; - /** - * - * @type {string} - * @memberof PostSpec - */ - title: string; - /** - * - * @type {string} - * @memberof PostSpec - */ - visible: PostSpecVisibleEnum; + /** + * + * @type {boolean} + * @memberof PostSpec + */ + 'allowComment': boolean; + /** + * + * @type {string} + * @memberof PostSpec + */ + 'baseSnapshot'?: string; + /** + * + * @type {Array} + * @memberof PostSpec + */ + 'categories'?: Array; + /** + * + * @type {string} + * @memberof PostSpec + */ + 'cover'?: string; + /** + * + * @type {boolean} + * @memberof PostSpec + */ + 'deleted': boolean; + /** + * + * @type {Excerpt} + * @memberof PostSpec + */ + 'excerpt': Excerpt; + /** + * + * @type {string} + * @memberof PostSpec + */ + 'headSnapshot'?: string; + /** + * + * @type {Array<{ [key: string]: string; }>} + * @memberof PostSpec + */ + 'htmlMetas'?: Array<{ [key: string]: string; }>; + /** + * + * @type {string} + * @memberof PostSpec + */ + 'owner'?: string; + /** + * + * @type {boolean} + * @memberof PostSpec + */ + 'pinned': boolean; + /** + * + * @type {number} + * @memberof PostSpec + */ + 'priority': number; + /** + * + * @type {boolean} + * @memberof PostSpec + */ + 'publish': boolean; + /** + * + * @type {string} + * @memberof PostSpec + */ + 'publishTime'?: string; + /** + * + * @type {string} + * @memberof PostSpec + */ + 'releaseSnapshot'?: string; + /** + * + * @type {string} + * @memberof PostSpec + */ + 'slug': string; + /** + * + * @type {Array} + * @memberof PostSpec + */ + 'tags'?: Array; + /** + * + * @type {string} + * @memberof PostSpec + */ + 'template'?: string; + /** + * + * @type {string} + * @memberof PostSpec + */ + 'title': string; + /** + * + * @type {string} + * @memberof PostSpec + */ + 'visible': PostSpecVisibleEnum; } export const PostSpecVisibleEnum = { - Public: "PUBLIC", - Internal: "INTERNAL", - Private: "PRIVATE", + Public: 'PUBLIC', + Internal: 'INTERNAL', + Private: 'PRIVATE' } as const; -export type PostSpecVisibleEnum = - (typeof PostSpecVisibleEnum)[keyof typeof PostSpecVisibleEnum]; +export type PostSpecVisibleEnum = typeof PostSpecVisibleEnum[keyof typeof PostSpecVisibleEnum]; + + diff --git a/ui/packages/api-client/src/models/post-status.ts b/ui/packages/api-client/src/models/post-status.ts index b59635bcc..192cd3ded 100644 --- a/ui/packages/api-client/src/models/post-status.ts +++ b/ui/packages/api-client/src/models/post-status.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Condition } from "./condition"; +import { Condition } from './condition'; /** - * + * * @export * @interface PostStatus */ export interface PostStatus { - /** - * - * @type {number} - * @memberof PostStatus - */ - commentsCount?: number; - /** - * - * @type {Array} - * @memberof PostStatus - */ - conditions?: Array; - /** - * - * @type {Array} - * @memberof PostStatus - */ - contributors?: Array; - /** - * - * @type {string} - * @memberof PostStatus - */ - excerpt?: string; - /** - * - * @type {boolean} - * @memberof PostStatus - */ - inProgress?: boolean; - /** - * - * @type {string} - * @memberof PostStatus - */ - lastModifyTime?: string; - /** - * - * @type {number} - * @memberof PostStatus - */ - observedVersion?: number; - /** - * - * @type {string} - * @memberof PostStatus - */ - permalink?: string; - /** - * - * @type {string} - * @memberof PostStatus - */ - phase: string; + /** + * + * @type {number} + * @memberof PostStatus + */ + 'commentsCount'?: number; + /** + * + * @type {Array} + * @memberof PostStatus + */ + 'conditions'?: Array; + /** + * + * @type {Array} + * @memberof PostStatus + */ + 'contributors'?: Array; + /** + * + * @type {string} + * @memberof PostStatus + */ + 'excerpt'?: string; + /** + * + * @type {boolean} + * @memberof PostStatus + */ + 'inProgress'?: boolean; + /** + * + * @type {string} + * @memberof PostStatus + */ + 'lastModifyTime'?: string; + /** + * + * @type {number} + * @memberof PostStatus + */ + 'observedVersion'?: number; + /** + * + * @type {string} + * @memberof PostStatus + */ + 'permalink'?: string; + /** + * + * @type {string} + * @memberof PostStatus + */ + 'phase': string; } + diff --git a/ui/packages/api-client/src/models/post-vo.ts b/ui/packages/api-client/src/models/post-vo.ts index 29bed5e27..7aacb9a09 100644 --- a/ui/packages/api-client/src/models/post-vo.ts +++ b/ui/packages/api-client/src/models/post-vo.ts @@ -5,96 +5,98 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { CategoryVo } from "./category-vo"; +import { CategoryVo } from './category-vo'; // May contain unused imports in some cases // @ts-ignore -import { ContentVo } from "./content-vo"; +import { ContentVo } from './content-vo'; // May contain unused imports in some cases // @ts-ignore -import { ContributorVo } from "./contributor-vo"; +import { ContributorVo } from './contributor-vo'; // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { PostSpec } from "./post-spec"; +import { PostSpec } from './post-spec'; // May contain unused imports in some cases // @ts-ignore -import { PostStatus } from "./post-status"; +import { PostStatus } from './post-status'; // May contain unused imports in some cases // @ts-ignore -import { StatsVo } from "./stats-vo"; +import { StatsVo } from './stats-vo'; // May contain unused imports in some cases // @ts-ignore -import { TagVo } from "./tag-vo"; +import { TagVo } from './tag-vo'; /** - * + * * @export * @interface PostVo */ export interface PostVo { - /** - * - * @type {Array} - * @memberof PostVo - */ - categories?: Array; - /** - * - * @type {ContentVo} - * @memberof PostVo - */ - content?: ContentVo; - /** - * - * @type {Array} - * @memberof PostVo - */ - contributors?: Array; - /** - * - * @type {Metadata} - * @memberof PostVo - */ - metadata: Metadata; - /** - * - * @type {ContributorVo} - * @memberof PostVo - */ - owner?: ContributorVo; - /** - * - * @type {PostSpec} - * @memberof PostVo - */ - spec?: PostSpec; - /** - * - * @type {StatsVo} - * @memberof PostVo - */ - stats?: StatsVo; - /** - * - * @type {PostStatus} - * @memberof PostVo - */ - status?: PostStatus; - /** - * - * @type {Array} - * @memberof PostVo - */ - tags?: Array; + /** + * + * @type {Array} + * @memberof PostVo + */ + 'categories'?: Array; + /** + * + * @type {ContentVo} + * @memberof PostVo + */ + 'content'?: ContentVo; + /** + * + * @type {Array} + * @memberof PostVo + */ + 'contributors'?: Array; + /** + * + * @type {Metadata} + * @memberof PostVo + */ + 'metadata': Metadata; + /** + * + * @type {ContributorVo} + * @memberof PostVo + */ + 'owner'?: ContributorVo; + /** + * + * @type {PostSpec} + * @memberof PostVo + */ + 'spec'?: PostSpec; + /** + * + * @type {StatsVo} + * @memberof PostVo + */ + 'stats'?: StatsVo; + /** + * + * @type {PostStatus} + * @memberof PostVo + */ + 'status'?: PostStatus; + /** + * + * @type {Array} + * @memberof PostVo + */ + 'tags'?: Array; } + diff --git a/ui/packages/api-client/src/models/post.ts b/ui/packages/api-client/src/models/post.ts index cad34679b..5375102ee 100644 --- a/ui/packages/api-client/src/models/post.ts +++ b/ui/packages/api-client/src/models/post.ts @@ -5,57 +5,59 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { PostSpec } from "./post-spec"; +import { PostSpec } from './post-spec'; // May contain unused imports in some cases // @ts-ignore -import { PostStatus } from "./post-status"; +import { PostStatus } from './post-status'; /** - * + * * @export * @interface Post */ export interface Post { - /** - * - * @type {string} - * @memberof Post - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof Post - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Post - */ - metadata: Metadata; - /** - * - * @type {PostSpec} - * @memberof Post - */ - spec: PostSpec; - /** - * - * @type {PostStatus} - * @memberof Post - */ - status?: PostStatus; + /** + * + * @type {string} + * @memberof Post + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof Post + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Post + */ + 'metadata': Metadata; + /** + * + * @type {PostSpec} + * @memberof Post + */ + 'spec': PostSpec; + /** + * + * @type {PostStatus} + * @memberof Post + */ + 'status'?: PostStatus; } + diff --git a/ui/packages/api-client/src/models/public-key-response.ts b/ui/packages/api-client/src/models/public-key-response.ts index 3220f46be..1c7fdd360 100644 --- a/ui/packages/api-client/src/models/public-key-response.ts +++ b/ui/packages/api-client/src/models/public-key-response.ts @@ -5,23 +5,26 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface PublicKeyResponse */ export interface PublicKeyResponse { - /** - * - * @type {string} - * @memberof PublicKeyResponse - */ - base64Format?: string; + /** + * + * @type {string} + * @memberof PublicKeyResponse + */ + 'base64Format'?: string; } + diff --git a/ui/packages/api-client/src/models/reason-list.ts b/ui/packages/api-client/src/models/reason-list.ts index 966dc1ad9..79d62ba78 100644 --- a/ui/packages/api-client/src/models/reason-list.ts +++ b/ui/packages/api-client/src/models/reason-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Reason } from "./reason"; +import { Reason } from './reason'; /** - * + * * @export * @interface ReasonList */ export interface ReasonList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof ReasonList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ReasonList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ReasonList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof ReasonList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof ReasonList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ReasonList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ReasonList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof ReasonList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof ReasonList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof ReasonList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ReasonList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ReasonList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof ReasonList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof ReasonList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ReasonList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ReasonList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof ReasonList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof ReasonList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/reason-property.ts b/ui/packages/api-client/src/models/reason-property.ts index b8123c6fc..c3da9a99c 100644 --- a/ui/packages/api-client/src/models/reason-property.ts +++ b/ui/packages/api-client/src/models/reason-property.ts @@ -5,41 +5,44 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface ReasonProperty */ export interface ReasonProperty { - /** - * - * @type {string} - * @memberof ReasonProperty - */ - description?: string; - /** - * - * @type {string} - * @memberof ReasonProperty - */ - name: string; - /** - * - * @type {boolean} - * @memberof ReasonProperty - */ - optional?: boolean; - /** - * - * @type {string} - * @memberof ReasonProperty - */ - type: string; + /** + * + * @type {string} + * @memberof ReasonProperty + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof ReasonProperty + */ + 'name': string; + /** + * + * @type {boolean} + * @memberof ReasonProperty + */ + 'optional'?: boolean; + /** + * + * @type {string} + * @memberof ReasonProperty + */ + 'type': string; } + diff --git a/ui/packages/api-client/src/models/reason-selector.ts b/ui/packages/api-client/src/models/reason-selector.ts index 9fc079200..a32ec0bed 100644 --- a/ui/packages/api-client/src/models/reason-selector.ts +++ b/ui/packages/api-client/src/models/reason-selector.ts @@ -5,29 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface ReasonSelector */ export interface ReasonSelector { - /** - * - * @type {string} - * @memberof ReasonSelector - */ - language: string; - /** - * - * @type {string} - * @memberof ReasonSelector - */ - reasonType: string; + /** + * + * @type {string} + * @memberof ReasonSelector + */ + 'language': string; + /** + * + * @type {string} + * @memberof ReasonSelector + */ + 'reasonType': string; } + diff --git a/ui/packages/api-client/src/models/reason-spec-attributes.ts b/ui/packages/api-client/src/models/reason-spec-attributes.ts index 69e0df65f..95d81e4fe 100644 --- a/ui/packages/api-client/src/models/reason-spec-attributes.ts +++ b/ui/packages/api-client/src/models/reason-spec-attributes.ts @@ -5,23 +5,26 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** * Attributes used to transfer data * @export * @interface ReasonSpecAttributes */ export interface ReasonSpecAttributes { - /** - * - * @type {boolean} - * @memberof ReasonSpecAttributes - */ - empty?: boolean; + /** + * + * @type {boolean} + * @memberof ReasonSpecAttributes + */ + 'empty'?: boolean; } + diff --git a/ui/packages/api-client/src/models/reason-spec.ts b/ui/packages/api-client/src/models/reason-spec.ts index 136aa8039..cab0fdc82 100644 --- a/ui/packages/api-client/src/models/reason-spec.ts +++ b/ui/packages/api-client/src/models/reason-spec.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ReasonSpecAttributes } from "./reason-spec-attributes"; +import { ReasonSpecAttributes } from './reason-spec-attributes'; // May contain unused imports in some cases // @ts-ignore -import { ReasonSubject } from "./reason-subject"; +import { ReasonSubject } from './reason-subject'; /** - * + * * @export * @interface ReasonSpec */ export interface ReasonSpec { - /** - * - * @type {ReasonSpecAttributes} - * @memberof ReasonSpec - */ - attributes?: ReasonSpecAttributes; - /** - * - * @type {string} - * @memberof ReasonSpec - */ - author: string; - /** - * - * @type {string} - * @memberof ReasonSpec - */ - reasonType: string; - /** - * - * @type {ReasonSubject} - * @memberof ReasonSpec - */ - subject: ReasonSubject; + /** + * + * @type {ReasonSpecAttributes} + * @memberof ReasonSpec + */ + 'attributes'?: ReasonSpecAttributes; + /** + * + * @type {string} + * @memberof ReasonSpec + */ + 'author': string; + /** + * + * @type {string} + * @memberof ReasonSpec + */ + 'reasonType': string; + /** + * + * @type {ReasonSubject} + * @memberof ReasonSpec + */ + 'subject': ReasonSubject; } + diff --git a/ui/packages/api-client/src/models/reason-subject.ts b/ui/packages/api-client/src/models/reason-subject.ts index 2955ca7de..f6e2f72a6 100644 --- a/ui/packages/api-client/src/models/reason-subject.ts +++ b/ui/packages/api-client/src/models/reason-subject.ts @@ -5,47 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface ReasonSubject */ export interface ReasonSubject { - /** - * - * @type {string} - * @memberof ReasonSubject - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof ReasonSubject - */ - kind: string; - /** - * - * @type {string} - * @memberof ReasonSubject - */ - name: string; - /** - * - * @type {string} - * @memberof ReasonSubject - */ - title: string; - /** - * - * @type {string} - * @memberof ReasonSubject - */ - url?: string; + /** + * + * @type {string} + * @memberof ReasonSubject + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof ReasonSubject + */ + 'kind': string; + /** + * + * @type {string} + * @memberof ReasonSubject + */ + 'name': string; + /** + * + * @type {string} + * @memberof ReasonSubject + */ + 'title': string; + /** + * + * @type {string} + * @memberof ReasonSubject + */ + 'url'?: string; } + diff --git a/ui/packages/api-client/src/models/reason-type-info.ts b/ui/packages/api-client/src/models/reason-type-info.ts index 422b2cabd..4db13a07c 100644 --- a/ui/packages/api-client/src/models/reason-type-info.ts +++ b/ui/packages/api-client/src/models/reason-type-info.ts @@ -5,41 +5,44 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface ReasonTypeInfo */ export interface ReasonTypeInfo { - /** - * - * @type {string} - * @memberof ReasonTypeInfo - */ - description?: string; - /** - * - * @type {string} - * @memberof ReasonTypeInfo - */ - displayName?: string; - /** - * - * @type {string} - * @memberof ReasonTypeInfo - */ - name?: string; - /** - * - * @type {Array} - * @memberof ReasonTypeInfo - */ - uiPermissions?: Array; + /** + * + * @type {string} + * @memberof ReasonTypeInfo + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof ReasonTypeInfo + */ + 'displayName'?: string; + /** + * + * @type {string} + * @memberof ReasonTypeInfo + */ + 'name'?: string; + /** + * + * @type {Array} + * @memberof ReasonTypeInfo + */ + 'uiPermissions'?: Array; } + diff --git a/ui/packages/api-client/src/models/reason-type-list.ts b/ui/packages/api-client/src/models/reason-type-list.ts index c1ed630b2..591577d05 100644 --- a/ui/packages/api-client/src/models/reason-type-list.ts +++ b/ui/packages/api-client/src/models/reason-type-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ReasonType } from "./reason-type"; +import { ReasonType } from './reason-type'; /** - * + * * @export * @interface ReasonTypeList */ export interface ReasonTypeList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof ReasonTypeList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ReasonTypeList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ReasonTypeList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof ReasonTypeList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof ReasonTypeList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ReasonTypeList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ReasonTypeList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof ReasonTypeList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof ReasonTypeList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof ReasonTypeList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ReasonTypeList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ReasonTypeList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof ReasonTypeList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof ReasonTypeList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ReasonTypeList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ReasonTypeList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof ReasonTypeList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof ReasonTypeList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/reason-type-notifier-collection-request.ts b/ui/packages/api-client/src/models/reason-type-notifier-collection-request.ts index 908c3b1cd..44cba07c9 100644 --- a/ui/packages/api-client/src/models/reason-type-notifier-collection-request.ts +++ b/ui/packages/api-client/src/models/reason-type-notifier-collection-request.ts @@ -5,27 +5,29 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ReasonTypeNotifierRequest } from "./reason-type-notifier-request"; +import { ReasonTypeNotifierRequest } from './reason-type-notifier-request'; /** - * + * * @export * @interface ReasonTypeNotifierCollectionRequest */ export interface ReasonTypeNotifierCollectionRequest { - /** - * - * @type {Array} - * @memberof ReasonTypeNotifierCollectionRequest - */ - reasonTypeNotifiers: Array; + /** + * + * @type {Array} + * @memberof ReasonTypeNotifierCollectionRequest + */ + 'reasonTypeNotifiers': Array; } + diff --git a/ui/packages/api-client/src/models/reason-type-notifier-matrix-item.ts b/ui/packages/api-client/src/models/reason-type-notifier-matrix-item.ts deleted file mode 100644 index 9cc878442..000000000 --- a/ui/packages/api-client/src/models/reason-type-notifier-matrix-item.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Halo Next API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -// May contain unused imports in some cases -// @ts-ignore -import { NotifierInfo } from "./notifier-info"; -// May contain unused imports in some cases -// @ts-ignore -import { ReasonTypeInfo } from "./reason-type-info"; - -/** - * - * @export - * @interface ReasonTypeNotifierMatrixItem - */ -export interface ReasonTypeNotifierMatrixItem { - /** - * - * @type {boolean} - * @memberof ReasonTypeNotifierMatrixItem - */ - enabled?: boolean; - /** - * - * @type {NotifierInfo} - * @memberof ReasonTypeNotifierMatrixItem - */ - notifier?: NotifierInfo; - /** - * - * @type {ReasonTypeInfo} - * @memberof ReasonTypeNotifierMatrixItem - */ - reasonType?: ReasonTypeInfo; -} diff --git a/ui/packages/api-client/src/models/reason-type-notifier-matrix.ts b/ui/packages/api-client/src/models/reason-type-notifier-matrix.ts index 3ce315c76..c104810cb 100644 --- a/ui/packages/api-client/src/models/reason-type-notifier-matrix.ts +++ b/ui/packages/api-client/src/models/reason-type-notifier-matrix.ts @@ -5,42 +5,44 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { NotifierInfo } from "./notifier-info"; +import { NotifierInfo } from './notifier-info'; // May contain unused imports in some cases // @ts-ignore -import { ReasonTypeInfo } from "./reason-type-info"; +import { ReasonTypeInfo } from './reason-type-info'; /** - * + * * @export * @interface ReasonTypeNotifierMatrix */ export interface ReasonTypeNotifierMatrix { - /** - * - * @type {Array} - * @memberof ReasonTypeNotifierMatrix - */ - notifiers?: Array; - /** - * - * @type {Array} - * @memberof ReasonTypeNotifierMatrix - */ - reasonTypes?: Array; - /** - * - * @type {Array>} - * @memberof ReasonTypeNotifierMatrix - */ - stateMatrix?: Array>; + /** + * + * @type {Array} + * @memberof ReasonTypeNotifierMatrix + */ + 'notifiers'?: Array; + /** + * + * @type {Array} + * @memberof ReasonTypeNotifierMatrix + */ + 'reasonTypes'?: Array; + /** + * + * @type {Array>} + * @memberof ReasonTypeNotifierMatrix + */ + 'stateMatrix'?: Array>; } + diff --git a/ui/packages/api-client/src/models/reason-type-notifier-request.ts b/ui/packages/api-client/src/models/reason-type-notifier-request.ts index 5d71bf99c..bf1425a6e 100644 --- a/ui/packages/api-client/src/models/reason-type-notifier-request.ts +++ b/ui/packages/api-client/src/models/reason-type-notifier-request.ts @@ -5,29 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface ReasonTypeNotifierRequest */ export interface ReasonTypeNotifierRequest { - /** - * - * @type {Array} - * @memberof ReasonTypeNotifierRequest - */ - notifiers?: Array; - /** - * - * @type {string} - * @memberof ReasonTypeNotifierRequest - */ - reasonType?: string; + /** + * + * @type {Array} + * @memberof ReasonTypeNotifierRequest + */ + 'notifiers'?: Array; + /** + * + * @type {string} + * @memberof ReasonTypeNotifierRequest + */ + 'reasonType'?: string; } + diff --git a/ui/packages/api-client/src/models/reason-type-spec.ts b/ui/packages/api-client/src/models/reason-type-spec.ts index c02aace4d..5531d35b3 100644 --- a/ui/packages/api-client/src/models/reason-type-spec.ts +++ b/ui/packages/api-client/src/models/reason-type-spec.ts @@ -5,39 +5,41 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ReasonProperty } from "./reason-property"; +import { ReasonProperty } from './reason-property'; /** - * + * * @export * @interface ReasonTypeSpec */ export interface ReasonTypeSpec { - /** - * - * @type {string} - * @memberof ReasonTypeSpec - */ - description: string; - /** - * - * @type {string} - * @memberof ReasonTypeSpec - */ - displayName: string; - /** - * - * @type {Array} - * @memberof ReasonTypeSpec - */ - properties?: Array; + /** + * + * @type {string} + * @memberof ReasonTypeSpec + */ + 'description': string; + /** + * + * @type {string} + * @memberof ReasonTypeSpec + */ + 'displayName': string; + /** + * + * @type {Array} + * @memberof ReasonTypeSpec + */ + 'properties'?: Array; } + diff --git a/ui/packages/api-client/src/models/reason-type.ts b/ui/packages/api-client/src/models/reason-type.ts index c2e7d152f..45ef049d8 100644 --- a/ui/packages/api-client/src/models/reason-type.ts +++ b/ui/packages/api-client/src/models/reason-type.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { ReasonTypeSpec } from "./reason-type-spec"; +import { ReasonTypeSpec } from './reason-type-spec'; /** - * + * * @export * @interface ReasonType */ export interface ReasonType { - /** - * - * @type {string} - * @memberof ReasonType - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof ReasonType - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof ReasonType - */ - metadata: Metadata; - /** - * - * @type {ReasonTypeSpec} - * @memberof ReasonType - */ - spec?: ReasonTypeSpec; + /** + * + * @type {string} + * @memberof ReasonType + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof ReasonType + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof ReasonType + */ + 'metadata': Metadata; + /** + * + * @type {ReasonTypeSpec} + * @memberof ReasonType + */ + 'spec'?: ReasonTypeSpec; } + diff --git a/ui/packages/api-client/src/models/reason.ts b/ui/packages/api-client/src/models/reason.ts index dd810a523..0525b3ce4 100644 --- a/ui/packages/api-client/src/models/reason.ts +++ b/ui/packages/api-client/src/models/reason.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { ReasonSpec } from "./reason-spec"; +import { ReasonSpec } from './reason-spec'; /** - * + * * @export * @interface Reason */ export interface Reason { - /** - * - * @type {string} - * @memberof Reason - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof Reason - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Reason - */ - metadata: Metadata; - /** - * - * @type {ReasonSpec} - * @memberof Reason - */ - spec?: ReasonSpec; + /** + * + * @type {string} + * @memberof Reason + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof Reason + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Reason + */ + 'metadata': Metadata; + /** + * + * @type {ReasonSpec} + * @memberof Reason + */ + 'spec'?: ReasonSpec; } + diff --git a/ui/packages/api-client/src/models/ref.ts b/ui/packages/api-client/src/models/ref.ts index 9c737bc19..96ec4b1d7 100644 --- a/ui/packages/api-client/src/models/ref.ts +++ b/ui/packages/api-client/src/models/ref.ts @@ -5,41 +5,44 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** * Extension reference object. The name is mandatory * @export * @interface Ref */ export interface Ref { - /** - * Extension group - * @type {string} - * @memberof Ref - */ - group?: string; - /** - * Extension kind - * @type {string} - * @memberof Ref - */ - kind?: string; - /** - * Extension name. This field is mandatory - * @type {string} - * @memberof Ref - */ - name: string; - /** - * Extension version - * @type {string} - * @memberof Ref - */ - version?: string; + /** + * Extension group + * @type {string} + * @memberof Ref + */ + 'group'?: string; + /** + * Extension kind + * @type {string} + * @memberof Ref + */ + 'kind'?: string; + /** + * Extension name. This field is mandatory + * @type {string} + * @memberof Ref + */ + 'name': string; + /** + * Extension version + * @type {string} + * @memberof Ref + */ + 'version'?: string; } + diff --git a/ui/packages/api-client/src/models/register-verify-email-request.ts b/ui/packages/api-client/src/models/register-verify-email-request.ts index 6ffff154c..449ee799f 100644 --- a/ui/packages/api-client/src/models/register-verify-email-request.ts +++ b/ui/packages/api-client/src/models/register-verify-email-request.ts @@ -5,23 +5,26 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface RegisterVerifyEmailRequest */ export interface RegisterVerifyEmailRequest { - /** - * - * @type {string} - * @memberof RegisterVerifyEmailRequest - */ - email: string; + /** + * + * @type {string} + * @memberof RegisterVerifyEmailRequest + */ + 'email': string; } + diff --git a/ui/packages/api-client/src/models/reply-list.ts b/ui/packages/api-client/src/models/reply-list.ts index 839b2fe8a..6dd4fbdae 100644 --- a/ui/packages/api-client/src/models/reply-list.ts +++ b/ui/packages/api-client/src/models/reply-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Reply } from "./reply"; +import { Reply } from './reply'; /** - * + * * @export * @interface ReplyList */ export interface ReplyList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof ReplyList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ReplyList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ReplyList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof ReplyList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof ReplyList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ReplyList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ReplyList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof ReplyList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof ReplyList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof ReplyList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ReplyList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ReplyList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof ReplyList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof ReplyList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ReplyList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ReplyList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof ReplyList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof ReplyList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/reply-request.ts b/ui/packages/api-client/src/models/reply-request.ts index fb23cfc60..574d5083f 100644 --- a/ui/packages/api-client/src/models/reply-request.ts +++ b/ui/packages/api-client/src/models/reply-request.ts @@ -5,51 +5,53 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { CommentEmailOwner } from "./comment-email-owner"; +import { CommentEmailOwner } from './comment-email-owner'; /** - * + * * @export * @interface ReplyRequest */ export interface ReplyRequest { - /** - * - * @type {boolean} - * @memberof ReplyRequest - */ - allowNotification?: boolean; - /** - * - * @type {string} - * @memberof ReplyRequest - */ - content: string; - /** - * - * @type {CommentEmailOwner} - * @memberof ReplyRequest - */ - owner?: CommentEmailOwner; - /** - * - * @type {string} - * @memberof ReplyRequest - */ - quoteReply?: string; - /** - * - * @type {string} - * @memberof ReplyRequest - */ - raw: string; + /** + * + * @type {boolean} + * @memberof ReplyRequest + */ + 'allowNotification'?: boolean; + /** + * + * @type {string} + * @memberof ReplyRequest + */ + 'content': string; + /** + * + * @type {CommentEmailOwner} + * @memberof ReplyRequest + */ + 'owner'?: CommentEmailOwner; + /** + * + * @type {string} + * @memberof ReplyRequest + */ + 'quoteReply'?: string; + /** + * + * @type {string} + * @memberof ReplyRequest + */ + 'raw': string; } + diff --git a/ui/packages/api-client/src/models/reply-spec.ts b/ui/packages/api-client/src/models/reply-spec.ts index 2deab6a44..11e06183a 100644 --- a/ui/packages/api-client/src/models/reply-spec.ts +++ b/ui/packages/api-client/src/models/reply-spec.ts @@ -5,105 +5,107 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { CommentOwner } from "./comment-owner"; +import { CommentOwner } from './comment-owner'; /** - * + * * @export * @interface ReplySpec */ export interface ReplySpec { - /** - * - * @type {boolean} - * @memberof ReplySpec - */ - allowNotification: boolean; - /** - * - * @type {boolean} - * @memberof ReplySpec - */ - approved: boolean; - /** - * - * @type {string} - * @memberof ReplySpec - */ - approvedTime?: string; - /** - * - * @type {string} - * @memberof ReplySpec - */ - commentName: string; - /** - * - * @type {string} - * @memberof ReplySpec - */ - content: string; - /** - * - * @type {string} - * @memberof ReplySpec - */ - creationTime?: string; - /** - * - * @type {boolean} - * @memberof ReplySpec - */ - hidden: boolean; - /** - * - * @type {string} - * @memberof ReplySpec - */ - ipAddress?: string; - /** - * - * @type {CommentOwner} - * @memberof ReplySpec - */ - owner: CommentOwner; - /** - * - * @type {number} - * @memberof ReplySpec - */ - priority: number; - /** - * - * @type {string} - * @memberof ReplySpec - */ - quoteReply?: string; - /** - * - * @type {string} - * @memberof ReplySpec - */ - raw: string; - /** - * - * @type {boolean} - * @memberof ReplySpec - */ - top: boolean; - /** - * - * @type {string} - * @memberof ReplySpec - */ - userAgent?: string; + /** + * + * @type {boolean} + * @memberof ReplySpec + */ + 'allowNotification': boolean; + /** + * + * @type {boolean} + * @memberof ReplySpec + */ + 'approved': boolean; + /** + * + * @type {string} + * @memberof ReplySpec + */ + 'approvedTime'?: string; + /** + * + * @type {string} + * @memberof ReplySpec + */ + 'commentName': string; + /** + * + * @type {string} + * @memberof ReplySpec + */ + 'content': string; + /** + * + * @type {string} + * @memberof ReplySpec + */ + 'creationTime'?: string; + /** + * + * @type {boolean} + * @memberof ReplySpec + */ + 'hidden': boolean; + /** + * + * @type {string} + * @memberof ReplySpec + */ + 'ipAddress'?: string; + /** + * + * @type {CommentOwner} + * @memberof ReplySpec + */ + 'owner': CommentOwner; + /** + * + * @type {number} + * @memberof ReplySpec + */ + 'priority': number; + /** + * + * @type {string} + * @memberof ReplySpec + */ + 'quoteReply'?: string; + /** + * + * @type {string} + * @memberof ReplySpec + */ + 'raw': string; + /** + * + * @type {boolean} + * @memberof ReplySpec + */ + 'top': boolean; + /** + * + * @type {string} + * @memberof ReplySpec + */ + 'userAgent'?: string; } + diff --git a/ui/packages/api-client/src/models/reply-vo-list.ts b/ui/packages/api-client/src/models/reply-vo-list.ts index a193460af..72a570648 100644 --- a/ui/packages/api-client/src/models/reply-vo-list.ts +++ b/ui/packages/api-client/src/models/reply-vo-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ReplyVo } from "./reply-vo"; +import { ReplyVo } from './reply-vo'; /** - * + * * @export * @interface ReplyVoList */ export interface ReplyVoList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof ReplyVoList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ReplyVoList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ReplyVoList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof ReplyVoList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof ReplyVoList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ReplyVoList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ReplyVoList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof ReplyVoList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof ReplyVoList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof ReplyVoList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ReplyVoList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ReplyVoList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof ReplyVoList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof ReplyVoList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ReplyVoList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ReplyVoList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof ReplyVoList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof ReplyVoList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/reply-vo.ts b/ui/packages/api-client/src/models/reply-vo.ts index d6f665666..171b60fdf 100644 --- a/ui/packages/api-client/src/models/reply-vo.ts +++ b/ui/packages/api-client/src/models/reply-vo.ts @@ -5,25 +5,26 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { CommentStatsVo } from "./comment-stats-vo"; +import { CommentStatsVo } from './comment-stats-vo'; // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { OwnerInfo } from "./owner-info"; +import { OwnerInfo } from './owner-info'; // May contain unused imports in some cases // @ts-ignore -import { ReplySpec } from "./reply-spec"; +import { ReplySpec } from './reply-spec'; /** * A chunk of items. @@ -31,28 +32,29 @@ import { ReplySpec } from "./reply-spec"; * @interface ReplyVo */ export interface ReplyVo { - /** - * - * @type {Metadata} - * @memberof ReplyVo - */ - metadata: Metadata; - /** - * - * @type {OwnerInfo} - * @memberof ReplyVo - */ - owner: OwnerInfo; - /** - * - * @type {ReplySpec} - * @memberof ReplyVo - */ - spec: ReplySpec; - /** - * - * @type {CommentStatsVo} - * @memberof ReplyVo - */ - stats: CommentStatsVo; + /** + * + * @type {Metadata} + * @memberof ReplyVo + */ + 'metadata': Metadata; + /** + * + * @type {OwnerInfo} + * @memberof ReplyVo + */ + 'owner': OwnerInfo; + /** + * + * @type {ReplySpec} + * @memberof ReplyVo + */ + 'spec': ReplySpec; + /** + * + * @type {CommentStatsVo} + * @memberof ReplyVo + */ + 'stats': CommentStatsVo; } + diff --git a/ui/packages/api-client/src/models/reply.ts b/ui/packages/api-client/src/models/reply.ts index 93ef14f0b..8ce8856e1 100644 --- a/ui/packages/api-client/src/models/reply.ts +++ b/ui/packages/api-client/src/models/reply.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { ReplySpec } from "./reply-spec"; +import { ReplySpec } from './reply-spec'; /** - * + * * @export * @interface Reply */ export interface Reply { - /** - * - * @type {string} - * @memberof Reply - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof Reply - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Reply - */ - metadata: Metadata; - /** - * - * @type {ReplySpec} - * @memberof Reply - */ - spec: ReplySpec; + /** + * + * @type {string} + * @memberof Reply + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof Reply + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Reply + */ + 'metadata': Metadata; + /** + * + * @type {ReplySpec} + * @memberof Reply + */ + 'spec': ReplySpec; } + diff --git a/ui/packages/api-client/src/models/reset-password-request.ts b/ui/packages/api-client/src/models/reset-password-request.ts index 5e8219456..6c33e3433 100644 --- a/ui/packages/api-client/src/models/reset-password-request.ts +++ b/ui/packages/api-client/src/models/reset-password-request.ts @@ -5,29 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface ResetPasswordRequest */ export interface ResetPasswordRequest { - /** - * - * @type {string} - * @memberof ResetPasswordRequest - */ - newPassword: string; - /** - * - * @type {string} - * @memberof ResetPasswordRequest - */ - token: string; + /** + * + * @type {string} + * @memberof ResetPasswordRequest + */ + 'newPassword': string; + /** + * + * @type {string} + * @memberof ResetPasswordRequest + */ + 'token': string; } + diff --git a/ui/packages/api-client/src/models/reverse-proxy-list.ts b/ui/packages/api-client/src/models/reverse-proxy-list.ts index 0b741e4d1..12bb2fedc 100644 --- a/ui/packages/api-client/src/models/reverse-proxy-list.ts +++ b/ui/packages/api-client/src/models/reverse-proxy-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ReverseProxy } from "./reverse-proxy"; +import { ReverseProxy } from './reverse-proxy'; /** - * + * * @export * @interface ReverseProxyList */ export interface ReverseProxyList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof ReverseProxyList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ReverseProxyList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ReverseProxyList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof ReverseProxyList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof ReverseProxyList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ReverseProxyList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ReverseProxyList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof ReverseProxyList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof ReverseProxyList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof ReverseProxyList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ReverseProxyList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ReverseProxyList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof ReverseProxyList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof ReverseProxyList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ReverseProxyList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ReverseProxyList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof ReverseProxyList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof ReverseProxyList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/reverse-proxy-rule.ts b/ui/packages/api-client/src/models/reverse-proxy-rule.ts index b052a9900..6c166196f 100644 --- a/ui/packages/api-client/src/models/reverse-proxy-rule.ts +++ b/ui/packages/api-client/src/models/reverse-proxy-rule.ts @@ -5,33 +5,35 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { FileReverseProxyProvider } from "./file-reverse-proxy-provider"; +import { FileReverseProxyProvider } from './file-reverse-proxy-provider'; /** - * + * * @export * @interface ReverseProxyRule */ export interface ReverseProxyRule { - /** - * - * @type {FileReverseProxyProvider} - * @memberof ReverseProxyRule - */ - file?: FileReverseProxyProvider; - /** - * - * @type {string} - * @memberof ReverseProxyRule - */ - path?: string; + /** + * + * @type {FileReverseProxyProvider} + * @memberof ReverseProxyRule + */ + 'file'?: FileReverseProxyProvider; + /** + * + * @type {string} + * @memberof ReverseProxyRule + */ + 'path'?: string; } + diff --git a/ui/packages/api-client/src/models/reverse-proxy.ts b/ui/packages/api-client/src/models/reverse-proxy.ts index a10e5d151..86b810f1f 100644 --- a/ui/packages/api-client/src/models/reverse-proxy.ts +++ b/ui/packages/api-client/src/models/reverse-proxy.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { ReverseProxyRule } from "./reverse-proxy-rule"; +import { ReverseProxyRule } from './reverse-proxy-rule'; /** - * + * * @export * @interface ReverseProxy */ export interface ReverseProxy { - /** - * - * @type {string} - * @memberof ReverseProxy - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof ReverseProxy - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof ReverseProxy - */ - metadata: Metadata; - /** - * - * @type {Array} - * @memberof ReverseProxy - */ - rules?: Array; + /** + * + * @type {string} + * @memberof ReverseProxy + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof ReverseProxy + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof ReverseProxy + */ + 'metadata': Metadata; + /** + * + * @type {Array} + * @memberof ReverseProxy + */ + 'rules'?: Array; } + diff --git a/ui/packages/api-client/src/models/role-binding-list.ts b/ui/packages/api-client/src/models/role-binding-list.ts index 060008b6e..b38a30ed0 100644 --- a/ui/packages/api-client/src/models/role-binding-list.ts +++ b/ui/packages/api-client/src/models/role-binding-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { RoleBinding } from "./role-binding"; +import { RoleBinding } from './role-binding'; /** - * + * * @export * @interface RoleBindingList */ export interface RoleBindingList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof RoleBindingList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof RoleBindingList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof RoleBindingList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof RoleBindingList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof RoleBindingList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof RoleBindingList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof RoleBindingList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof RoleBindingList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof RoleBindingList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof RoleBindingList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof RoleBindingList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof RoleBindingList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof RoleBindingList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof RoleBindingList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof RoleBindingList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof RoleBindingList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof RoleBindingList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof RoleBindingList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/role-binding.ts b/ui/packages/api-client/src/models/role-binding.ts index 3387424d0..0973504c0 100644 --- a/ui/packages/api-client/src/models/role-binding.ts +++ b/ui/packages/api-client/src/models/role-binding.ts @@ -5,57 +5,59 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { RoleRef } from "./role-ref"; +import { RoleRef } from './role-ref'; // May contain unused imports in some cases // @ts-ignore -import { Subject } from "./subject"; +import { Subject } from './subject'; /** - * + * * @export * @interface RoleBinding */ export interface RoleBinding { - /** - * - * @type {string} - * @memberof RoleBinding - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof RoleBinding - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof RoleBinding - */ - metadata: Metadata; - /** - * - * @type {RoleRef} - * @memberof RoleBinding - */ - roleRef?: RoleRef; - /** - * - * @type {Array} - * @memberof RoleBinding - */ - subjects?: Array; + /** + * + * @type {string} + * @memberof RoleBinding + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof RoleBinding + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof RoleBinding + */ + 'metadata': Metadata; + /** + * + * @type {RoleRef} + * @memberof RoleBinding + */ + 'roleRef'?: RoleRef; + /** + * + * @type {Array} + * @memberof RoleBinding + */ + 'subjects'?: Array; } + diff --git a/ui/packages/api-client/src/models/role-list.ts b/ui/packages/api-client/src/models/role-list.ts index 0c724a277..14479fdc0 100644 --- a/ui/packages/api-client/src/models/role-list.ts +++ b/ui/packages/api-client/src/models/role-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Role } from "./role"; +import { Role } from './role'; /** - * + * * @export * @interface RoleList */ export interface RoleList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof RoleList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof RoleList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof RoleList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof RoleList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof RoleList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof RoleList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof RoleList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof RoleList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof RoleList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof RoleList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof RoleList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof RoleList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof RoleList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof RoleList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof RoleList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof RoleList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof RoleList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof RoleList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/role-ref.ts b/ui/packages/api-client/src/models/role-ref.ts index 03b9e2b16..4c8cac631 100644 --- a/ui/packages/api-client/src/models/role-ref.ts +++ b/ui/packages/api-client/src/models/role-ref.ts @@ -5,35 +5,38 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface RoleRef */ export interface RoleRef { - /** - * - * @type {string} - * @memberof RoleRef - */ - apiGroup?: string; - /** - * - * @type {string} - * @memberof RoleRef - */ - kind?: string; - /** - * - * @type {string} - * @memberof RoleRef - */ - name?: string; + /** + * + * @type {string} + * @memberof RoleRef + */ + 'apiGroup'?: string; + /** + * + * @type {string} + * @memberof RoleRef + */ + 'kind'?: string; + /** + * + * @type {string} + * @memberof RoleRef + */ + 'name'?: string; } + diff --git a/ui/packages/api-client/src/models/role.ts b/ui/packages/api-client/src/models/role.ts index 8d7a8f773..fbe1a8dd7 100644 --- a/ui/packages/api-client/src/models/role.ts +++ b/ui/packages/api-client/src/models/role.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { PolicyRule } from "./policy-rule"; +import { PolicyRule } from './policy-rule'; /** - * + * * @export * @interface Role */ export interface Role { - /** - * - * @type {string} - * @memberof Role - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof Role - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Role - */ - metadata: Metadata; - /** - * - * @type {Array} - * @memberof Role - */ - rules: Array; + /** + * + * @type {string} + * @memberof Role + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof Role + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Role + */ + 'metadata': Metadata; + /** + * + * @type {Array} + * @memberof Role + */ + 'rules': Array; } + diff --git a/ui/packages/api-client/src/models/search-engine-list.ts b/ui/packages/api-client/src/models/search-engine-list.ts index 368a1af78..e3ec969d4 100644 --- a/ui/packages/api-client/src/models/search-engine-list.ts +++ b/ui/packages/api-client/src/models/search-engine-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { SearchEngine } from "./search-engine"; +import { SearchEngine } from './search-engine'; /** - * + * * @export * @interface SearchEngineList */ export interface SearchEngineList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof SearchEngineList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof SearchEngineList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof SearchEngineList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof SearchEngineList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof SearchEngineList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof SearchEngineList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof SearchEngineList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof SearchEngineList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof SearchEngineList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof SearchEngineList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof SearchEngineList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof SearchEngineList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof SearchEngineList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof SearchEngineList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof SearchEngineList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof SearchEngineList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof SearchEngineList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof SearchEngineList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/search-engine-spec.ts b/ui/packages/api-client/src/models/search-engine-spec.ts index 4500bd5d4..e5a7e3aff 100644 --- a/ui/packages/api-client/src/models/search-engine-spec.ts +++ b/ui/packages/api-client/src/models/search-engine-spec.ts @@ -5,57 +5,59 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Ref } from "./ref"; +import { Ref } from './ref'; /** - * + * * @export * @interface SearchEngineSpec */ export interface SearchEngineSpec { - /** - * - * @type {string} - * @memberof SearchEngineSpec - */ - description?: string; - /** - * - * @type {string} - * @memberof SearchEngineSpec - */ - displayName: string; - /** - * - * @type {string} - * @memberof SearchEngineSpec - */ - logo?: string; - /** - * - * @type {string} - * @memberof SearchEngineSpec - */ - postSearchImpl?: string; - /** - * - * @type {Ref} - * @memberof SearchEngineSpec - */ - settingRef?: Ref; - /** - * - * @type {string} - * @memberof SearchEngineSpec - */ - website?: string; + /** + * + * @type {string} + * @memberof SearchEngineSpec + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof SearchEngineSpec + */ + 'displayName': string; + /** + * + * @type {string} + * @memberof SearchEngineSpec + */ + 'logo'?: string; + /** + * + * @type {string} + * @memberof SearchEngineSpec + */ + 'postSearchImpl'?: string; + /** + * + * @type {Ref} + * @memberof SearchEngineSpec + */ + 'settingRef'?: Ref; + /** + * + * @type {string} + * @memberof SearchEngineSpec + */ + 'website'?: string; } + diff --git a/ui/packages/api-client/src/models/search-engine.ts b/ui/packages/api-client/src/models/search-engine.ts index eefa89470..fd96d93a1 100644 --- a/ui/packages/api-client/src/models/search-engine.ts +++ b/ui/packages/api-client/src/models/search-engine.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { SearchEngineSpec } from "./search-engine-spec"; +import { SearchEngineSpec } from './search-engine-spec'; /** - * + * * @export * @interface SearchEngine */ export interface SearchEngine { - /** - * - * @type {string} - * @memberof SearchEngine - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof SearchEngine - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof SearchEngine - */ - metadata: Metadata; - /** - * - * @type {SearchEngineSpec} - * @memberof SearchEngine - */ - spec: SearchEngineSpec; + /** + * + * @type {string} + * @memberof SearchEngine + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof SearchEngine + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof SearchEngine + */ + 'metadata': Metadata; + /** + * + * @type {SearchEngineSpec} + * @memberof SearchEngine + */ + 'spec': SearchEngineSpec; } + diff --git a/ui/packages/api-client/src/models/secret-list.ts b/ui/packages/api-client/src/models/secret-list.ts index fdfc8e3b0..7bccd13a8 100644 --- a/ui/packages/api-client/src/models/secret-list.ts +++ b/ui/packages/api-client/src/models/secret-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Secret } from "./secret"; +import { Secret } from './secret'; /** - * + * * @export * @interface SecretList */ export interface SecretList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof SecretList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof SecretList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof SecretList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof SecretList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof SecretList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof SecretList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof SecretList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof SecretList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof SecretList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof SecretList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof SecretList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof SecretList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof SecretList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof SecretList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof SecretList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof SecretList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof SecretList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof SecretList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/secret.ts b/ui/packages/api-client/src/models/secret.ts index 7950c50a6..2b6c9993d 100644 --- a/ui/packages/api-client/src/models/secret.ts +++ b/ui/packages/api-client/src/models/secret.ts @@ -5,57 +5,59 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; /** - * + * * @export * @interface Secret */ export interface Secret { - /** - * - * @type {string} - * @memberof Secret - */ - apiVersion: string; - /** - * - * @type {{ [key: string]: Array; }} - * @memberof Secret - */ - data?: { [key: string]: Array }; - /** - * - * @type {string} - * @memberof Secret - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Secret - */ - metadata: Metadata; - /** - * - * @type {{ [key: string]: string; }} - * @memberof Secret - */ - stringData?: { [key: string]: string }; - /** - * - * @type {string} - * @memberof Secret - */ - type?: string; + /** + * + * @type {string} + * @memberof Secret + */ + 'apiVersion': string; + /** + * + * @type {{ [key: string]: Array; }} + * @memberof Secret + */ + 'data'?: { [key: string]: Array; }; + /** + * + * @type {string} + * @memberof Secret + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Secret + */ + 'metadata': Metadata; + /** + * + * @type {{ [key: string]: string; }} + * @memberof Secret + */ + 'stringData'?: { [key: string]: string; }; + /** + * + * @type {string} + * @memberof Secret + */ + 'type'?: string; } + diff --git a/ui/packages/api-client/src/models/setting-form.ts b/ui/packages/api-client/src/models/setting-form.ts index ccab4bf2c..e4cf1896d 100644 --- a/ui/packages/api-client/src/models/setting-form.ts +++ b/ui/packages/api-client/src/models/setting-form.ts @@ -5,35 +5,38 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface SettingForm */ export interface SettingForm { - /** - * - * @type {Array} - * @memberof SettingForm - */ - formSchema: Array; - /** - * - * @type {string} - * @memberof SettingForm - */ - group: string; - /** - * - * @type {string} - * @memberof SettingForm - */ - label?: string; + /** + * + * @type {Array} + * @memberof SettingForm + */ + 'formSchema': Array; + /** + * + * @type {string} + * @memberof SettingForm + */ + 'group': string; + /** + * + * @type {string} + * @memberof SettingForm + */ + 'label'?: string; } + diff --git a/ui/packages/api-client/src/models/setting-list.ts b/ui/packages/api-client/src/models/setting-list.ts index 64aa72beb..a23e9bf80 100644 --- a/ui/packages/api-client/src/models/setting-list.ts +++ b/ui/packages/api-client/src/models/setting-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Setting } from "./setting"; +import { Setting } from './setting'; /** - * + * * @export * @interface SettingList */ export interface SettingList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof SettingList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof SettingList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof SettingList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof SettingList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof SettingList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof SettingList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof SettingList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof SettingList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof SettingList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof SettingList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof SettingList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof SettingList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof SettingList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof SettingList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof SettingList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof SettingList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof SettingList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof SettingList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/setting-ref.ts b/ui/packages/api-client/src/models/setting-ref.ts index 75fecd25c..4dc409be7 100644 --- a/ui/packages/api-client/src/models/setting-ref.ts +++ b/ui/packages/api-client/src/models/setting-ref.ts @@ -5,29 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface SettingRef */ export interface SettingRef { - /** - * - * @type {string} - * @memberof SettingRef - */ - group: string; - /** - * - * @type {string} - * @memberof SettingRef - */ - name: string; + /** + * + * @type {string} + * @memberof SettingRef + */ + 'group': string; + /** + * + * @type {string} + * @memberof SettingRef + */ + 'name': string; } + diff --git a/ui/packages/api-client/src/models/setting-spec.ts b/ui/packages/api-client/src/models/setting-spec.ts index e964854c0..99aa2e03b 100644 --- a/ui/packages/api-client/src/models/setting-spec.ts +++ b/ui/packages/api-client/src/models/setting-spec.ts @@ -5,27 +5,29 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { SettingForm } from "./setting-form"; +import { SettingForm } from './setting-form'; /** - * + * * @export * @interface SettingSpec */ export interface SettingSpec { - /** - * - * @type {Array} - * @memberof SettingSpec - */ - forms: Array; + /** + * + * @type {Array} + * @memberof SettingSpec + */ + 'forms': Array; } + diff --git a/ui/packages/api-client/src/models/setting.ts b/ui/packages/api-client/src/models/setting.ts index 1e1fbf562..a8922e6d5 100644 --- a/ui/packages/api-client/src/models/setting.ts +++ b/ui/packages/api-client/src/models/setting.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { SettingSpec } from "./setting-spec"; +import { SettingSpec } from './setting-spec'; /** - * + * * @export * @interface Setting */ export interface Setting { - /** - * - * @type {string} - * @memberof Setting - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof Setting - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Setting - */ - metadata: Metadata; - /** - * - * @type {SettingSpec} - * @memberof Setting - */ - spec: SettingSpec; + /** + * + * @type {string} + * @memberof Setting + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof Setting + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Setting + */ + 'metadata': Metadata; + /** + * + * @type {SettingSpec} + * @memberof Setting + */ + 'spec': SettingSpec; } + diff --git a/ui/packages/api-client/src/models/sign-up-request.ts b/ui/packages/api-client/src/models/sign-up-request.ts index 2dad5b1dd..4233dc4fa 100644 --- a/ui/packages/api-client/src/models/sign-up-request.ts +++ b/ui/packages/api-client/src/models/sign-up-request.ts @@ -5,39 +5,41 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { User } from "./user"; +import { User } from './user'; /** - * + * * @export * @interface SignUpRequest */ export interface SignUpRequest { - /** - * - * @type {string} - * @memberof SignUpRequest - */ - password: string; - /** - * - * @type {User} - * @memberof SignUpRequest - */ - user: User; - /** - * - * @type {string} - * @memberof SignUpRequest - */ - verifyCode?: string; + /** + * + * @type {string} + * @memberof SignUpRequest + */ + 'password': string; + /** + * + * @type {User} + * @memberof SignUpRequest + */ + 'user': User; + /** + * + * @type {string} + * @memberof SignUpRequest + */ + 'verifyCode'?: string; } + diff --git a/ui/packages/api-client/src/models/single-page-list.ts b/ui/packages/api-client/src/models/single-page-list.ts index 5b6511071..b88c13360 100644 --- a/ui/packages/api-client/src/models/single-page-list.ts +++ b/ui/packages/api-client/src/models/single-page-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { SinglePage } from "./single-page"; +import { SinglePage } from './single-page'; /** - * + * * @export * @interface SinglePageList */ export interface SinglePageList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof SinglePageList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof SinglePageList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof SinglePageList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof SinglePageList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof SinglePageList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof SinglePageList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof SinglePageList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof SinglePageList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof SinglePageList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof SinglePageList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof SinglePageList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof SinglePageList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof SinglePageList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof SinglePageList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof SinglePageList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof SinglePageList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof SinglePageList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof SinglePageList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/single-page-request.ts b/ui/packages/api-client/src/models/single-page-request.ts index ce6a2cf88..91a618cd9 100644 --- a/ui/packages/api-client/src/models/single-page-request.ts +++ b/ui/packages/api-client/src/models/single-page-request.ts @@ -5,36 +5,38 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Content } from "./content"; +import { Content } from './content'; // May contain unused imports in some cases // @ts-ignore -import { SinglePage } from "./single-page"; +import { SinglePage } from './single-page'; /** - * + * * @export * @interface SinglePageRequest */ export interface SinglePageRequest { - /** - * - * @type {Content} - * @memberof SinglePageRequest - */ - content: Content; - /** - * - * @type {SinglePage} - * @memberof SinglePageRequest - */ - page: SinglePage; + /** + * + * @type {Content} + * @memberof SinglePageRequest + */ + 'content': Content; + /** + * + * @type {SinglePage} + * @memberof SinglePageRequest + */ + 'page': SinglePage; } + diff --git a/ui/packages/api-client/src/models/single-page-spec.ts b/ui/packages/api-client/src/models/single-page-spec.ts index 4c4580928..a31feaf8e 100644 --- a/ui/packages/api-client/src/models/single-page-spec.ts +++ b/ui/packages/api-client/src/models/single-page-spec.ts @@ -5,132 +5,134 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Excerpt } from "./excerpt"; +import { Excerpt } from './excerpt'; /** - * + * * @export * @interface SinglePageSpec */ export interface SinglePageSpec { - /** - * - * @type {boolean} - * @memberof SinglePageSpec - */ - allowComment: boolean; - /** - * - * @type {string} - * @memberof SinglePageSpec - */ - baseSnapshot?: string; - /** - * - * @type {string} - * @memberof SinglePageSpec - */ - cover?: string; - /** - * - * @type {boolean} - * @memberof SinglePageSpec - */ - deleted: boolean; - /** - * - * @type {Excerpt} - * @memberof SinglePageSpec - */ - excerpt: Excerpt; - /** - * - * @type {string} - * @memberof SinglePageSpec - */ - headSnapshot?: string; - /** - * - * @type {Array<{ [key: string]: string; }>} - * @memberof SinglePageSpec - */ - htmlMetas?: Array<{ [key: string]: string }>; - /** - * - * @type {string} - * @memberof SinglePageSpec - */ - owner?: string; - /** - * - * @type {boolean} - * @memberof SinglePageSpec - */ - pinned: boolean; - /** - * - * @type {number} - * @memberof SinglePageSpec - */ - priority: number; - /** - * - * @type {boolean} - * @memberof SinglePageSpec - */ - publish: boolean; - /** - * - * @type {string} - * @memberof SinglePageSpec - */ - publishTime?: string; - /** - * - * @type {string} - * @memberof SinglePageSpec - */ - releaseSnapshot?: string; - /** - * - * @type {string} - * @memberof SinglePageSpec - */ - slug: string; - /** - * - * @type {string} - * @memberof SinglePageSpec - */ - template?: string; - /** - * - * @type {string} - * @memberof SinglePageSpec - */ - title: string; - /** - * - * @type {string} - * @memberof SinglePageSpec - */ - visible: SinglePageSpecVisibleEnum; + /** + * + * @type {boolean} + * @memberof SinglePageSpec + */ + 'allowComment': boolean; + /** + * + * @type {string} + * @memberof SinglePageSpec + */ + 'baseSnapshot'?: string; + /** + * + * @type {string} + * @memberof SinglePageSpec + */ + 'cover'?: string; + /** + * + * @type {boolean} + * @memberof SinglePageSpec + */ + 'deleted': boolean; + /** + * + * @type {Excerpt} + * @memberof SinglePageSpec + */ + 'excerpt': Excerpt; + /** + * + * @type {string} + * @memberof SinglePageSpec + */ + 'headSnapshot'?: string; + /** + * + * @type {Array<{ [key: string]: string; }>} + * @memberof SinglePageSpec + */ + 'htmlMetas'?: Array<{ [key: string]: string; }>; + /** + * + * @type {string} + * @memberof SinglePageSpec + */ + 'owner'?: string; + /** + * + * @type {boolean} + * @memberof SinglePageSpec + */ + 'pinned': boolean; + /** + * + * @type {number} + * @memberof SinglePageSpec + */ + 'priority': number; + /** + * + * @type {boolean} + * @memberof SinglePageSpec + */ + 'publish': boolean; + /** + * + * @type {string} + * @memberof SinglePageSpec + */ + 'publishTime'?: string; + /** + * + * @type {string} + * @memberof SinglePageSpec + */ + 'releaseSnapshot'?: string; + /** + * + * @type {string} + * @memberof SinglePageSpec + */ + 'slug': string; + /** + * + * @type {string} + * @memberof SinglePageSpec + */ + 'template'?: string; + /** + * + * @type {string} + * @memberof SinglePageSpec + */ + 'title': string; + /** + * + * @type {string} + * @memberof SinglePageSpec + */ + 'visible': SinglePageSpecVisibleEnum; } export const SinglePageSpecVisibleEnum = { - Public: "PUBLIC", - Internal: "INTERNAL", - Private: "PRIVATE", + Public: 'PUBLIC', + Internal: 'INTERNAL', + Private: 'PRIVATE' } as const; -export type SinglePageSpecVisibleEnum = - (typeof SinglePageSpecVisibleEnum)[keyof typeof SinglePageSpecVisibleEnum]; +export type SinglePageSpecVisibleEnum = typeof SinglePageSpecVisibleEnum[keyof typeof SinglePageSpecVisibleEnum]; + + diff --git a/ui/packages/api-client/src/models/single-page-status.ts b/ui/packages/api-client/src/models/single-page-status.ts index 6972c4237..59b034a4d 100644 --- a/ui/packages/api-client/src/models/single-page-status.ts +++ b/ui/packages/api-client/src/models/single-page-status.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Condition } from "./condition"; +import { Condition } from './condition'; /** - * + * * @export * @interface SinglePageStatus */ export interface SinglePageStatus { - /** - * - * @type {number} - * @memberof SinglePageStatus - */ - commentsCount?: number; - /** - * - * @type {Array} - * @memberof SinglePageStatus - */ - conditions?: Array; - /** - * - * @type {Array} - * @memberof SinglePageStatus - */ - contributors?: Array; - /** - * - * @type {string} - * @memberof SinglePageStatus - */ - excerpt?: string; - /** - * - * @type {boolean} - * @memberof SinglePageStatus - */ - inProgress?: boolean; - /** - * - * @type {string} - * @memberof SinglePageStatus - */ - lastModifyTime?: string; - /** - * - * @type {number} - * @memberof SinglePageStatus - */ - observedVersion?: number; - /** - * - * @type {string} - * @memberof SinglePageStatus - */ - permalink?: string; - /** - * - * @type {string} - * @memberof SinglePageStatus - */ - phase: string; + /** + * + * @type {number} + * @memberof SinglePageStatus + */ + 'commentsCount'?: number; + /** + * + * @type {Array} + * @memberof SinglePageStatus + */ + 'conditions'?: Array; + /** + * + * @type {Array} + * @memberof SinglePageStatus + */ + 'contributors'?: Array; + /** + * + * @type {string} + * @memberof SinglePageStatus + */ + 'excerpt'?: string; + /** + * + * @type {boolean} + * @memberof SinglePageStatus + */ + 'inProgress'?: boolean; + /** + * + * @type {string} + * @memberof SinglePageStatus + */ + 'lastModifyTime'?: string; + /** + * + * @type {number} + * @memberof SinglePageStatus + */ + 'observedVersion'?: number; + /** + * + * @type {string} + * @memberof SinglePageStatus + */ + 'permalink'?: string; + /** + * + * @type {string} + * @memberof SinglePageStatus + */ + 'phase': string; } + diff --git a/ui/packages/api-client/src/models/single-page-vo.ts b/ui/packages/api-client/src/models/single-page-vo.ts index 1cd8ecfd7..385577204 100644 --- a/ui/packages/api-client/src/models/single-page-vo.ts +++ b/ui/packages/api-client/src/models/single-page-vo.ts @@ -5,78 +5,80 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ContentVo } from "./content-vo"; +import { ContentVo } from './content-vo'; // May contain unused imports in some cases // @ts-ignore -import { ContributorVo } from "./contributor-vo"; +import { ContributorVo } from './contributor-vo'; // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { SinglePageSpec } from "./single-page-spec"; +import { SinglePageSpec } from './single-page-spec'; // May contain unused imports in some cases // @ts-ignore -import { SinglePageStatus } from "./single-page-status"; +import { SinglePageStatus } from './single-page-status'; // May contain unused imports in some cases // @ts-ignore -import { StatsVo } from "./stats-vo"; +import { StatsVo } from './stats-vo'; /** - * + * * @export * @interface SinglePageVo */ export interface SinglePageVo { - /** - * - * @type {ContentVo} - * @memberof SinglePageVo - */ - content?: ContentVo; - /** - * - * @type {Array} - * @memberof SinglePageVo - */ - contributors?: Array; - /** - * - * @type {Metadata} - * @memberof SinglePageVo - */ - metadata: Metadata; - /** - * - * @type {ContributorVo} - * @memberof SinglePageVo - */ - owner?: ContributorVo; - /** - * - * @type {SinglePageSpec} - * @memberof SinglePageVo - */ - spec?: SinglePageSpec; - /** - * - * @type {StatsVo} - * @memberof SinglePageVo - */ - stats?: StatsVo; - /** - * - * @type {SinglePageStatus} - * @memberof SinglePageVo - */ - status?: SinglePageStatus; + /** + * + * @type {ContentVo} + * @memberof SinglePageVo + */ + 'content'?: ContentVo; + /** + * + * @type {Array} + * @memberof SinglePageVo + */ + 'contributors'?: Array; + /** + * + * @type {Metadata} + * @memberof SinglePageVo + */ + 'metadata': Metadata; + /** + * + * @type {ContributorVo} + * @memberof SinglePageVo + */ + 'owner'?: ContributorVo; + /** + * + * @type {SinglePageSpec} + * @memberof SinglePageVo + */ + 'spec'?: SinglePageSpec; + /** + * + * @type {StatsVo} + * @memberof SinglePageVo + */ + 'stats'?: StatsVo; + /** + * + * @type {SinglePageStatus} + * @memberof SinglePageVo + */ + 'status'?: SinglePageStatus; } + diff --git a/ui/packages/api-client/src/models/single-page.ts b/ui/packages/api-client/src/models/single-page.ts index dd408f4b8..af301465d 100644 --- a/ui/packages/api-client/src/models/single-page.ts +++ b/ui/packages/api-client/src/models/single-page.ts @@ -5,57 +5,59 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { SinglePageSpec } from "./single-page-spec"; +import { SinglePageSpec } from './single-page-spec'; // May contain unused imports in some cases // @ts-ignore -import { SinglePageStatus } from "./single-page-status"; +import { SinglePageStatus } from './single-page-status'; /** - * + * * @export * @interface SinglePage */ export interface SinglePage { - /** - * - * @type {string} - * @memberof SinglePage - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof SinglePage - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof SinglePage - */ - metadata: Metadata; - /** - * - * @type {SinglePageSpec} - * @memberof SinglePage - */ - spec: SinglePageSpec; - /** - * - * @type {SinglePageStatus} - * @memberof SinglePage - */ - status?: SinglePageStatus; + /** + * + * @type {string} + * @memberof SinglePage + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof SinglePage + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof SinglePage + */ + 'metadata': Metadata; + /** + * + * @type {SinglePageSpec} + * @memberof SinglePage + */ + 'spec': SinglePageSpec; + /** + * + * @type {SinglePageStatus} + * @memberof SinglePage + */ + 'status'?: SinglePageStatus; } + diff --git a/ui/packages/api-client/src/models/site-stats-vo.ts b/ui/packages/api-client/src/models/site-stats-vo.ts index 12197d740..776476d44 100644 --- a/ui/packages/api-client/src/models/site-stats-vo.ts +++ b/ui/packages/api-client/src/models/site-stats-vo.ts @@ -5,47 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface SiteStatsVo */ export interface SiteStatsVo { - /** - * - * @type {number} - * @memberof SiteStatsVo - */ - category?: number; - /** - * - * @type {number} - * @memberof SiteStatsVo - */ - comment?: number; - /** - * - * @type {number} - * @memberof SiteStatsVo - */ - post?: number; - /** - * - * @type {number} - * @memberof SiteStatsVo - */ - upvote?: number; - /** - * - * @type {number} - * @memberof SiteStatsVo - */ - visit?: number; + /** + * + * @type {number} + * @memberof SiteStatsVo + */ + 'category'?: number; + /** + * + * @type {number} + * @memberof SiteStatsVo + */ + 'comment'?: number; + /** + * + * @type {number} + * @memberof SiteStatsVo + */ + 'post'?: number; + /** + * + * @type {number} + * @memberof SiteStatsVo + */ + 'upvote'?: number; + /** + * + * @type {number} + * @memberof SiteStatsVo + */ + 'visit'?: number; } + diff --git a/ui/packages/api-client/src/models/snap-shot-spec.ts b/ui/packages/api-client/src/models/snap-shot-spec.ts index a1651cf9d..813c778ad 100644 --- a/ui/packages/api-client/src/models/snap-shot-spec.ts +++ b/ui/packages/api-client/src/models/snap-shot-spec.ts @@ -5,69 +5,71 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Ref } from "./ref"; +import { Ref } from './ref'; /** - * + * * @export * @interface SnapShotSpec */ export interface SnapShotSpec { - /** - * - * @type {string} - * @memberof SnapShotSpec - */ - contentPatch?: string; - /** - * - * @type {Array} - * @memberof SnapShotSpec - */ - contributors?: Array; - /** - * - * @type {string} - * @memberof SnapShotSpec - */ - lastModifyTime?: string; - /** - * - * @type {string} - * @memberof SnapShotSpec - */ - owner: string; - /** - * - * @type {string} - * @memberof SnapShotSpec - */ - parentSnapshotName?: string; - /** - * - * @type {string} - * @memberof SnapShotSpec - */ - rawPatch?: string; - /** - * - * @type {string} - * @memberof SnapShotSpec - */ - rawType: string; - /** - * - * @type {Ref} - * @memberof SnapShotSpec - */ - subjectRef: Ref; + /** + * + * @type {string} + * @memberof SnapShotSpec + */ + 'contentPatch'?: string; + /** + * + * @type {Array} + * @memberof SnapShotSpec + */ + 'contributors'?: Array; + /** + * + * @type {string} + * @memberof SnapShotSpec + */ + 'lastModifyTime'?: string; + /** + * + * @type {string} + * @memberof SnapShotSpec + */ + 'owner': string; + /** + * + * @type {string} + * @memberof SnapShotSpec + */ + 'parentSnapshotName'?: string; + /** + * + * @type {string} + * @memberof SnapShotSpec + */ + 'rawPatch'?: string; + /** + * + * @type {string} + * @memberof SnapShotSpec + */ + 'rawType': string; + /** + * + * @type {Ref} + * @memberof SnapShotSpec + */ + 'subjectRef': Ref; } + diff --git a/ui/packages/api-client/src/models/snapshot-list.ts b/ui/packages/api-client/src/models/snapshot-list.ts index 7f11402e9..727a54d20 100644 --- a/ui/packages/api-client/src/models/snapshot-list.ts +++ b/ui/packages/api-client/src/models/snapshot-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Snapshot } from "./snapshot"; +import { Snapshot } from './snapshot'; /** - * + * * @export * @interface SnapshotList */ export interface SnapshotList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof SnapshotList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof SnapshotList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof SnapshotList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof SnapshotList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof SnapshotList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof SnapshotList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof SnapshotList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof SnapshotList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof SnapshotList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof SnapshotList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof SnapshotList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof SnapshotList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof SnapshotList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof SnapshotList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof SnapshotList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof SnapshotList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof SnapshotList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof SnapshotList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/snapshot.ts b/ui/packages/api-client/src/models/snapshot.ts index e7af7e633..875e58e2c 100644 --- a/ui/packages/api-client/src/models/snapshot.ts +++ b/ui/packages/api-client/src/models/snapshot.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { SnapShotSpec } from "./snap-shot-spec"; +import { SnapShotSpec } from './snap-shot-spec'; /** - * + * * @export * @interface Snapshot */ export interface Snapshot { - /** - * - * @type {string} - * @memberof Snapshot - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof Snapshot - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Snapshot - */ - metadata: Metadata; - /** - * - * @type {SnapShotSpec} - * @memberof Snapshot - */ - spec: SnapShotSpec; + /** + * + * @type {string} + * @memberof Snapshot + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof Snapshot + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Snapshot + */ + 'metadata': Metadata; + /** + * + * @type {SnapShotSpec} + * @memberof Snapshot + */ + 'spec': SnapShotSpec; } + diff --git a/ui/packages/api-client/src/models/spec.ts b/ui/packages/api-client/src/models/spec.ts deleted file mode 100644 index 1961aac39..000000000 --- a/ui/packages/api-client/src/models/spec.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Halo Next API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface Spec - */ -export interface Spec { - /** - * - * @type {string} - * @memberof Spec - */ - autoDeleteWhen?: string; - /** - * - * @type {string} - * @memberof Spec - */ - format?: string; -} diff --git a/ui/packages/api-client/src/models/stats-vo.ts b/ui/packages/api-client/src/models/stats-vo.ts index 0739e19a5..d9ff4bded 100644 --- a/ui/packages/api-client/src/models/stats-vo.ts +++ b/ui/packages/api-client/src/models/stats-vo.ts @@ -5,35 +5,38 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface StatsVo */ export interface StatsVo { - /** - * - * @type {number} - * @memberof StatsVo - */ - comment?: number; - /** - * - * @type {number} - * @memberof StatsVo - */ - upvote?: number; - /** - * - * @type {number} - * @memberof StatsVo - */ - visit?: number; + /** + * + * @type {number} + * @memberof StatsVo + */ + 'comment'?: number; + /** + * + * @type {number} + * @memberof StatsVo + */ + 'upvote'?: number; + /** + * + * @type {number} + * @memberof StatsVo + */ + 'visit'?: number; } + diff --git a/ui/packages/api-client/src/models/stats.ts b/ui/packages/api-client/src/models/stats.ts index 09c31f07f..54a5f2a14 100644 --- a/ui/packages/api-client/src/models/stats.ts +++ b/ui/packages/api-client/src/models/stats.ts @@ -5,41 +5,44 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface Stats */ export interface Stats { - /** - * - * @type {number} - * @memberof Stats - */ - approvedComment?: number; - /** - * - * @type {number} - * @memberof Stats - */ - totalComment?: number; - /** - * - * @type {number} - * @memberof Stats - */ - upvote?: number; - /** - * - * @type {number} - * @memberof Stats - */ - visit?: number; + /** + * + * @type {number} + * @memberof Stats + */ + 'approvedComment'?: number; + /** + * + * @type {number} + * @memberof Stats + */ + 'totalComment'?: number; + /** + * + * @type {number} + * @memberof Stats + */ + 'upvote'?: number; + /** + * + * @type {number} + * @memberof Stats + */ + 'visit'?: number; } + diff --git a/ui/packages/api-client/src/models/status.ts b/ui/packages/api-client/src/models/status.ts deleted file mode 100644 index 57823960c..000000000 --- a/ui/packages/api-client/src/models/status.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Halo Next API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface Status - */ -export interface Status { - /** - * - * @type {string} - * @memberof Status - */ - completionTimestamp?: string; - /** - * - * @type {string} - * @memberof Status - */ - failureMessage?: string; - /** - * - * @type {string} - * @memberof Status - */ - failureReason?: string; - /** - * - * @type {string} - * @memberof Status - */ - filename?: string; - /** - * - * @type {string} - * @memberof Status - */ - phase?: StatusPhaseEnum; - /** - * - * @type {number} - * @memberof Status - */ - size?: number; - /** - * - * @type {string} - * @memberof Status - */ - startTimestamp?: string; -} - -export const StatusPhaseEnum = { - Pending: "PENDING", - Running: "RUNNING", - Succeeded: "SUCCEEDED", - Failed: "FAILED", -} as const; - -export type StatusPhaseEnum = - (typeof StatusPhaseEnum)[keyof typeof StatusPhaseEnum]; diff --git a/ui/packages/api-client/src/models/subject.ts b/ui/packages/api-client/src/models/subject.ts index ac667681a..0e13cb1b8 100644 --- a/ui/packages/api-client/src/models/subject.ts +++ b/ui/packages/api-client/src/models/subject.ts @@ -5,35 +5,38 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface Subject */ export interface Subject { - /** - * - * @type {string} - * @memberof Subject - */ - apiGroup?: string; - /** - * - * @type {string} - * @memberof Subject - */ - kind?: string; - /** - * - * @type {string} - * @memberof Subject - */ - name?: string; + /** + * + * @type {string} + * @memberof Subject + */ + 'apiGroup'?: string; + /** + * + * @type {string} + * @memberof Subject + */ + 'kind'?: string; + /** + * + * @type {string} + * @memberof Subject + */ + 'name'?: string; } + diff --git a/ui/packages/api-client/src/models/subscription-list.ts b/ui/packages/api-client/src/models/subscription-list.ts index aa3254990..f2206a2ab 100644 --- a/ui/packages/api-client/src/models/subscription-list.ts +++ b/ui/packages/api-client/src/models/subscription-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Subscription } from "./subscription"; +import { Subscription } from './subscription'; /** - * + * * @export * @interface SubscriptionList */ export interface SubscriptionList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof SubscriptionList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof SubscriptionList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof SubscriptionList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof SubscriptionList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof SubscriptionList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof SubscriptionList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof SubscriptionList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof SubscriptionList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof SubscriptionList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof SubscriptionList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof SubscriptionList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof SubscriptionList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof SubscriptionList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof SubscriptionList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof SubscriptionList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof SubscriptionList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof SubscriptionList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof SubscriptionList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/subscription-spec.ts b/ui/packages/api-client/src/models/subscription-spec.ts index c01667587..c093e734b 100644 --- a/ui/packages/api-client/src/models/subscription-spec.ts +++ b/ui/packages/api-client/src/models/subscription-spec.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { InterestReason } from "./interest-reason"; +import { InterestReason } from './interest-reason'; // May contain unused imports in some cases // @ts-ignore -import { SubscriptionSubscriber } from "./subscription-subscriber"; +import { SubscriptionSubscriber } from './subscription-subscriber'; /** - * + * * @export * @interface SubscriptionSpec */ export interface SubscriptionSpec { - /** - * Perhaps users need to unsubscribe and interact without receiving notifications again - * @type {boolean} - * @memberof SubscriptionSpec - */ - disabled?: boolean; - /** - * - * @type {InterestReason} - * @memberof SubscriptionSpec - */ - reason: InterestReason; - /** - * - * @type {SubscriptionSubscriber} - * @memberof SubscriptionSpec - */ - subscriber: SubscriptionSubscriber; - /** - * The token to unsubscribe - * @type {string} - * @memberof SubscriptionSpec - */ - unsubscribeToken: string; + /** + * Perhaps users need to unsubscribe and interact without receiving notifications again + * @type {boolean} + * @memberof SubscriptionSpec + */ + 'disabled'?: boolean; + /** + * + * @type {InterestReason} + * @memberof SubscriptionSpec + */ + 'reason': InterestReason; + /** + * + * @type {SubscriptionSubscriber} + * @memberof SubscriptionSpec + */ + 'subscriber': SubscriptionSubscriber; + /** + * The token to unsubscribe + * @type {string} + * @memberof SubscriptionSpec + */ + 'unsubscribeToken': string; } + diff --git a/ui/packages/api-client/src/models/subscription-subscriber.ts b/ui/packages/api-client/src/models/subscription-subscriber.ts index af19db692..01d42a7f5 100644 --- a/ui/packages/api-client/src/models/subscription-subscriber.ts +++ b/ui/packages/api-client/src/models/subscription-subscriber.ts @@ -5,23 +5,26 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** * The subscriber to be notified * @export * @interface SubscriptionSubscriber */ export interface SubscriptionSubscriber { - /** - * - * @type {string} - * @memberof SubscriptionSubscriber - */ - name?: string; + /** + * + * @type {string} + * @memberof SubscriptionSubscriber + */ + 'name'?: string; } + diff --git a/ui/packages/api-client/src/models/subscription.ts b/ui/packages/api-client/src/models/subscription.ts index 706966275..0b86af538 100644 --- a/ui/packages/api-client/src/models/subscription.ts +++ b/ui/packages/api-client/src/models/subscription.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { SubscriptionSpec } from "./subscription-spec"; +import { SubscriptionSpec } from './subscription-spec'; /** - * + * * @export * @interface Subscription */ export interface Subscription { - /** - * - * @type {string} - * @memberof Subscription - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof Subscription - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Subscription - */ - metadata: Metadata; - /** - * - * @type {SubscriptionSpec} - * @memberof Subscription - */ - spec?: SubscriptionSpec; + /** + * + * @type {string} + * @memberof Subscription + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof Subscription + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Subscription + */ + 'metadata': Metadata; + /** + * + * @type {SubscriptionSpec} + * @memberof Subscription + */ + 'spec'?: SubscriptionSpec; } + diff --git a/ui/packages/api-client/src/models/system-initialization-request.ts b/ui/packages/api-client/src/models/system-initialization-request.ts index c19ad63c6..0428ea9c2 100644 --- a/ui/packages/api-client/src/models/system-initialization-request.ts +++ b/ui/packages/api-client/src/models/system-initialization-request.ts @@ -5,41 +5,44 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface SystemInitializationRequest */ export interface SystemInitializationRequest { - /** - * - * @type {string} - * @memberof SystemInitializationRequest - */ - email?: string; - /** - * - * @type {string} - * @memberof SystemInitializationRequest - */ - password: string; - /** - * - * @type {string} - * @memberof SystemInitializationRequest - */ - siteTitle?: string; - /** - * - * @type {string} - * @memberof SystemInitializationRequest - */ - username: string; + /** + * + * @type {string} + * @memberof SystemInitializationRequest + */ + 'email'?: string; + /** + * + * @type {string} + * @memberof SystemInitializationRequest + */ + 'password': string; + /** + * + * @type {string} + * @memberof SystemInitializationRequest + */ + 'siteTitle'?: string; + /** + * + * @type {string} + * @memberof SystemInitializationRequest + */ + 'username': string; } + diff --git a/ui/packages/api-client/src/models/tag-list.ts b/ui/packages/api-client/src/models/tag-list.ts index f04ad0917..31410f2b2 100644 --- a/ui/packages/api-client/src/models/tag-list.ts +++ b/ui/packages/api-client/src/models/tag-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Tag } from "./tag"; +import { Tag } from './tag'; /** - * + * * @export * @interface TagList */ export interface TagList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof TagList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof TagList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof TagList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof TagList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof TagList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof TagList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof TagList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof TagList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof TagList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof TagList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof TagList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof TagList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof TagList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof TagList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof TagList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof TagList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof TagList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof TagList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/tag-spec.ts b/ui/packages/api-client/src/models/tag-spec.ts index b62ae84e1..c1f7e4c15 100644 --- a/ui/packages/api-client/src/models/tag-spec.ts +++ b/ui/packages/api-client/src/models/tag-spec.ts @@ -5,41 +5,44 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface TagSpec */ export interface TagSpec { - /** - * - * @type {string} - * @memberof TagSpec - */ - color?: string; - /** - * - * @type {string} - * @memberof TagSpec - */ - cover?: string; - /** - * - * @type {string} - * @memberof TagSpec - */ - displayName: string; - /** - * - * @type {string} - * @memberof TagSpec - */ - slug: string; + /** + * + * @type {string} + * @memberof TagSpec + */ + 'color'?: string; + /** + * + * @type {string} + * @memberof TagSpec + */ + 'cover'?: string; + /** + * + * @type {string} + * @memberof TagSpec + */ + 'displayName': string; + /** + * + * @type {string} + * @memberof TagSpec + */ + 'slug': string; } + diff --git a/ui/packages/api-client/src/models/tag-status.ts b/ui/packages/api-client/src/models/tag-status.ts index 819627754..964c80a4e 100644 --- a/ui/packages/api-client/src/models/tag-status.ts +++ b/ui/packages/api-client/src/models/tag-status.ts @@ -5,41 +5,44 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface TagStatus */ export interface TagStatus { - /** - * - * @type {number} - * @memberof TagStatus - */ - observedVersion?: number; - /** - * - * @type {string} - * @memberof TagStatus - */ - permalink?: string; - /** - * - * @type {number} - * @memberof TagStatus - */ - postCount?: number; - /** - * - * @type {number} - * @memberof TagStatus - */ - visiblePostCount?: number; + /** + * + * @type {number} + * @memberof TagStatus + */ + 'observedVersion'?: number; + /** + * + * @type {string} + * @memberof TagStatus + */ + 'permalink'?: string; + /** + * + * @type {number} + * @memberof TagStatus + */ + 'postCount'?: number; + /** + * + * @type {number} + * @memberof TagStatus + */ + 'visiblePostCount'?: number; } + diff --git a/ui/packages/api-client/src/models/tag-vo-list.ts b/ui/packages/api-client/src/models/tag-vo-list.ts index 3d01b6bf4..642ac473a 100644 --- a/ui/packages/api-client/src/models/tag-vo-list.ts +++ b/ui/packages/api-client/src/models/tag-vo-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { TagVo } from "./tag-vo"; +import { TagVo } from './tag-vo'; /** - * + * * @export * @interface TagVoList */ export interface TagVoList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof TagVoList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof TagVoList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof TagVoList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof TagVoList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof TagVoList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof TagVoList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof TagVoList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof TagVoList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof TagVoList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof TagVoList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof TagVoList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof TagVoList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof TagVoList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof TagVoList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof TagVoList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof TagVoList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof TagVoList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof TagVoList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/tag-vo.ts b/ui/packages/api-client/src/models/tag-vo.ts index 7eba3cee4..880122b9e 100644 --- a/ui/packages/api-client/src/models/tag-vo.ts +++ b/ui/packages/api-client/src/models/tag-vo.ts @@ -5,51 +5,53 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { TagSpec } from "./tag-spec"; +import { TagSpec } from './tag-spec'; // May contain unused imports in some cases // @ts-ignore -import { TagStatus } from "./tag-status"; +import { TagStatus } from './tag-status'; /** - * + * * @export * @interface TagVo */ export interface TagVo { - /** - * - * @type {Metadata} - * @memberof TagVo - */ - metadata: Metadata; - /** - * - * @type {number} - * @memberof TagVo - */ - postCount?: number; - /** - * - * @type {TagSpec} - * @memberof TagVo - */ - spec?: TagSpec; - /** - * - * @type {TagStatus} - * @memberof TagVo - */ - status?: TagStatus; + /** + * + * @type {Metadata} + * @memberof TagVo + */ + 'metadata': Metadata; + /** + * + * @type {number} + * @memberof TagVo + */ + 'postCount'?: number; + /** + * + * @type {TagSpec} + * @memberof TagVo + */ + 'spec'?: TagSpec; + /** + * + * @type {TagStatus} + * @memberof TagVo + */ + 'status'?: TagStatus; } + diff --git a/ui/packages/api-client/src/models/tag.ts b/ui/packages/api-client/src/models/tag.ts index a48a77c3f..0464bbd21 100644 --- a/ui/packages/api-client/src/models/tag.ts +++ b/ui/packages/api-client/src/models/tag.ts @@ -5,57 +5,59 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { TagSpec } from "./tag-spec"; +import { TagSpec } from './tag-spec'; // May contain unused imports in some cases // @ts-ignore -import { TagStatus } from "./tag-status"; +import { TagStatus } from './tag-status'; /** - * + * * @export * @interface Tag */ export interface Tag { - /** - * - * @type {string} - * @memberof Tag - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof Tag - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Tag - */ - metadata: Metadata; - /** - * - * @type {TagSpec} - * @memberof Tag - */ - spec: TagSpec; - /** - * - * @type {TagStatus} - * @memberof Tag - */ - status?: TagStatus; + /** + * + * @type {string} + * @memberof Tag + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof Tag + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Tag + */ + 'metadata': Metadata; + /** + * + * @type {TagSpec} + * @memberof Tag + */ + 'spec': TagSpec; + /** + * + * @type {TagStatus} + * @memberof Tag + */ + 'status'?: TagStatus; } + diff --git a/ui/packages/api-client/src/models/template-content.ts b/ui/packages/api-client/src/models/template-content.ts index 6f82baa83..24e7b37e2 100644 --- a/ui/packages/api-client/src/models/template-content.ts +++ b/ui/packages/api-client/src/models/template-content.ts @@ -5,35 +5,38 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface TemplateContent */ export interface TemplateContent { - /** - * - * @type {string} - * @memberof TemplateContent - */ - htmlBody?: string; - /** - * - * @type {string} - * @memberof TemplateContent - */ - rawBody?: string; - /** - * - * @type {string} - * @memberof TemplateContent - */ - title: string; + /** + * + * @type {string} + * @memberof TemplateContent + */ + 'htmlBody'?: string; + /** + * + * @type {string} + * @memberof TemplateContent + */ + 'rawBody'?: string; + /** + * + * @type {string} + * @memberof TemplateContent + */ + 'title': string; } + diff --git a/ui/packages/api-client/src/models/template-descriptor.ts b/ui/packages/api-client/src/models/template-descriptor.ts index b4d0d58b1..c76446e42 100644 --- a/ui/packages/api-client/src/models/template-descriptor.ts +++ b/ui/packages/api-client/src/models/template-descriptor.ts @@ -5,41 +5,44 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface TemplateDescriptor */ export interface TemplateDescriptor { - /** - * - * @type {string} - * @memberof TemplateDescriptor - */ - description?: string; - /** - * - * @type {string} - * @memberof TemplateDescriptor - */ - file: string; - /** - * - * @type {string} - * @memberof TemplateDescriptor - */ - name: string; - /** - * - * @type {string} - * @memberof TemplateDescriptor - */ - screenshot?: string; + /** + * + * @type {string} + * @memberof TemplateDescriptor + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof TemplateDescriptor + */ + 'file': string; + /** + * + * @type {string} + * @memberof TemplateDescriptor + */ + 'name': string; + /** + * + * @type {string} + * @memberof TemplateDescriptor + */ + 'screenshot'?: string; } + diff --git a/ui/packages/api-client/src/models/theme-list.ts b/ui/packages/api-client/src/models/theme-list.ts index c669f9fb1..36b10d12d 100644 --- a/ui/packages/api-client/src/models/theme-list.ts +++ b/ui/packages/api-client/src/models/theme-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Theme } from "./theme"; +import { Theme } from './theme'; /** - * + * * @export * @interface ThemeList */ export interface ThemeList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof ThemeList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ThemeList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof ThemeList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof ThemeList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof ThemeList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ThemeList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof ThemeList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof ThemeList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof ThemeList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof ThemeList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ThemeList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof ThemeList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof ThemeList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof ThemeList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ThemeList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof ThemeList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof ThemeList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof ThemeList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/theme-spec.ts b/ui/packages/api-client/src/models/theme-spec.ts index ead1396cc..58365d347 100644 --- a/ui/packages/api-client/src/models/theme-spec.ts +++ b/ui/packages/api-client/src/models/theme-spec.ts @@ -5,113 +5,115 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Author } from "./author"; +import { Author } from './author'; // May contain unused imports in some cases // @ts-ignore -import { CustomTemplates } from "./custom-templates"; +import { CustomTemplates } from './custom-templates'; // May contain unused imports in some cases // @ts-ignore -import { License } from "./license"; +import { License } from './license'; /** - * + * * @export * @interface ThemeSpec */ export interface ThemeSpec { - /** - * - * @type {Author} - * @memberof ThemeSpec - */ - author: Author; - /** - * - * @type {string} - * @memberof ThemeSpec - */ - configMapName?: string; - /** - * - * @type {CustomTemplates} - * @memberof ThemeSpec - */ - customTemplates?: CustomTemplates; - /** - * - * @type {string} - * @memberof ThemeSpec - */ - description?: string; - /** - * - * @type {string} - * @memberof ThemeSpec - */ - displayName: string; - /** - * - * @type {string} - * @memberof ThemeSpec - */ - homepage?: string; - /** - * - * @type {Array} - * @memberof ThemeSpec - */ - license?: Array; - /** - * - * @type {string} - * @memberof ThemeSpec - */ - logo?: string; - /** - * - * @type {string} - * @memberof ThemeSpec - */ - repo?: string; - /** - * Deprecated, use `requires` instead. - * @type {string} - * @memberof ThemeSpec - * @deprecated - */ - require?: string; - /** - * - * @type {string} - * @memberof ThemeSpec - */ - requires?: string; - /** - * - * @type {string} - * @memberof ThemeSpec - */ - settingName?: string; - /** - * - * @type {string} - * @memberof ThemeSpec - */ - version: string; - /** - * - * @type {string} - * @memberof ThemeSpec - * @deprecated - */ - website?: string; + /** + * + * @type {Author} + * @memberof ThemeSpec + */ + 'author': Author; + /** + * + * @type {string} + * @memberof ThemeSpec + */ + 'configMapName'?: string; + /** + * + * @type {CustomTemplates} + * @memberof ThemeSpec + */ + 'customTemplates'?: CustomTemplates; + /** + * + * @type {string} + * @memberof ThemeSpec + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof ThemeSpec + */ + 'displayName': string; + /** + * + * @type {string} + * @memberof ThemeSpec + */ + 'homepage'?: string; + /** + * + * @type {Array} + * @memberof ThemeSpec + */ + 'license'?: Array; + /** + * + * @type {string} + * @memberof ThemeSpec + */ + 'logo'?: string; + /** + * + * @type {string} + * @memberof ThemeSpec + */ + 'repo'?: string; + /** + * Deprecated, use `requires` instead. + * @type {string} + * @memberof ThemeSpec + * @deprecated + */ + 'require'?: string; + /** + * + * @type {string} + * @memberof ThemeSpec + */ + 'requires'?: string; + /** + * + * @type {string} + * @memberof ThemeSpec + */ + 'settingName'?: string; + /** + * + * @type {string} + * @memberof ThemeSpec + */ + 'version': string; + /** + * + * @type {string} + * @memberof ThemeSpec + * @deprecated + */ + 'website'?: string; } + diff --git a/ui/packages/api-client/src/models/theme-status.ts b/ui/packages/api-client/src/models/theme-status.ts index 7ee13b05d..eb40271e8 100644 --- a/ui/packages/api-client/src/models/theme-status.ts +++ b/ui/packages/api-client/src/models/theme-status.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Condition } from "./condition"; +import { Condition } from './condition'; /** - * + * * @export * @interface ThemeStatus */ export interface ThemeStatus { - /** - * - * @type {Array} - * @memberof ThemeStatus - */ - conditions?: Array; - /** - * - * @type {string} - * @memberof ThemeStatus - */ - location?: string; - /** - * - * @type {string} - * @memberof ThemeStatus - */ - phase?: ThemeStatusPhaseEnum; + /** + * + * @type {Array} + * @memberof ThemeStatus + */ + 'conditions'?: Array; + /** + * + * @type {string} + * @memberof ThemeStatus + */ + 'location'?: string; + /** + * + * @type {string} + * @memberof ThemeStatus + */ + 'phase'?: ThemeStatusPhaseEnum; } export const ThemeStatusPhaseEnum = { - Ready: "READY", - Failed: "FAILED", - Unknown: "UNKNOWN", + Ready: 'READY', + Failed: 'FAILED', + Unknown: 'UNKNOWN' } as const; -export type ThemeStatusPhaseEnum = - (typeof ThemeStatusPhaseEnum)[keyof typeof ThemeStatusPhaseEnum]; +export type ThemeStatusPhaseEnum = typeof ThemeStatusPhaseEnum[keyof typeof ThemeStatusPhaseEnum]; + + diff --git a/ui/packages/api-client/src/models/theme.ts b/ui/packages/api-client/src/models/theme.ts index a1a34642a..e7889471b 100644 --- a/ui/packages/api-client/src/models/theme.ts +++ b/ui/packages/api-client/src/models/theme.ts @@ -5,57 +5,59 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { ThemeSpec } from "./theme-spec"; +import { ThemeSpec } from './theme-spec'; // May contain unused imports in some cases // @ts-ignore -import { ThemeStatus } from "./theme-status"; +import { ThemeStatus } from './theme-status'; /** - * + * * @export * @interface Theme */ export interface Theme { - /** - * - * @type {string} - * @memberof Theme - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof Theme - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof Theme - */ - metadata: Metadata; - /** - * - * @type {ThemeSpec} - * @memberof Theme - */ - spec: ThemeSpec; - /** - * - * @type {ThemeStatus} - * @memberof Theme - */ - status?: ThemeStatus; + /** + * + * @type {string} + * @memberof Theme + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof Theme + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof Theme + */ + 'metadata': Metadata; + /** + * + * @type {ThemeSpec} + * @memberof Theme + */ + 'spec': ThemeSpec; + /** + * + * @type {ThemeStatus} + * @memberof Theme + */ + 'status'?: ThemeStatus; } + diff --git a/ui/packages/api-client/src/models/totp-auth-link-response.ts b/ui/packages/api-client/src/models/totp-auth-link-response.ts index 094ec0c5e..4fe3eb7a8 100644 --- a/ui/packages/api-client/src/models/totp-auth-link-response.ts +++ b/ui/packages/api-client/src/models/totp-auth-link-response.ts @@ -5,29 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface TotpAuthLinkResponse */ export interface TotpAuthLinkResponse { - /** - * - * @type {string} - * @memberof TotpAuthLinkResponse - */ - authLink?: string; - /** - * - * @type {string} - * @memberof TotpAuthLinkResponse - */ - rawSecret?: string; + /** + * + * @type {string} + * @memberof TotpAuthLinkResponse + */ + 'authLink'?: string; + /** + * + * @type {string} + * @memberof TotpAuthLinkResponse + */ + 'rawSecret'?: string; } + diff --git a/ui/packages/api-client/src/models/totp-request.ts b/ui/packages/api-client/src/models/totp-request.ts index 51cf3f6ac..abdab5227 100644 --- a/ui/packages/api-client/src/models/totp-request.ts +++ b/ui/packages/api-client/src/models/totp-request.ts @@ -5,35 +5,38 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface TotpRequest */ export interface TotpRequest { - /** - * - * @type {string} - * @memberof TotpRequest - */ - code: string; - /** - * - * @type {string} - * @memberof TotpRequest - */ - password: string; - /** - * - * @type {string} - * @memberof TotpRequest - */ - secret: string; + /** + * + * @type {string} + * @memberof TotpRequest + */ + 'code': string; + /** + * + * @type {string} + * @memberof TotpRequest + */ + 'password': string; + /** + * + * @type {string} + * @memberof TotpRequest + */ + 'secret': string; } + diff --git a/ui/packages/api-client/src/models/two-factor-auth-settings.ts b/ui/packages/api-client/src/models/two-factor-auth-settings.ts index 7c5269f55..e860073da 100644 --- a/ui/packages/api-client/src/models/two-factor-auth-settings.ts +++ b/ui/packages/api-client/src/models/two-factor-auth-settings.ts @@ -5,41 +5,44 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface TwoFactorAuthSettings */ export interface TwoFactorAuthSettings { - /** - * - * @type {boolean} - * @memberof TwoFactorAuthSettings - */ - available?: boolean; - /** - * - * @type {boolean} - * @memberof TwoFactorAuthSettings - */ - emailVerified?: boolean; - /** - * - * @type {boolean} - * @memberof TwoFactorAuthSettings - */ - enabled?: boolean; - /** - * - * @type {boolean} - * @memberof TwoFactorAuthSettings - */ - totpConfigured?: boolean; + /** + * + * @type {boolean} + * @memberof TwoFactorAuthSettings + */ + 'available'?: boolean; + /** + * + * @type {boolean} + * @memberof TwoFactorAuthSettings + */ + 'emailVerified'?: boolean; + /** + * + * @type {boolean} + * @memberof TwoFactorAuthSettings + */ + 'enabled'?: boolean; + /** + * + * @type {boolean} + * @memberof TwoFactorAuthSettings + */ + 'totpConfigured'?: boolean; } + diff --git a/ui/packages/api-client/src/models/upgrade-from-uri-request.ts b/ui/packages/api-client/src/models/upgrade-from-uri-request.ts index 370091d4a..ff20f75ba 100644 --- a/ui/packages/api-client/src/models/upgrade-from-uri-request.ts +++ b/ui/packages/api-client/src/models/upgrade-from-uri-request.ts @@ -5,23 +5,26 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface UpgradeFromUriRequest */ export interface UpgradeFromUriRequest { - /** - * - * @type {string} - * @memberof UpgradeFromUriRequest - */ - uri: string; + /** + * + * @type {string} + * @memberof UpgradeFromUriRequest + */ + 'uri': string; } + diff --git a/ui/packages/api-client/src/models/user-connection-list.ts b/ui/packages/api-client/src/models/user-connection-list.ts index a93c05646..f734d745e 100644 --- a/ui/packages/api-client/src/models/user-connection-list.ts +++ b/ui/packages/api-client/src/models/user-connection-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { UserConnection } from "./user-connection"; +import { UserConnection } from './user-connection'; /** - * + * * @export * @interface UserConnectionList */ export interface UserConnectionList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof UserConnectionList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof UserConnectionList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof UserConnectionList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof UserConnectionList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof UserConnectionList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof UserConnectionList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof UserConnectionList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof UserConnectionList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof UserConnectionList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof UserConnectionList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof UserConnectionList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof UserConnectionList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof UserConnectionList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof UserConnectionList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof UserConnectionList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof UserConnectionList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof UserConnectionList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof UserConnectionList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/user-connection-spec.ts b/ui/packages/api-client/src/models/user-connection-spec.ts index 59fb735b6..4726eb26f 100644 --- a/ui/packages/api-client/src/models/user-connection-spec.ts +++ b/ui/packages/api-client/src/models/user-connection-spec.ts @@ -5,77 +5,80 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface UserConnectionSpec */ export interface UserConnectionSpec { - /** - * - * @type {string} - * @memberof UserConnectionSpec - */ - accessToken: string; - /** - * - * @type {string} - * @memberof UserConnectionSpec - */ - avatarUrl?: string; - /** - * - * @type {string} - * @memberof UserConnectionSpec - */ - displayName: string; - /** - * - * @type {string} - * @memberof UserConnectionSpec - */ - expiresAt?: string; - /** - * - * @type {string} - * @memberof UserConnectionSpec - */ - profileUrl?: string; - /** - * - * @type {string} - * @memberof UserConnectionSpec - */ - providerUserId: string; - /** - * - * @type {string} - * @memberof UserConnectionSpec - */ - refreshToken?: string; - /** - * - * @type {string} - * @memberof UserConnectionSpec - */ - registrationId: string; - /** - * - * @type {string} - * @memberof UserConnectionSpec - */ - updatedAt?: string; - /** - * - * @type {string} - * @memberof UserConnectionSpec - */ - username: string; + /** + * + * @type {string} + * @memberof UserConnectionSpec + */ + 'accessToken': string; + /** + * + * @type {string} + * @memberof UserConnectionSpec + */ + 'avatarUrl'?: string; + /** + * + * @type {string} + * @memberof UserConnectionSpec + */ + 'displayName': string; + /** + * + * @type {string} + * @memberof UserConnectionSpec + */ + 'expiresAt'?: string; + /** + * + * @type {string} + * @memberof UserConnectionSpec + */ + 'profileUrl'?: string; + /** + * + * @type {string} + * @memberof UserConnectionSpec + */ + 'providerUserId': string; + /** + * + * @type {string} + * @memberof UserConnectionSpec + */ + 'refreshToken'?: string; + /** + * + * @type {string} + * @memberof UserConnectionSpec + */ + 'registrationId': string; + /** + * + * @type {string} + * @memberof UserConnectionSpec + */ + 'updatedAt'?: string; + /** + * + * @type {string} + * @memberof UserConnectionSpec + */ + 'username': string; } + diff --git a/ui/packages/api-client/src/models/user-connection.ts b/ui/packages/api-client/src/models/user-connection.ts index a002ef3e4..77a0a59de 100644 --- a/ui/packages/api-client/src/models/user-connection.ts +++ b/ui/packages/api-client/src/models/user-connection.ts @@ -5,48 +5,50 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { UserConnectionSpec } from "./user-connection-spec"; +import { UserConnectionSpec } from './user-connection-spec'; /** - * + * * @export * @interface UserConnection */ export interface UserConnection { - /** - * - * @type {string} - * @memberof UserConnection - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof UserConnection - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof UserConnection - */ - metadata: Metadata; - /** - * - * @type {UserConnectionSpec} - * @memberof UserConnection - */ - spec: UserConnectionSpec; + /** + * + * @type {string} + * @memberof UserConnection + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof UserConnection + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof UserConnection + */ + 'metadata': Metadata; + /** + * + * @type {UserConnectionSpec} + * @memberof UserConnection + */ + 'spec': UserConnectionSpec; } + diff --git a/ui/packages/api-client/src/models/user-endpoint-listed-user-list.ts b/ui/packages/api-client/src/models/user-endpoint-listed-user-list.ts index 6582c90ef..b255c8719 100644 --- a/ui/packages/api-client/src/models/user-endpoint-listed-user-list.ts +++ b/ui/packages/api-client/src/models/user-endpoint-listed-user-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { ListedUser } from "./listed-user"; +import { ListedUser } from './listed-user'; /** - * + * * @export * @interface UserEndpointListedUserList */ export interface UserEndpointListedUserList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof UserEndpointListedUserList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof UserEndpointListedUserList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof UserEndpointListedUserList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof UserEndpointListedUserList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof UserEndpointListedUserList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof UserEndpointListedUserList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof UserEndpointListedUserList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof UserEndpointListedUserList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof UserEndpointListedUserList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof UserEndpointListedUserList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof UserEndpointListedUserList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof UserEndpointListedUserList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof UserEndpointListedUserList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof UserEndpointListedUserList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof UserEndpointListedUserList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof UserEndpointListedUserList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof UserEndpointListedUserList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof UserEndpointListedUserList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/user-list.ts b/ui/packages/api-client/src/models/user-list.ts index cd0105982..31266123d 100644 --- a/ui/packages/api-client/src/models/user-list.ts +++ b/ui/packages/api-client/src/models/user-list.ts @@ -5,75 +5,77 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { User } from "./user"; +import { User } from './user'; /** - * + * * @export * @interface UserList */ export interface UserList { - /** - * Indicates whether current page is the first page. - * @type {boolean} - * @memberof UserList - */ - first: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof UserList - */ - hasNext: boolean; - /** - * Indicates whether current page has previous page. - * @type {boolean} - * @memberof UserList - */ - hasPrevious: boolean; - /** - * A chunk of items. - * @type {Array} - * @memberof UserList - */ - items: Array; - /** - * Indicates whether current page is the last page. - * @type {boolean} - * @memberof UserList - */ - last: boolean; - /** - * Page number, starts from 1. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof UserList - */ - page: number; - /** - * Size of each page. If not set or equal to 0, it means no pagination. - * @type {number} - * @memberof UserList - */ - size: number; - /** - * Total elements. - * @type {number} - * @memberof UserList - */ - total: number; - /** - * Indicates total pages. - * @type {number} - * @memberof UserList - */ - totalPages: number; + /** + * Indicates whether current page is the first page. + * @type {boolean} + * @memberof UserList + */ + 'first': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof UserList + */ + 'hasNext': boolean; + /** + * Indicates whether current page has previous page. + * @type {boolean} + * @memberof UserList + */ + 'hasPrevious': boolean; + /** + * A chunk of items. + * @type {Array} + * @memberof UserList + */ + 'items': Array; + /** + * Indicates whether current page is the last page. + * @type {boolean} + * @memberof UserList + */ + 'last': boolean; + /** + * Page number, starts from 1. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof UserList + */ + 'page': number; + /** + * Size of each page. If not set or equal to 0, it means no pagination. + * @type {number} + * @memberof UserList + */ + 'size': number; + /** + * Total elements. + * @type {number} + * @memberof UserList + */ + 'total': number; + /** + * Indicates total pages. + * @type {number} + * @memberof UserList + */ + 'totalPages': number; } + diff --git a/ui/packages/api-client/src/models/user-permission.ts b/ui/packages/api-client/src/models/user-permission.ts index e057a1745..a4530e5e6 100644 --- a/ui/packages/api-client/src/models/user-permission.ts +++ b/ui/packages/api-client/src/models/user-permission.ts @@ -5,39 +5,41 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Role } from "./role"; +import { Role } from './role'; /** - * + * * @export * @interface UserPermission */ export interface UserPermission { - /** - * - * @type {Array} - * @memberof UserPermission - */ - permissions: Array; - /** - * - * @type {Array} - * @memberof UserPermission - */ - roles: Array; - /** - * - * @type {Array} - * @memberof UserPermission - */ - uiPermissions: Array; + /** + * + * @type {Array} + * @memberof UserPermission + */ + 'permissions': Array; + /** + * + * @type {Array} + * @memberof UserPermission + */ + 'roles': Array; + /** + * + * @type {Array} + * @memberof UserPermission + */ + 'uiPermissions': Array; } + diff --git a/ui/packages/api-client/src/models/user-spec.ts b/ui/packages/api-client/src/models/user-spec.ts index 8a55b40b5..9da2e3578 100644 --- a/ui/packages/api-client/src/models/user-spec.ts +++ b/ui/packages/api-client/src/models/user-spec.ts @@ -5,89 +5,92 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface UserSpec */ export interface UserSpec { - /** - * - * @type {string} - * @memberof UserSpec - */ - avatar?: string; - /** - * - * @type {string} - * @memberof UserSpec - */ - bio?: string; - /** - * - * @type {boolean} - * @memberof UserSpec - */ - disabled?: boolean; - /** - * - * @type {string} - * @memberof UserSpec - */ - displayName: string; - /** - * - * @type {string} - * @memberof UserSpec - */ - email: string; - /** - * - * @type {boolean} - * @memberof UserSpec - */ - emailVerified?: boolean; - /** - * - * @type {number} - * @memberof UserSpec - */ - loginHistoryLimit?: number; - /** - * - * @type {string} - * @memberof UserSpec - */ - password?: string; - /** - * - * @type {string} - * @memberof UserSpec - */ - phone?: string; - /** - * - * @type {string} - * @memberof UserSpec - */ - registeredAt?: string; - /** - * - * @type {string} - * @memberof UserSpec - */ - totpEncryptedSecret?: string; - /** - * - * @type {boolean} - * @memberof UserSpec - */ - twoFactorAuthEnabled?: boolean; + /** + * + * @type {string} + * @memberof UserSpec + */ + 'avatar'?: string; + /** + * + * @type {string} + * @memberof UserSpec + */ + 'bio'?: string; + /** + * + * @type {boolean} + * @memberof UserSpec + */ + 'disabled'?: boolean; + /** + * + * @type {string} + * @memberof UserSpec + */ + 'displayName': string; + /** + * + * @type {string} + * @memberof UserSpec + */ + 'email': string; + /** + * + * @type {boolean} + * @memberof UserSpec + */ + 'emailVerified'?: boolean; + /** + * + * @type {number} + * @memberof UserSpec + */ + 'loginHistoryLimit'?: number; + /** + * + * @type {string} + * @memberof UserSpec + */ + 'password'?: string; + /** + * + * @type {string} + * @memberof UserSpec + */ + 'phone'?: string; + /** + * + * @type {string} + * @memberof UserSpec + */ + 'registeredAt'?: string; + /** + * + * @type {string} + * @memberof UserSpec + */ + 'totpEncryptedSecret'?: string; + /** + * + * @type {boolean} + * @memberof UserSpec + */ + 'twoFactorAuthEnabled'?: boolean; } + diff --git a/ui/packages/api-client/src/models/user-status.ts b/ui/packages/api-client/src/models/user-status.ts index de5755d0d..1441cd3cc 100644 --- a/ui/packages/api-client/src/models/user-status.ts +++ b/ui/packages/api-client/src/models/user-status.ts @@ -5,39 +5,41 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { LoginHistory } from "./login-history"; +import { LoginHistory } from './login-history'; /** - * + * * @export * @interface UserStatus */ export interface UserStatus { - /** - * - * @type {string} - * @memberof UserStatus - */ - lastLoginAt?: string; - /** - * - * @type {Array} - * @memberof UserStatus - */ - loginHistories?: Array; - /** - * - * @type {string} - * @memberof UserStatus - */ - permalink?: string; + /** + * + * @type {string} + * @memberof UserStatus + */ + 'lastLoginAt'?: string; + /** + * + * @type {Array} + * @memberof UserStatus + */ + 'loginHistories'?: Array; + /** + * + * @type {string} + * @memberof UserStatus + */ + 'permalink'?: string; } + diff --git a/ui/packages/api-client/src/models/user.ts b/ui/packages/api-client/src/models/user.ts index 0c4ecb794..39dc10927 100644 --- a/ui/packages/api-client/src/models/user.ts +++ b/ui/packages/api-client/src/models/user.ts @@ -5,57 +5,59 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + // May contain unused imports in some cases // @ts-ignore -import { Metadata } from "./metadata"; +import { Metadata } from './metadata'; // May contain unused imports in some cases // @ts-ignore -import { UserSpec } from "./user-spec"; +import { UserSpec } from './user-spec'; // May contain unused imports in some cases // @ts-ignore -import { UserStatus } from "./user-status"; +import { UserStatus } from './user-status'; /** - * + * * @export * @interface User */ export interface User { - /** - * - * @type {string} - * @memberof User - */ - apiVersion: string; - /** - * - * @type {string} - * @memberof User - */ - kind: string; - /** - * - * @type {Metadata} - * @memberof User - */ - metadata: Metadata; - /** - * - * @type {UserSpec} - * @memberof User - */ - spec: UserSpec; - /** - * - * @type {UserStatus} - * @memberof User - */ - status?: UserStatus; + /** + * + * @type {string} + * @memberof User + */ + 'apiVersion': string; + /** + * + * @type {string} + * @memberof User + */ + 'kind': string; + /** + * + * @type {Metadata} + * @memberof User + */ + 'metadata': Metadata; + /** + * + * @type {UserSpec} + * @memberof User + */ + 'spec': UserSpec; + /** + * + * @type {UserStatus} + * @memberof User + */ + 'status'?: UserStatus; } + diff --git a/ui/packages/api-client/src/models/verify-code-request.ts b/ui/packages/api-client/src/models/verify-code-request.ts index 9f611e99c..4939463e5 100644 --- a/ui/packages/api-client/src/models/verify-code-request.ts +++ b/ui/packages/api-client/src/models/verify-code-request.ts @@ -5,23 +5,26 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface VerifyCodeRequest */ export interface VerifyCodeRequest { - /** - * - * @type {string} - * @memberof VerifyCodeRequest - */ - code: string; + /** + * + * @type {string} + * @memberof VerifyCodeRequest + */ + 'code': string; } + diff --git a/ui/packages/api-client/src/models/verify-email-request.ts b/ui/packages/api-client/src/models/verify-email-request.ts deleted file mode 100644 index e2005b0a7..000000000 --- a/ui/packages/api-client/src/models/verify-email-request.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Halo Next API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface VerifyEmailRequest - */ -export interface VerifyEmailRequest { - /** - * - * @type {string} - * @memberof VerifyEmailRequest - */ - code: string; -} diff --git a/ui/packages/api-client/src/models/vote-request.ts b/ui/packages/api-client/src/models/vote-request.ts index 8cd91b039..fa4147416 100644 --- a/ui/packages/api-client/src/models/vote-request.ts +++ b/ui/packages/api-client/src/models/vote-request.ts @@ -5,35 +5,38 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + + /** - * + * * @export * @interface VoteRequest */ export interface VoteRequest { - /** - * - * @type {string} - * @memberof VoteRequest - */ - group?: string; - /** - * - * @type {string} - * @memberof VoteRequest - */ - name?: string; - /** - * - * @type {string} - * @memberof VoteRequest - */ - plural?: string; + /** + * + * @type {string} + * @memberof VoteRequest + */ + 'group'?: string; + /** + * + * @type {string} + * @memberof VoteRequest + */ + 'name'?: string; + /** + * + * @type {string} + * @memberof VoteRequest + */ + 'plural'?: string; } +